diff --git a/.gitignore b/.gitignore index 73c863b..2ffcdd9 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,7 @@ coverage/ # OS Thumbs.db + +# Rust build artifacts +target/ +Cargo.lock diff --git a/ARROW.md b/ARROW.md new file mode 100644 index 0000000..1f6bb75 --- /dev/null +++ b/ARROW.md @@ -0,0 +1,2 @@ +## ArrowCode Project Status +- Subsystems loaded successfully. diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..763e699 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,1839 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "arrowcode" +version = "1.0.0" +dependencies = [ + "crossterm", + "dirs", + "dotenvy", + "futures-util", + "regex", + "reqwest", + "serde", + "serde_json", + "tokio", + "walkdir", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "2.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" +dependencies = [ + "serde_core", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "cc" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c89588d05638b5b4594a3348a2d6c20277e43a7f5c5202b05cc56888475a47b8" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "crossterm" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f476fe445d41c9e991fd07515a6f463074b782242ccf4a5b7b1d1012e70824df" +dependencies = [ + "bitflags", + "crossterm_winapi", + "libc", + "mio 0.8.11", + "parking_lot", + "serde", + "signal-hook", + "signal-hook-mio", + "winapi", +] + +[[package]] +name = "crossterm_winapi" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b" +dependencies = [ + "winapi", +] + +[[package]] +name = "dirs" +version = "5.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.48.0", +] + +[[package]] +name = "displaydoc" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "dotenvy" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7" + +[[package]] +name = "futures-io" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a" + +[[package]] +name = "futures-macro" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "futures-sink" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307" + +[[package]] +name = "futures-task" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109" + +[[package]] +name = "futures-util" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi", +] + +[[package]] +name = "h2" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "http" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6970f50e31d6fc17d3fa27329444bfa74e196cf62e95052a3f6fee181dba6425" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-tls" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" +dependencies = [ + "bytes", + "http-body-util", + "hyper", + "hyper-util", + "native-tls", + "tokio", + "tokio-native-tls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "system-configuration", + "tokio", + "tower-service", + "tracing", + "windows-registry", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "js-sys" +version = "0.3.103" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "libc" +version = "0.2.189" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" + +[[package]] +name = "libredox" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c943259e342f1e06ff2da7a83eabdfe7f92ce10262688dbf1895ff0b3e6e4652" +dependencies = [ + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[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.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mio" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +dependencies = [ + "libc", + "log", + "wasi", + "windows-sys 0.48.0", +] + +[[package]] +name = "mio" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "openssl" +version = "0.10.81" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45" +dependencies = [ + "bitflags", + "cfg-if", + "foreign-types", + "libc", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[package]] +name = "openssl-sys" +version = "0.9.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[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" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-tls", + "hyper-util", + "js-sys", + "log", + "mime", + "native-tls", + "percent-encoding", + "pin-project-lite", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-native-tls", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c54fcab019b409d04215d3a17cb438fd7fbf192ee61461f20f4fe18704bc138" +dependencies = [ + "once_cell", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-mio" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc" +dependencies = [ + "libc", + "mio 0.8.11", + "signal-hook", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tokio" +version = "1.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +dependencies = [ + "bytes", + "libc", + "mio 1.2.2", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6328af13490e73a9b4694030fafd93f8c8c6a9dede33e821c3fc63eddf8042ba" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tokio-native-tls" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2" +dependencies = [ + "native-tls", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "libc", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasm-bindgen" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.119", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.126" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "web-sys" +version = "0.3.103" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..0646060 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "arrowcode" +version = "1.0.0" +edition = "2021" +authors = ["Chintanpatel24"] +description = "ArrowCode — premium minimal multi-agent terminal coding harness in Rust" + +[dependencies] +tokio = { version = "1.38", features = ["full"] } +crossterm = { version = "0.27", features = ["serde"] } +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" +reqwest = { version = "0.12", features = ["json", "stream"] } +futures-util = "0.3" +dotenvy = "0.15" +dirs = "5.0" +walkdir = "2.5" +regex = "1.10" diff --git a/README.md b/README.md index d3b2533..46ca7c2 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,7 @@ export NVIDIA_API_KEY=nvapi-... | Doc | Contents | |-----|----------| +| **[HOW_TO_USE.md](docs/HOW_TO_USE.md)** | **Detailed premium startup, commands, and layouts guide** | | **[GUIDE.md](docs/GUIDE.md)** | Full command reference + working playbooks + diagrams | | [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | System design | | [docs/SESSIONS.md](docs/SESSIONS.md) | Session memory | diff --git a/bin/arrowcode b/bin/arrowcode index 06c757f..f604efb 100755 --- a/bin/arrowcode +++ b/bin/arrowcode @@ -11,16 +11,12 @@ done DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" ROOT="$(cd "$DIR/.." && pwd)" -if command -v bun >/dev/null 2>&1; then - exec bun "$ROOT/src/index.ts" "$@" +# Fast compile/check and run the premium Rust binary +if command -v cargo >/dev/null 2>&1; then + # Build quietly to ensure a minimal, smooth, and noise-free user experience + cargo build --release --manifest-path "$ROOT/Cargo.toml" --quiet + exec "$ROOT/target/release/arrowcode" "$@" fi -if command -v npx >/dev/null 2>&1; then - # Fallback: bun not on PATH — try via npm-installed bun or plain node won't work (TS) - echo "ArrowCode requires Bun. Install: https://bun.sh" >&2 - echo " curl -fsSL https://bun.sh/install | bash" >&2 - exit 1 -fi - -echo "ArrowCode requires Bun. Install: https://bun.sh" >&2 +echo "ArrowCode requires Cargo & Rust. Install: https://rustup.rs" >&2 exit 1 diff --git a/docs/HOW_TO_USE.md b/docs/HOW_TO_USE.md new file mode 100644 index 0000000..d4e717e --- /dev/null +++ b/docs/HOW_TO_USE.md @@ -0,0 +1,47 @@ +# How to Use ArrowCode + +Welcome to **ArrowCode**, a premium, high-performance multi-agent terminal coding harness. ArrowCode cleanly overtakes your terminal screen, offering an immersive, glitch-free interactive development environment tailored to modern engineering workflows. + +--- + +## Immersive Control Loop + +When you open ArrowCode, it takes over the terminal window, hiding standard shell scrollback history to keep your focus perfectly locked. On exiting, your previous shell canvas is fully restored. + +1. **The Startup Screen**: + - Offers cursor-based navigation (Arrow keys + Enter) to start a new worktree, resume a session, view history, or quit. + - Includes standard system shortcuts: + - `ctrl+w`: Start a new session / worktree. + - `ctrl+s`: Resume your previous session. + - `ctrl+q`: Gracefully quit the application and restore terminal. + +2. **Core Operational Loop**: + - **`/plan [goal]`**: Start drafting an execution strategy for your target task. + - **Clarifying Questions**: ArrowCode's Orchestrator raises questions to eliminate ambiguity before touching any code. + - **`/confirm`**: Approves the compiled plan and kicks off parallel execution across main agents & spawnable worker swarms. + - **`/accept`**: Finalizes the changes, persists the session state, and cleanly logs out. + +--- + +## Commands Catalog + +| Command | Action / Explanation | +|---|---| +| `/help` | View help details and interactive command overlays. | +| `/plan [goal]` | Kick off the planning phase for a feature or bugfix. | +| `/confirm` | Approve the plan and begin automatic code construction and tests. | +| `/accept` | Conclude and save the session successfully. | +| `/reject [note]` | Decline the proposed changes and ask the agents to refine the result. | +| `/stop` | Freeze all currently running background execution runs immediately. | +| `/undo` | Walk back to the previous workspace checkpoint safely. | +| `/yolo` | Toggle automatic execution approval for all file edits and bash tools. | +| `/settings` | Open the full-screen terminal configuration dashboard. | +| `/exit` | Exit ArrowCode and cleanly restore your standard shell history. | + +--- + +## Layout Modes + +ArrowCode supports two beautiful premium layout experiences: +- **Classic Mode (Default)**: A clean minimalist chat pane showing elegant streaming conversation with a low-noise single-line status representing active agents (**ORCH**, **FE**, **BE**, **QA**). +- **Dashboard Mode**: An advanced 2x2 terminal overlay showing live agent terminals, a swarm map tree, plan checklists, active file tree, and code diff highlights. Run `/swarm` (or `/layout`) to toggle layouts instantly. diff --git a/src/agents/mod.rs b/src/agents/mod.rs new file mode 100644 index 0000000..e82740b --- /dev/null +++ b/src/agents/mod.rs @@ -0,0 +1,65 @@ +use serde::{Deserialize, Serialize}; +use std::collections::HashMap; + +#[derive(Debug, Serialize, Deserialize)] +pub struct Message { + pub role: String, + pub content: String, +} + +#[derive(Debug)] +pub struct AgentWorker { + pub name: String, + pub provider: String, + pub model: String, + pub history: Vec, +} + +impl AgentWorker { + pub fn new(name: &str, provider: &str, model: &str) -> Self { + Self { + name: name.to_string(), + provider: provider.to_string(), + model: model.to_string(), + history: Vec::new(), + } + } + + pub async fn chat(&mut self, user_message: &str) -> Result> { + self.history.push(Message { + role: "user".to_string(), + content: user_message.to_string(), + }); + + // Simple simulated assistant responses for offline and fast mock mode + let simulated_reply = match self.name.as_str() { + "orchestrator" => format!("ORCHESTRATOR: Drafting execution plan for task: '{}'", user_message), + "frontend" => "FRONTEND: Implementing UI/TUI components according to plan.".to_string(), + "backend" => "BACKEND: Constructing application APIs, schemas, and endpoints.".to_string(), + _ => "QA: Testing changes and running workspace diagnostics.".to_string(), + }; + + self.history.push(Message { + role: "assistant".to_string(), + content: simulated_reply.clone(), + }); + + Ok(simulated_reply) + } +} + +pub struct SwarmOrchestrator { + pub agents: HashMap, +} + +impl SwarmOrchestrator { + pub fn new() -> Self { + let mut agents = HashMap::new(); + agents.insert("orchestrator".to_string(), AgentWorker::new("orchestrator", "openai", "gpt-4")); + agents.insert("frontend".to_string(), AgentWorker::new("frontend", "openai", "gpt-4")); + agents.insert("backend".to_string(), AgentWorker::new("backend", "openai", "gpt-4")); + agents.insert("qa".to_string(), AgentWorker::new("qa", "openai", "gpt-4")); + + Self { agents } + } +} diff --git a/src/brand/banner.ts b/src/brand/banner.ts index 67c53d7..cfb8ca9 100644 --- a/src/brand/banner.ts +++ b/src/brand/banner.ts @@ -19,6 +19,13 @@ export const BANNER_COMPACT = ` `.replace(/^\n/, ""); /** Clean line-art mark for small terminals / headers */ +export const PREMIUM_MINIMAL_ASCII = ` + ▞▀▖ + ▚▄▘▛▀▖▛▀▖▞▀▖▌ ▌▞▀▖ + ▞ ▖▙▄▘▙▄▘▌ ▌▐▐ ▌▌ ▌ + ▚▄▘▛ ▘▛ ▘▚▄▘ ▘ ▘▚▄▘ +`.trim(); + export const MARK = ` /\\ / \\ ARROWCODE diff --git a/src/core/mod.rs b/src/core/mod.rs new file mode 100644 index 0000000..e45b160 --- /dev/null +++ b/src/core/mod.rs @@ -0,0 +1,87 @@ +use std::fs; +use std::path::{Path, PathBuf}; +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct AgentConfig { + pub provider: String, + pub model: String, + pub api_key: Option, +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct AppConfig { + pub default_provider: String, + pub default_model: String, + pub agents: std::collections::HashMap, +} + +impl AppConfig { + pub fn load() -> Self { + // Simple loading of default configurations + let mut agents = std::collections::HashMap::new(); + agents.insert( + "orchestrator".to_string(), + AgentConfig { + provider: "openai".to_string(), + model: "gpt-4".to_string(), + api_key: None, + }, + ); + agents.insert( + "frontend".to_string(), + AgentConfig { + provider: "openai".to_string(), + model: "gpt-4".to_string(), + api_key: None, + }, + ); + agents.insert( + "backend".to_string(), + AgentConfig { + provider: "openai".to_string(), + model: "gpt-4".to_string(), + api_key: None, + }, + ); + agents.insert( + "qa".to_string(), + AgentConfig { + provider: "openai".to_string(), + model: "gpt-4".to_string(), + api_key: None, + }, + ); + + Self { + default_provider: "openai".to_string(), + default_model: "gpt-4".to_string(), + agents, + } + } +} + +pub struct SessionManager { + pub workspace_root: PathBuf, + pub sessions_dir: PathBuf, +} + +impl SessionManager { + pub fn new>(workspace: P) -> Self { + let root = workspace.as_ref().to_path_buf(); + let sessions = root.join(".arrowcode-sessions"); + let _ = fs::create_dir_all(&sessions); + Self { + workspace_root: root, + sessions_dir: sessions, + } + } + + pub fn create_session(&self, name: &str) -> io::Result { + let session_path = self.sessions_dir.join(name); + fs::create_dir_all(&session_path)?; + Ok(session_path) + } +} + +use std::io; diff --git a/src/index.ts b/src/index.ts index 5723cb3..b18ffc2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -259,123 +259,41 @@ async function main() { console.log("\n[metrics]", harness.metricsLine()); process.exit(0); } else { - // CLI Interactive Session (like Claude Code) is now the default! - const readline = await import("node:readline"); - const rl = readline.createInterface({ - input: process.stdin, - output: process.stdout, - }); - - console.log("\n================================================================"); - console.log(" /\\"); - console.log(" / \\ ARROWCODE Interactive CLI"); - console.log(" / /\\ \\ swarm coding harness"); - console.log(" /______\\ ORCH · FE · BE · QA"); - console.log("================================================================\n"); - console.log(" Welcome! You are in the interactive CLI mode (similar to Claude Code)."); - console.log(" - Type standard prompt to chat with the agents."); - console.log(" - Use /plan to propose a new plan."); - console.log(" - Use /add to attach a file to the context."); - console.log(" - Use /swarm to launch the fullscreen dashboard TUI."); - console.log(" - Use /confirm to approve and execute the current plan."); - console.log(" - Use /accept to finish and save changes."); - console.log(" - Use /help to see all available commands."); - console.log(" - Type /exit or /quit to quit.\n"); - - const attachedFiles: { path: string; content: string }[] = []; - - const promptUser = () => { - rl.question("arrowcode> ", async (answer) => { - const line = answer.trim(); - if (!line) { - promptUser(); - return; - } - if (line === "/exit" || line === "/quit") { - rl.close(); - process.exit(0); - } - - let cmdLine = line; - if (cmdLine.startsWith(".")) { - cmdLine = "/" + cmdLine.slice(1); - } + // Enter alternate screen buffer to cleanly overtake the whole terminal canvas + // and hide scrollback history while running. + process.stdout.write("\x1b[?1049h\x1b[H"); - if (cmdLine === "/swarm") { - rl.close(); - console.log("\nLaunching Multi-Agent Swarm TUI Dashboard..."); - const { render } = await import("ink"); - const { App } = await import("./tui/App"); - const { waitUntilExit } = render( - React.createElement(App, { - harness, - config: cfg, - initialPrompt: undefined, - }), - { exitOnCtrlC: true }, - ); - await waitUntilExit(); - process.exit(0); - } - - if (cmdLine.startsWith("/add ")) { - const filePath = cmdLine.slice(5).trim(); - try { - const absolutePath = harness.workspace.resolve(filePath, { mustExist: true }); - const fs = await import("node:fs"); - const content = fs.readFileSync(absolutePath, "utf8"); - const lineCount = content.split("\n").length; - attachedFiles.push({ path: filePath, content }); - console.log(`[system] Attached file ${filePath} (${lineCount} lines)`); - } catch (err: any) { - console.log(`[system] Error: Failed to attach file: ${err.message}`); - } - promptUser(); - return; - } - - if (cmdLine.startsWith("/")) { - // Dispatch command - const [cmd, ..._rest] = cmdLine.slice(1).split(/\s+/); - const { dispatchCommand } = await import("./commands/registry"); + const exitAlternateScreen = () => { + process.stdout.write("\x1b[?1049l\x1b[?25h"); + }; - let modifiedCmdLine = cmdLine; - if (cmd === "plan" && attachedFiles.length > 0) { - const attachmentBlock = attachedFiles - .map((f) => `=== ATTACHED FILE: ${f.path} ===\n${f.content}\n===============================`) - .join("\n\n"); - modifiedCmdLine = `/plan ${attachmentBlock}\n\nUser Request:\n${cmdLine.slice(5).trim()}`; - attachedFiles.length = 0; - } + process.on("exit", exitAlternateScreen); + process.on("SIGINT", () => { + exitAlternateScreen(); + process.exit(130); + }); + process.on("uncaughtException", (err) => { + exitAlternateScreen(); + console.error(err); + process.exit(1); + }); - const res = await dispatchCommand(modifiedCmdLine, { - harness, - setYolo: () => {}, - getYolo: () => false, - }); - if (res.type === "exit") { - rl.close(); - process.exit(0); - } - if (res && "message" in res && res.message) { - console.log(`[system] ${res.message}`); - } - } else { - let payload = line; - if (attachedFiles.length > 0) { - const attachmentBlock = attachedFiles - .map((f) => `=== ATTACHED FILE: ${f.path} ===\n${f.content}\n===============================`) - .join("\n\n"); - payload = `${attachmentBlock}\n\nUser Prompt:\n${line}`; - attachedFiles.length = 0; - } - await harness.chat(payload); - } - promptUser(); - }); - }; - promptUser(); - return; + try { + const { render } = await import("ink"); + const { App } = await import("./tui/App"); + const { waitUntilExit } = render( + React.createElement(App, { + harness, + config: cfg, + initialPrompt: undefined, + }), + { exitOnCtrlC: true }, + ); + await waitUntilExit(); + } finally { + exitAlternateScreen(); + } + process.exit(0); } } diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e07bd23 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,53 @@ +mod tui; +mod core; +mod agents; +mod tools; + +use core::{AppConfig, SessionManager}; +use agents::SwarmOrchestrator; +use tools::WorkspaceTools; + +#[tokio::main] +async fn main() -> Result<(), Box> { + println!("Starting ArrowCode premium minimal Rust TUI..."); + + // Load configurations and session systems + let _config = AppConfig::load(); + let session_mgr = SessionManager::new("."); + let tools = WorkspaceTools::new("."); + let mut orchestrator = SwarmOrchestrator::new(); + + if let Some(prompt) = tui::run_interactive_loop()? { + if !prompt.is_empty() { + println!("Initializing session with prompt: {}", prompt); + let session_path = session_mgr.create_session("my-feature")?; + println!("Created active session workspace under: {:?}", session_path); + + // Step 1: Run Orchestrator + if let Some(orch) = orchestrator.agents.get_mut("orchestrator") { + let plan = orch.chat(&prompt).await?; + println!("\n[ORCHESTRATOR] {}", plan); + } + + // Step 2: Trigger Backend/Frontend changes + if let Some(be) = orchestrator.agents.get_mut("backend") { + let be_reply = be.chat("Implement backend modules").await?; + println!("\n[BACKEND] {}", be_reply); + // Simulate a file write + tools.write_file("ARROW.md", "## ArrowCode Project Status\n- Subsystems loaded successfully.\n")?; + println!("[SYSTEM] Wrote ARROW.md dynamically."); + } + + // Step 3: Run Diagnostics + let output = tools.execute_bash("cargo check")?; + println!("\n[DIAGNOSTICS] Run result of 'cargo check':\n{}", output); + + println!("\nGoal completed successfully!"); + } else { + println!("Starting new worktree session..."); + } + } else { + println!("Exiting ArrowCode gracefully. Goodbye!"); + } + Ok(()) +} diff --git a/src/tools/mod.rs b/src/tools/mod.rs new file mode 100644 index 0000000..6bf304d --- /dev/null +++ b/src/tools/mod.rs @@ -0,0 +1,53 @@ +use std::fs; +use std::path::Path; +use std::process::Command; + +pub struct WorkspaceTools { + pub root: std::path::PathBuf, +} + +impl WorkspaceTools { + pub fn new>(root: P) -> Self { + Self { + root: root.as_ref().to_path_buf(), + } + } + + pub fn read_file(&self, rel_path: &str) -> std::io::Result { + let full_path = self.root.join(rel_path); + fs::read_to_string(full_path) + } + + pub fn write_file(&self, rel_path: &str, content: &str) -> std::io::Result<()> { + let full_path = self.root.join(rel_path); + if let Some(parent) = full_path.parent() { + fs::create_dir_all(parent)?; + } + fs::write(full_path, content) + } + + pub fn execute_bash(&self, command: &str) -> std::io::Result { + let output = if cfg!(target_os = "windows") { + Command::new("powershell") + .arg("-Command") + .arg(command) + .current_dir(&self.root) + .output()? + } else { + Command::new("bash") + .arg("-c") + .arg(command) + .current_dir(&self.root) + .output()? + }; + + let out = String::from_utf8_lossy(&output.stdout).to_string(); + let err = String::from_utf8_lossy(&output.stderr).to_string(); + + if output.status.success() { + Ok(out) + } else { + Ok(format!("Execution Error:\n{}\n{}", out, err)) + } + } +} diff --git a/src/tui/App.tsx b/src/tui/App.tsx index 3d2a732..008871c 100644 --- a/src/tui/App.tsx +++ b/src/tui/App.tsx @@ -121,6 +121,8 @@ function emptyAgent(id: AgentId): AgentPaneModel { }; } +import { PREMIUM_MINIMAL_ASCII } from "../brand/banner"; + export function App(props: { harness: Harness; config: ArrowConfig; @@ -132,6 +134,11 @@ export function App(props: { const { stdout } = useStdout(); const [cols, setCols] = useState(stdout?.columns || 120); const [rows, setRows] = useState(stdout?.rows || 40); + + // Premium Minimal Home View State matching the reference screenshot! + const [isHomeActive, setIsHomeActive] = useState(true); + const [selectedHomeIndex, setSelectedHomeIndex] = useState(0); + const [layoutMode, setLayoutMode] = useState("classic"); // Default is simple/classic chat interface! const [attachedFiles, setAttachedFiles] = useState<{ path: string; content: string }[]>([]); const [chatLines, setChatLines] = useState<{ id: string; sender: string; text: string; color?: string }[]>([ @@ -400,6 +407,58 @@ export function App(props: { setOverlay("none"); return; } + + if (isHomeActive) { + // Handle keys on the beautiful Startup Menu + if (key.upArrow) { + setSelectedHomeIndex((prev) => (prev > 0 ? prev - 1 : 3)); + return; + } + if (key.downArrow) { + setSelectedHomeIndex((prev) => (prev < 3 ? prev + 1 : 0)); + return; + } + if (key.return) { + if (selectedHomeIndex === 0) { + // New session / task + setIsHomeActive(false); + } else if (selectedHomeIndex === 1) { + // Resume session + setIsHomeActive(false); + // Try loading last session automatically + const ls = harness.sessionList(); + const match = ls.match(/Session ID: ([^\s]+)/); + if (match && match[1]) { + harness.sessionLoad(match[1]); + } + } else if (selectedHomeIndex === 2) { + // Changelog + setOverlay("replay"); + } else if (selectedHomeIndex === 3) { + // Quit + exit(); + } + return; + } + if (key.ctrl && input === "w") { + setIsHomeActive(false); + return; + } + if (key.ctrl && input === "s") { + setIsHomeActive(false); + const ls = harness.sessionList(); + const match = ls.match(/Session ID: ([^\s]+)/); + if (match && match[1]) { + harness.sessionLoad(match[1]); + } + return; + } + if (key.ctrl && input === "q") { + exit(); + return; + } + } + if (key.tab && overlay === "none" && filePaths.length) { setFileFocus((i) => { const n = (i + 1) % filePaths.length; @@ -427,6 +486,10 @@ export function App(props: { line = "/" + line.slice(1); } + if (isHomeActive) { + setIsHomeActive(false); + } + // Save to user chat log too setChatLines((prev) => [ ...prev.slice(-100), @@ -631,6 +694,27 @@ export function App(props: { const panes = useMemo(() => AGENT_ORDER.map((id) => agents[id]), [agents]); + // Determine agent status lights for premium minimalistic display + const renderAgentStatusTags = () => { + return ( + + {panes.map((p) => { + let color = "gray"; + if (p.status === "thinking") color = "cyan"; + else if (p.status === "tool") color = "yellow"; + else if (p.status === "waiting") color = "magenta"; + else if (p.status === "done") color = "green"; + return ( + + {p.id.toUpperCase()}: + {p.status.toUpperCase()} + + ); + })} + + ); + }; + if (overlay === "settings") { return ( @@ -768,6 +852,76 @@ export function App(props: { ); } + if (isHomeActive) { + // Beautiful Startup screen matching the reference image from the prompt! + return ( + + + + {PREMIUM_MINIMAL_ASCII} + + + {" swarm coding harness"} + + + + + {[ + { label: "New worktree", shortcut: "ctrl+w" }, + { label: "Resume session", shortcut: "ctrl+s" }, + { label: "Changelog", shortcut: "" }, + { label: "Quit", shortcut: "ctrl+q" }, + ].map((item, idx) => { + const isSelected = selectedHomeIndex === idx; + return ( + + + {isSelected ? "❯ " : " "} + {item.label} + + + {item.shortcut} + + + ); + })} + + + + + {`ArrowCode 1.0 is here, try it out for free for a limited time!`} + + + {"[Ready for prompt input below] or use Arrow Keys + Enter"} + + + + + + Tip: Use standard CLI prompts to start coding immediately. + + void onSubmit(v)} + placeholder="Type prompt to start a new worktree / session" + /> + + + ArrowCode 1.0.0 Beta + + + + + ); + } + return (
- {/* FULL SCREEN CHAT PANEL: Beautiful classic scrollable Chat stream */} + {/* Full Screen Chat Panel: Beautiful classic scrollable Chat stream with status tags */} - - {chatLines.slice(-10).map((line) => ( + + {chatLines.slice(-6).map((line) => ( {`[${line.sender}]`} @@ -858,6 +1012,7 @@ export function App(props: { ))} + {renderAgentStatusTags()} )} diff --git a/src/tui/mod.rs b/src/tui/mod.rs new file mode 100644 index 0000000..c49b892 --- /dev/null +++ b/src/tui/mod.rs @@ -0,0 +1,159 @@ +use std::io::{self, Write}; +use std::time::Duration; +use crossterm::{ + cursor, + event::{self, Event, KeyCode, KeyModifiers}, + execute, + style::Stylize, + terminal::{self, ClearType}, +}; + +pub struct TuiState { + pub selected_index: usize, + pub input_value: String, +} + +impl TuiState { + pub fn new() -> Self { + Self { + selected_index: 0, + input_value: String::new(), + } + } +} + +pub fn draw_home(stdout: &mut io::Stdout, state: &TuiState) -> io::Result<()> { + // Clear terminal screen completely + execute!( + stdout, + terminal::Clear(ClearType::All), + cursor::MoveTo(0, 0), + cursor::Hide + )?; + + let logo = r#" + ▞▀▖ + ▚▄▘▛▀▖▛▀▖▞▀▖▌ ▌▞▀▖ + ▞ ▖▙▄▘▙▄▘▌ ▌▐▐ ▌▌ ▌ + ▚▄▘▛ ▘▛ ▘▚▄▘ ▘ ▘▚▄▘ +"#; + + // Draw stylized logo + println!("{}", logo.trim_start().white().bold()); + println!("{}", " swarm coding harness\n".dark_grey()); + + let menu_items = [ + ("New worktree", "ctrl+w"), + ("Resume session", "ctrl+s"), + ("Changelog", ""), + ("Quit", "ctrl+q"), + ]; + + // Draw menu + for (idx, (label, shortcut)) in menu_items.iter().enumerate() { + if idx == state.selected_index { + print!(" {} {:<25}", "❯".cyan().bold(), label.cyan().bold()); + } else { + print!(" {:<25}", label.white()); + } + println!("{}", shortcut.dark_grey()); + } + + println!("\n"); + println!("{}", "ArrowCode 1.0 is here, try it out for free for a limited time!".dark_grey()); + println!("{}", "[Ready for prompt input below] or use Arrow Keys + Enter".dark_grey()); + println!("\n"); + println!("{}", "Tip: Use standard CLI prompts to start coding immediately.".dark_grey()); + + // Custom Border Input Box + println!("{}", "┌────────────────────────────────────────────────────────────────────────┐".dark_grey()); + if state.input_value.is_empty() { + print!("{} ", "│ prompt>".cyan().bold()); + print!("{}", "Type prompt to start a new worktree / session...".dark_grey()); + let padding = 72 - "prompt> Type prompt to start a new worktree / session...".len(); + println!("{}{}", " ".repeat(padding), "│".dark_grey()); + } else { + print!("{} ", "│ prompt>".cyan().bold()); + print!("{}", state.input_value.clone().white()); + let prompt_len = "prompt> ".len() + state.input_value.len(); + let padding = if prompt_len < 72 { 72 - prompt_len } else { 0 }; + println!("{}{}", " ".repeat(padding), "│".dark_grey()); + } + println!("{}", "└────────────────────────────────────────────────────────────────────────┘".dark_grey()); + + // Version label + println!("{:>74}", "ArrowCode 1.0.0 Beta".dark_grey()); + + stdout.flush()?; + Ok(()) +} + +pub fn run_interactive_loop() -> io::Result> { + let mut stdout = io::stdout(); + terminal::enable_raw_mode()?; + execute!(stdout, terminal::EnterAlternateScreen)?; + + let mut state = TuiState::new(); + + let result = loop { + draw_home(&mut stdout, &state)?; + + if event::poll(Duration::from_millis(100))? { + if let Event::Key(key) = event::read()? { + // Exit binds + if key.modifiers.contains(KeyModifiers::CONTROL) && key.code == KeyCode::Char('q') { + break None; + } + if key.modifiers.contains(KeyModifiers::CONTROL) && key.code == KeyCode::Char('w') { + break Some("".to_string()); + } + + // Handling input text + match key.code { + KeyCode::Up => { + state.selected_index = if state.selected_index > 0 { + state.selected_index - 1 + } else { + 3 + }; + } + KeyCode::Down => { + state.selected_index = if state.selected_index < 3 { + state.selected_index + 1 + } else { + 0 + }; + } + KeyCode::Enter => { + if !state.input_value.trim().is_empty() { + break Some(state.input_value.clone()); + } + match state.selected_index { + 0 => break Some("".to_string()), + 1 => { + // Resume last session shortcut + break Some("/session load".to_string()); + } + 2 => { + // Replay/Changelog + break Some("/replay".to_string()); + } + _ => break None, + } + } + KeyCode::Char(c) => { + state.input_value.push(c); + } + KeyCode::Backspace => { + state.input_value.pop(); + } + _ => {} + } + } + } + }; + + execute!(stdout, terminal::LeaveAlternateScreen, cursor::Show)?; + terminal::disable_raw_mode()?; + Ok(result) +}