From 17a346510e2ecf8afbfa4443619bfd8f00a1d772 Mon Sep 17 00:00:00 2001 From: Tahmid Ahmed Date: Sun, 8 Feb 2026 03:44:46 -0500 Subject: [PATCH 1/6] 755: Add .gitattributes for all new env files --- .gitattributes | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitattributes b/.gitattributes index 8d3bb2e54..685cd29eb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,3 +8,6 @@ .env.production filter=git-crypt-l3 diff=git-crypt-l3 .env.migrator filter=git-crypt-l3 diff=git-crypt-l3 infra/.env.production filter=git-crypt-l3 diff=git-crypt-l3 + +internal/.env.ci filter=git-crypt-l2 diff=git-crypt-l2 +internal/standup-bot/.env.production filter=git-crypt-l3 diff=git-crypt-l3 From 271cdf4302b2e7f05856300d916c2ccc3927391f Mon Sep 17 00:00:00 2001 From: Tahmid Ahmed Date: Sun, 8 Feb 2026 03:42:02 -0500 Subject: [PATCH 2/6] 755: Initialize internal/ pkg with Coolify credentials --- internal/.env.ci | Bin 0 -> 234 bytes internal/README.md | 5 +++++ internal/example.env.ci | 7 +++++++ 3 files changed, 12 insertions(+) create mode 100644 internal/.env.ci create mode 100644 internal/README.md create mode 100644 internal/example.env.ci diff --git a/internal/.env.ci b/internal/.env.ci new file mode 100644 index 0000000000000000000000000000000000000000..38c6ad364a9bd3edade747f33684909b5abdecf1 GIT binary patch literal 234 zcmV}*J2!dtlXa7iRhSQ3AYhR?j?`{A2g13-V}Ry9c{P&?Ad9e{@i-rmvvKENs^ zgta9Mn6{{S(sG|iq^7)zJ(Y)xwajah?-3uLUiKD4@UQc;72SkMS+qTB`!}u7-XYS1 zB-(M24wJ4xk>38fG$8#R=55O!e&hI<*kzX!ev^NZ3PoIMu3&i!696$Snw==R6~l+H k(n;UfBzWsaSR49? Date: Sun, 8 Feb 2026 03:44:27 -0500 Subject: [PATCH 3/6] 755: Create codebloom-standup-bot (DESC) Create codebloom-standup-bot, a Rust app that will send our standup message to the Codebloom dev server, backed by a Redis db to store last standup time (to avoid duplications). Setup Dockerfile and required environment variables in production, as necessary. --- internal/standup-bot/.env.production | Bin 0 -> 391 bytes internal/standup-bot/.gitignore | 23 + internal/standup-bot/Cargo.lock | 2470 +++++++++++++++++ internal/standup-bot/Cargo.toml | 12 + internal/standup-bot/Dockerfile | 15 + internal/standup-bot/README.md | 8 + internal/standup-bot/example.env | 9 + internal/standup-bot/example.env.production | 9 + internal/standup-bot/rustfmt.toml | 6 + internal/standup-bot/src/discord/client.rs | 80 + .../standup-bot/src/discord/commands/hello.rs | 12 + .../standup-bot/src/discord/commands/mod.rs | 1 + .../standup-bot/src/discord/credentials.rs | 32 + internal/standup-bot/src/discord/handlers.rs | 58 + internal/standup-bot/src/discord/mod.rs | 4 + internal/standup-bot/src/main.rs | 56 + internal/standup-bot/src/redis/client.rs | 49 + internal/standup-bot/src/redis/credentials.rs | 11 + internal/standup-bot/src/redis/error.rs | 21 + internal/standup-bot/src/redis/mod.rs | 3 + internal/standup-bot/src/utils.rs | 32 + 21 files changed, 2911 insertions(+) create mode 100644 internal/standup-bot/.env.production create mode 100644 internal/standup-bot/.gitignore create mode 100644 internal/standup-bot/Cargo.lock create mode 100644 internal/standup-bot/Cargo.toml create mode 100644 internal/standup-bot/Dockerfile create mode 100644 internal/standup-bot/README.md create mode 100644 internal/standup-bot/example.env create mode 100644 internal/standup-bot/example.env.production create mode 100644 internal/standup-bot/rustfmt.toml create mode 100644 internal/standup-bot/src/discord/client.rs create mode 100644 internal/standup-bot/src/discord/commands/hello.rs create mode 100644 internal/standup-bot/src/discord/commands/mod.rs create mode 100644 internal/standup-bot/src/discord/credentials.rs create mode 100644 internal/standup-bot/src/discord/handlers.rs create mode 100644 internal/standup-bot/src/discord/mod.rs create mode 100644 internal/standup-bot/src/main.rs create mode 100644 internal/standup-bot/src/redis/client.rs create mode 100644 internal/standup-bot/src/redis/credentials.rs create mode 100644 internal/standup-bot/src/redis/error.rs create mode 100644 internal/standup-bot/src/redis/mod.rs create mode 100644 internal/standup-bot/src/utils.rs diff --git a/internal/standup-bot/.env.production b/internal/standup-bot/.env.production new file mode 100644 index 0000000000000000000000000000000000000000..0a983e703326515036eaf630fd443b72f1168f6c GIT binary patch literal 391 zcmV;20eJoZM@dveQdv+`0E%p0pmYP%aLW65nuyE9ot9Q1W|zu)5$T_kW#THG&DJ*uG!TsWNPGcH-r-__2ytHDOix zt6^5aOpC8*p$nSh4ayA0Q5@UA7Gj{q+K*yx5+Q||O+j+;E~*^sB3L8XX;|7U zo~W*4BTm-!Zo;@8z^vgR+B~82m}5HGmQ{083Z+wcbg7Ymr9rcf*DBE$0*_;1Y_qqz z=kF@JF3)BbyvCfL-UFtV5PNLl8;{r{wCZ&E_IkhJ9F~ibS*G+`2SKo)#}Tq}p{Iew lFwIyycaq<~P04j@I2r+H2*wTj0%M8QgQunpS1Mg?jSrG%zXJdO literal 0 HcmV?d00001 diff --git a/internal/standup-bot/.gitignore b/internal/standup-bot/.gitignore new file mode 100644 index 000000000..4011c7aa9 --- /dev/null +++ b/internal/standup-bot/.gitignore @@ -0,0 +1,23 @@ +# Generated by Cargo +# will have compiled files and executables +debug +target + +# These are backup files generated by rustfmt +**/*.rs.bk + +# MSVC Windows builds of rustc generate these, which store debugging information +*.pdb + +# Generated by cargo mutants +# Contains mutation testing data +**/mutants.out*/ + +# RustRover +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +.env diff --git a/internal/standup-bot/Cargo.lock b/internal/standup-bot/Cargo.lock new file mode 100644 index 000000000..4a1011090 --- /dev/null +++ b/internal/standup-bot/Cargo.lock @@ -0,0 +1,2470 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "arcstr" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03918c3dbd7701a85c6b9887732e2921175f26c350b4563841d0958c21d57e6d" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" +dependencies = [ + "serde", +] + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "bumpalo" +version = "3.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" + +[[package]] +name = "bytecount" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "camino" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", +] + +[[package]] +name = "cc" +version = "1.2.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b26a0954ae34af09b50f0de26458fa95369a0d478d8236d3f93082b219bd29" +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 = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "chrono" +version = "0.4.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "chrono-tz" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6139a8597ed92cf816dfb33f5dd6cf0bb93a6adc938f11039f371bc5bcd26c3" +dependencies = [ + "chrono", + "phf", +] + +[[package]] +name = "codebloom-standup-bot" +version = "0.1.0" +dependencies = [ + "chrono", + "chrono-tz", + "dotenvy", + "redis", + "serenity", + "tokio", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "futures-core", + "memchr", + "pin-project-lite", + "tokio", + "tokio-util", +] + +[[package]] +name = "command_attr" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8208103c5e25a091226dfa8d61d08d0561cc14f31b25691811ba37d4ec9b157b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "dashmap" +version = "5.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" +dependencies = [ + "cfg-if", + "hashbrown", + "lock_api", + "once_cell", + "parking_lot_core", + "serde", +] + +[[package]] +name = "data-encoding" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" + +[[package]] +name = "deranged" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "dotenvy" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" + +[[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 = "error-chain" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d2f06b9cac1506ece98fe3231e3cc9c4410ec3d5b1f24ae1c8946f0742cdefc" +dependencies = [ + "version_check", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[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" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "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", + "wasip2", + "wasm-bindgen", +] + +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +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.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls 0.23.36", + "rustls-pki-types", + "tokio", + "tokio-rustls 0.26.4", + "tower-service", + "webpki-roots 1.0.6", +] + +[[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", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "iri-string" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "js-sys" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "levenshtein" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760" + +[[package]] +name = "libc" +version = "0.2.180" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" + +[[package]] +name = "linux-raw-sys" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[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.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "mini-moka" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c325dfab65f261f386debee8b0969da215b3fa0037e74c8a1234db7ba986d803" +dependencies = [ + "crossbeam-channel", + "crossbeam-utils", + "dashmap", + "skeptic", + "smallvec", + "tagptr", + "triomphe", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[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 = "phf" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "913273894cec178f401a31ec4b656318d95473527be05c0752cc41cdc32be8b7" +dependencies = [ + "phf_shared", +] + +[[package]] +name = "phf_shared" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06005508882fb681fd97892ecff4b7fd0fee13ef1aa569f8695dae7ab9099981" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "pulldown-cmark" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57206b407293d2bcd3af849ce869d52068623f19e1b5ff8e8778e3309439682b" +dependencies = [ + "bitflags", + "memchr", + "unicase", +] + +[[package]] +name = "quinn" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls 0.23.36", + "socket2", + "thiserror 2.0.18", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" +dependencies = [ + "bytes", + "getrandom 0.3.4", + "lru-slab", + "rand 0.9.2", + "ring", + "rustc-hash", + "rustls 0.23.36", + "rustls-pki-types", + "slab", + "thiserror 2.0.18", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.60.2", +] + +[[package]] +name = "quote" +version = "1.0.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" +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 = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "redis" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e969d1d702793536d5fda739a82b88ad7cbe7d04f8386ee8cd16ad3eff4854a5" +dependencies = [ + "arcstr", + "bytes", + "cfg-if", + "combine", + "futures-util", + "itoa", + "num-bigint", + "percent-encoding", + "pin-project-lite", + "ryu", + "sha1_smol", + "socket2", + "tokio", + "tokio-util", + "url", + "xxhash-rust", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "reqwest" +version = "0.12.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147" +dependencies = [ + "base64", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "mime_guess", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls 0.23.36", + "rustls-pki-types", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls 0.26.4", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", + "webpki-roots 1.0.6", +] + +[[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 = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + +[[package]] +name = "rustix" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34" +dependencies = [ + "bitflags", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf4ef73721ac7bcd79b2b315da7779d8fc09718c6b3d2d1b2d94850eb8c18432" +dependencies = [ + "log", + "ring", + "rustls-pki-types", + "rustls-webpki 0.102.8", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls" +version = "0.23.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki 0.103.9", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.102.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" + +[[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 = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "secrecy" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e" +dependencies = [ + "serde", + "zeroize", +] + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_cow" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7bbbec7196bfde255ab54b65e34087c0849629280028238e67ee25d6a4b7da" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +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 = "serenity" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bde37f42765dfdc34e2a039e0c84afbf79a3101c1941763b0beb816c2f17541" +dependencies = [ + "arrayvec", + "async-trait", + "base64", + "bitflags", + "bytes", + "chrono", + "command_attr", + "dashmap", + "flate2", + "futures", + "levenshtein", + "mime_guess", + "parking_lot", + "percent-encoding", + "reqwest", + "rustc-hash", + "secrecy", + "serde", + "serde_cow", + "serde_json", + "static_assertions", + "time", + "tokio", + "tokio-tungstenite", + "tracing", + "typemap_rev", + "typesize", + "url", + "uwl", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sha1_smol" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "simd-adler32" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" + +[[package]] +name = "siphasher" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e" + +[[package]] +name = "skeptic" +version = "0.13.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16d23b015676c90a0f01c197bfdc786c20342c73a0afdda9025adb0bc42940a8" +dependencies = [ + "bytecount", + "cargo_metadata", + "error-chain", + "glob", + "pulldown-cmark", + "tempfile", + "walkdir", +] + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" +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.114", +] + +[[package]] +name = "tagptr" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" + +[[package]] +name = "tempfile" +version = "3.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "655da9c7eb6305c55742045d5a8d2037996d61d8de95806335c7c86ce0f82e9c" +dependencies = [ + "fastrand", + "getrandom 0.3.4", + "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 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[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.114", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "tokio-rustls" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" +dependencies = [ + "rustls 0.22.4", + "rustls-pki-types", + "tokio", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61" +dependencies = [ + "rustls 0.23.36", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c83b561d025642014097b66e6c1bb422783339e0909e4429cde4749d1990bc38" +dependencies = [ + "futures-util", + "log", + "rustls 0.22.4", + "rustls-pki-types", + "tokio", + "tokio-rustls 0.25.0", + "tungstenite", + "webpki-roots 0.26.11", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "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.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags", + "bytes", + "futures-util", + "http", + "http-body", + "iri-string", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", +] + +[[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 = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[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 = "triomphe" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd69c5aa8f924c7519d6372789a74eac5b94fb0f8fcf0d4a97eb0bfc3e785f39" + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ef1a641ea34f399a848dea702823bbecfb4c486f911735368f1f137cb8257e1" +dependencies = [ + "byteorder", + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand 0.8.5", + "rustls 0.22.4", + "rustls-pki-types", + "sha1", + "thiserror 1.0.69", + "url", + "utf-8", +] + +[[package]] +name = "typemap_rev" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74b08b0c1257381af16a5c3605254d529d3e7e109f3c62befc5d168968192998" + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "typesize" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da66c62c5b7017a2787e77373c03e6a5aafde77a73bff1ff96e91cd2e128179" +dependencies = [ + "chrono", + "dashmap", + "hashbrown", + "mini-moka", + "parking_lot", + "secrecy", + "serde_json", + "time", + "typesize-derive", + "url", +] + +[[package]] +name = "typesize-derive" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "536b6812192bda8551cfa0e52524e328c6a951b48e66529ee4522d6c721243d6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "unicase" +version = "2.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" + +[[package]] +name = "unicode-ident" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" + +[[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", + "serde_derive", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uwl" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4bf03e0ca70d626ecc4ba6b0763b934b6f2976e8c744088bb3c1d646fbb1ad0" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[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 = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a6e77fd0ae8029c9ea0063f87c46fde723e7d887703d74ad2616d792e51e6f" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.114", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.108" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12" +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.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "312e32e551d92129218ea9a2452120f4aabc03529ef03e4d0d82fb2780608598" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-roots" +version = "0.26.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" +dependencies = [ + "webpki-roots 1.0.6", +] + +[[package]] +name = "webpki-roots" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed" +dependencies = [ + "rustls-pki-types", +] + +[[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 = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[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.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.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[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.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 0.52.6", + "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-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[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_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[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_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "xxhash-rust" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdd20c5420375476fbd4394763288da7eb0cc0b8c11deed431a91562af7335d3" + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.114", +] + +[[package]] +name = "zmij" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ff05f8caa9038894637571ae6b9e29466c1f4f829d26c9b28f869a29cbe3445" diff --git a/internal/standup-bot/Cargo.toml b/internal/standup-bot/Cargo.toml new file mode 100644 index 000000000..b827156e7 --- /dev/null +++ b/internal/standup-bot/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "codebloom-standup-bot" +version = "0.1.0" +edition = "2024" + +[dependencies] +dotenvy = "0.15.7" +serenity = "0.12" +tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] } +redis = { version = "1.0.3", features = ["tokio-comp"] } +chrono = "0.4.43" +chrono-tz = "0.10.4" diff --git a/internal/standup-bot/Dockerfile b/internal/standup-bot/Dockerfile new file mode 100644 index 000000000..553d821ef --- /dev/null +++ b/internal/standup-bot/Dockerfile @@ -0,0 +1,15 @@ +FROM rust:1-alpine AS build + +WORKDIR /app + +COPY internal/standup-bot/Cargo.toml internal/standup-bot/Cargo.lock ./ +COPY internal/standup-bot/src ./src +RUN cargo build --release -v + +FROM alpine:3.23.3 + +WORKDIR /app + +COPY --from=build /app/target/release/codebloom-standup-bot ./ + +ENTRYPOINT ["./codebloom-standup-bot"] diff --git a/internal/standup-bot/README.md b/internal/standup-bot/README.md new file mode 100644 index 000000000..b08cf14f1 --- /dev/null +++ b/internal/standup-bot/README.md @@ -0,0 +1,8 @@ +# Codebloom Standup Bot + +### Description + +This repo houses the logic to run the Codebloom development team's standup messages. It is written in Rust and utilizes serenity.rs +to send this message. + +_This README is currently a WIP._ diff --git a/internal/standup-bot/example.env b/internal/standup-bot/example.env new file mode 100644 index 000000000..788ccfc50 --- /dev/null +++ b/internal/standup-bot/example.env @@ -0,0 +1,9 @@ +DISCORD_CLIENT_ID= +DISCORD_CLIENT_SECRET= +DISCORD_TOKEN= + +# Point to guild and channel to send standup messages. +DISCORD_GUILD_ID= +DISCORD_CHANNEL_ID= + +REDIS_URI= diff --git a/internal/standup-bot/example.env.production b/internal/standup-bot/example.env.production new file mode 100644 index 000000000..788ccfc50 --- /dev/null +++ b/internal/standup-bot/example.env.production @@ -0,0 +1,9 @@ +DISCORD_CLIENT_ID= +DISCORD_CLIENT_SECRET= +DISCORD_TOKEN= + +# Point to guild and channel to send standup messages. +DISCORD_GUILD_ID= +DISCORD_CHANNEL_ID= + +REDIS_URI= diff --git a/internal/standup-bot/rustfmt.toml b/internal/standup-bot/rustfmt.toml new file mode 100644 index 000000000..214c6f348 --- /dev/null +++ b/internal/standup-bot/rustfmt.toml @@ -0,0 +1,6 @@ +edition = "2024" +comment_width = 100 +format_code_in_doc_comments = true +imports_granularity = "Crate" +imports_layout = "Vertical" +wrap_comments = true diff --git a/internal/standup-bot/src/discord/client.rs b/internal/standup-bot/src/discord/client.rs new file mode 100644 index 000000000..d54fe405c --- /dev/null +++ b/internal/standup-bot/src/discord/client.rs @@ -0,0 +1,80 @@ +use std::sync::{ + Arc, + OnceLock, +}; + +use serenity::{ + Client, + Error, + all::{ + ChannelId, + Colour, + CreateEmbed, + CreateEmbedFooter, + CreateMessage, + CreateThread, + GatewayIntents, + }, + http::Http, +}; + +use crate::discord::{ + credentials::DiscordCredentials, + handlers::Handler, +}; + +const INTENTS: GatewayIntents = GatewayIntents::GUILD_MEMBERS; +static HTTP: OnceLock> = OnceLock::new(); + +pub async fn init_in_bg(discord_creds: &DiscordCredentials) -> Result<(), Error> { + let mut client = Client::builder(&discord_creds.token, INTENTS) + .event_handler(Handler) + .await?; + + let http = client.http.clone(); + let _ = HTTP + .set(http) + .inspect_err(|_| println!("Attempted to save Discord HTTP client more than once")); + + tokio::spawn(async move { + if let Err(e) = client.start().await { + println!("Client error: {e:?}"); + } + }); + + Ok(()) +} + +pub fn get_http() -> Arc { + HTTP.get().expect("Discord not initialized").clone() +} + +pub async fn send_standup_message(discord_creds: &DiscordCredentials) -> Result<(), Error> { + println!("Sending standup message!"); + + let embed = CreateEmbed::new() + .title("Codebloom Standup") + .description( + "Standup time! Please leave an update about your latest progress inside of the thread.", + ) + .footer( + CreateEmbedFooter::new("Codebloom - Internal") + .icon_url("https://codebloom.patinanetwork.org/favicon.ico"), + ) + .colour(Colour::from_rgb(69, 129, 103)); + let create_msg = CreateMessage::new().embed(embed); + let channel = ChannelId::new(discord_creds.channel_id); + + let msg = channel + .send_message(get_http().as_ref(), create_msg) + .await + .inspect_err(|e| println!("Error sending message: {e:#?}"))?; + + let thread_builder = CreateThread::new("Daily Standup Thread"); + + channel + .create_thread_from_message(get_http().as_ref(), msg.id, thread_builder) + .await + .inspect_err(|e| println!("Error creating thread: {e:#?}")) + .map(|_| ()) +} diff --git a/internal/standup-bot/src/discord/commands/hello.rs b/internal/standup-bot/src/discord/commands/hello.rs new file mode 100644 index 000000000..aee75ad16 --- /dev/null +++ b/internal/standup-bot/src/discord/commands/hello.rs @@ -0,0 +1,12 @@ +use serenity::{ + builder::CreateCommand, + model::application::ResolvedOption, +}; + +pub fn run(_options: &[ResolvedOption]) -> String { + "Hello from Codebloom via the Rust Standup Bot!".to_string() +} + +pub fn register() -> CreateCommand { + CreateCommand::new("hello").description("Test command") +} diff --git a/internal/standup-bot/src/discord/commands/mod.rs b/internal/standup-bot/src/discord/commands/mod.rs new file mode 100644 index 000000000..152adf1c8 --- /dev/null +++ b/internal/standup-bot/src/discord/commands/mod.rs @@ -0,0 +1 @@ +pub mod hello; diff --git a/internal/standup-bot/src/discord/credentials.rs b/internal/standup-bot/src/discord/credentials.rs new file mode 100644 index 000000000..c2c99e065 --- /dev/null +++ b/internal/standup-bot/src/discord/credentials.rs @@ -0,0 +1,32 @@ +use std::env; + +#[derive(Clone)] +pub struct DiscordCredentials { + #[allow(dead_code)] + pub client_id: u64, + #[allow(dead_code)] + pub client_secret: String, + pub token: String, + pub guild_id: u64, + pub channel_id: u64, +} + +pub fn get_discord_credentials() -> DiscordCredentials { + DiscordCredentials { + client_id: env::var("DISCORD_CLIENT_ID") + .expect("DISCORD_CLIENT_ID is missing from environment") + .parse() + .expect("DISCORD_CLIENT_ID is not an integer type"), + client_secret: env::var("DISCORD_CLIENT_SECRET") + .expect("DISCORD_CLIENT_SECRET is missing from environment"), + token: env::var("DISCORD_TOKEN").expect("DISCORD_TOKEN is missing from environment"), + guild_id: env::var("DISCORD_GUILD_ID") + .expect("DISCORD_GUILD_ID is missing from environment") + .parse() + .expect("DISCORD_GUILD_ID is not an integer type"), + channel_id: env::var("DISCORD_CHANNEL_ID") + .expect("DISCORD_CHANNEL_ID is missing from environment") + .parse() + .expect("DISCORD_CHANNEL_ID is not an integer type"), + } +} diff --git a/internal/standup-bot/src/discord/handlers.rs b/internal/standup-bot/src/discord/handlers.rs new file mode 100644 index 000000000..59b382a35 --- /dev/null +++ b/internal/standup-bot/src/discord/handlers.rs @@ -0,0 +1,58 @@ +use serenity::{ + all::{ + Command, + Context, + CreateInteractionResponse, + CreateInteractionResponseMessage, + EventHandler, + GuildId, + Interaction, + Ready, + }, + async_trait, +}; + +use crate::discord::{ + commands, + credentials, +}; + +pub struct Handler; + +#[async_trait] +impl EventHandler for Handler { + async fn interaction_create(&self, ctx: Context, interaction: Interaction) { + if let Interaction::Command(command) = interaction { + println!("Received command interaction: {command:#?}"); + + let content = match command.data.name.as_str() { + "hello" => Some(commands::hello::run(&command.data.options())), + _ => Some("not implemented :(".to_string()), + }; + + if let Some(content) = content { + let data = CreateInteractionResponseMessage::new().content(content); + let builder = CreateInteractionResponse::Message(data); + if let Err(why) = command.create_response(&ctx.http, builder).await { + eprintln!("Cannot respond to slash command: {why}"); + } + } + } + } + + async fn ready(&self, ctx: Context, ready: Ready) { + println!("{} is connected!", ready.user.name); + + let creds = credentials::get_discord_credentials(); + + let commands = get_commands(creds.guild_id, ctx).await; + println!("I now have the following guild slash commands: {commands:#?}"); + } +} + +pub async fn get_commands(guild_id: u64, ctx: Context) -> Result, serenity::Error> { + let guild = GuildId::new(guild_id); + return guild + .set_commands(&ctx.http, vec![commands::hello::register()]) + .await; +} diff --git a/internal/standup-bot/src/discord/mod.rs b/internal/standup-bot/src/discord/mod.rs new file mode 100644 index 000000000..8469a7ce9 --- /dev/null +++ b/internal/standup-bot/src/discord/mod.rs @@ -0,0 +1,4 @@ +pub mod client; +pub mod commands; +pub mod credentials; +pub mod handlers; diff --git a/internal/standup-bot/src/main.rs b/internal/standup-bot/src/main.rs new file mode 100644 index 000000000..30cec6d69 --- /dev/null +++ b/internal/standup-bot/src/main.rs @@ -0,0 +1,56 @@ +use chrono::Utc; +use dotenvy::dotenv; +use tokio::time::interval; + +use crate::utils::is_time_to_send_standup_message; + +mod discord; +mod redis; +mod utils; + +const FIFTEEN_MINUTES_AS_SECONDS: u64 = 15 * 60; + +#[tokio::main] +async fn main() { + match dotenv() { + Ok(_) => (), + Err(e) => eprintln!("Failed to load .env but continuing anyways...: {e:#?}\n\n"), + } + + let redis_creds = redis::credentials::get_redis_credentials(); + redis::client::init(&redis_creds) + .await + .expect("Failed to initialize Redis client"); + + let discord_creds = discord::credentials::get_discord_credentials(); + discord::client::init_in_bg(&discord_creds) + .await + .expect("Failed to initialize Discord client"); + + let mut interval = interval(tokio::time::Duration::from_secs(FIFTEEN_MINUTES_AS_SECONDS)); + + loop { + let cloned_discord_creds = discord_creds.clone(); + interval.tick().await; + tokio::spawn(async move { + match redis::client::get_last_standup().await { + Ok(last_standup) => { + if !is_time_to_send_standup_message(last_standup) { + return; + } + if let Err(e) = + discord::client::send_standup_message(&cloned_discord_creds).await + { + eprintln!("Failed to send standup message: {e:#?}"); + return; + } + + if let Err(e) = redis::client::set_last_standup(Utc::now()).await { + eprintln!("Failed to save standup to Redis: {e:#?}"); + } + } + Err(e) => eprintln!("Failed to get last standup from Redis: {e:#?}"), + } + }); + } +} diff --git a/internal/standup-bot/src/redis/client.rs b/internal/standup-bot/src/redis/client.rs new file mode 100644 index 000000000..5f8cb2bc7 --- /dev/null +++ b/internal/standup-bot/src/redis/client.rs @@ -0,0 +1,49 @@ +use chrono::{ + DateTime, + Utc, +}; +use redis::{ + AsyncCommands, + aio::MultiplexedConnection, +}; +use std::sync::OnceLock; + +use crate::redis::{ + credentials::RedisCredentials, + error::RedisClientError, +}; + +static CONN: OnceLock = OnceLock::new(); + +pub async fn init(creds: &RedisCredentials) -> Result<(), RedisClientError> { + let client = redis::Client::open(creds.redis_uri.clone())?; + let con = client.get_multiplexed_async_connection().await?; + + match CONN.set(con) { + Ok(_) => (), + Err(_) => println!("Attempted to save Redis CONN more than once"), + } + + Ok(()) +} + +async fn get_conn() -> MultiplexedConnection { + CONN.get().expect("Redis not initialized").clone() +} + +pub async fn set_last_standup(time: DateTime) -> Result<(), RedisClientError> { + let mut conn = get_conn().await; + + Ok(conn.set("standup", time.to_string()).await?) +} + +pub async fn get_last_standup() -> Result>, RedisClientError> { + let mut conn = get_conn().await; + + let value: Option = conn.get("standup").await?; + + value + .map(|v| v.parse::>()) + .transpose() + .map_err(RedisClientError::from) +} diff --git a/internal/standup-bot/src/redis/credentials.rs b/internal/standup-bot/src/redis/credentials.rs new file mode 100644 index 000000000..4a82e200e --- /dev/null +++ b/internal/standup-bot/src/redis/credentials.rs @@ -0,0 +1,11 @@ +use std::env; + +pub struct RedisCredentials { + pub redis_uri: String, +} + +pub fn get_redis_credentials() -> RedisCredentials { + RedisCredentials { + redis_uri: env::var("REDIS_URI").expect("REDIS_URI is missing from environment"), + } +} diff --git a/internal/standup-bot/src/redis/error.rs b/internal/standup-bot/src/redis/error.rs new file mode 100644 index 000000000..6de8aafc6 --- /dev/null +++ b/internal/standup-bot/src/redis/error.rs @@ -0,0 +1,21 @@ +use chrono::ParseError; +use redis::RedisError; + +#[derive(Debug)] +#[allow(dead_code)] +pub enum RedisClientError { + Redis(RedisError), + DateTimeParse(ParseError), +} + +impl From for RedisClientError { + fn from(value: RedisError) -> Self { + RedisClientError::Redis(value) + } +} + +impl From for RedisClientError { + fn from(value: ParseError) -> Self { + RedisClientError::DateTimeParse(value) + } +} diff --git a/internal/standup-bot/src/redis/mod.rs b/internal/standup-bot/src/redis/mod.rs new file mode 100644 index 000000000..e6febfb12 --- /dev/null +++ b/internal/standup-bot/src/redis/mod.rs @@ -0,0 +1,3 @@ +pub mod client; +pub mod credentials; +pub mod error; diff --git a/internal/standup-bot/src/utils.rs b/internal/standup-bot/src/utils.rs new file mode 100644 index 000000000..eac367788 --- /dev/null +++ b/internal/standup-bot/src/utils.rs @@ -0,0 +1,32 @@ +use chrono::{ + DateTime, + Datelike as _, + Timelike as _, + Utc, + Weekday, +}; +use chrono_tz::US; + +pub fn is_time_to_send_standup_message(last_standup_time: Option>) -> bool { + let now = Utc::now().with_timezone(&US::Eastern); + let weekday = now.weekday(); + let hour = now.hour(); + + let is_standup_day = weekday == Weekday::Mon || weekday == Weekday::Wed; + let is_standup_time = hour >= 12; + + if !(is_standup_day && is_standup_time) { + return false; + } + + match last_standup_time { + Some(dt) => { + let last_standup_et = dt.with_timezone(&US::Eastern); + + let already_sent_today = last_standup_et.date_naive() == now.date_naive(); + + !already_sent_today + } + None => true, + } +} From b32c6dc313691f9199ffbbef4d32035cfbb67c73 Mon Sep 17 00:00:00 2001 From: Tahmid Ahmed Date: Sun, 8 Feb 2026 03:45:54 -0500 Subject: [PATCH 4/6] 755: Add any required IDE configuration for Rust --- .nvim.lua | 12 ++++++++++++ .vscode/extensions.json | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.nvim.lua b/.nvim.lua index 4b32049dd..77fa4b55a 100644 --- a/.nvim.lua +++ b/.nvim.lua @@ -1,5 +1,17 @@ vim.o.autoread = true +vim.g.rustaceanvim = { + server = { + settings = { + ["rust-analyzer"] = { + rustfmt = { + extraArgs = { "+nightly" }, + }, + }, + }, + }, +} + local running = false vim.api.nvim_create_autocmd("BufWritePost", { pattern = "*.java", diff --git a/.vscode/extensions.json b/.vscode/extensions.json index fa317c4e1..0adb84629 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -13,6 +13,7 @@ "bradlc.vscode-tailwindcss", "redhat.vscode-xml", "emeraldwalk.runonsave", - "vitest.explorer" + "vitest.explorer", + "rust-lang.rust-analyzer" ] } From 01d905081cfd9cded42d398263102f0d194b9c00 Mon Sep 17 00:00:00 2001 From: Tahmid Ahmed Date: Sun, 8 Feb 2026 03:48:02 -0500 Subject: [PATCH 5/6] 755: Setup codebloom-standup-bot build / deployment scripts & add Coolify under internal (DESC) Coolify is brought in due to the fact that DigitalOcean is expensive and paying 5 dollars a month to deploy one-off script doesn't make a lot of financial sense right now. Instead, these internal/ pkgs will likely be deployed on a VPS that @tahminator owns via Coolify. --- .../build-image/internal/standup-bot.ts | 87 +++++++++++++ .github/scripts/bun.lock | 5 + .github/scripts/package.json | 4 +- .../redeploy/internal/coolify/index.ts | 8 ++ .../redeploy/internal/standup-bot/index.ts | 117 ++++++++++++++++++ .../redeploy/internal/standup-bot/utils.ts | 113 +++++++++++++++++ 6 files changed, 333 insertions(+), 1 deletion(-) create mode 100644 .github/scripts/build-image/internal/standup-bot.ts create mode 100644 .github/scripts/redeploy/internal/coolify/index.ts create mode 100644 .github/scripts/redeploy/internal/standup-bot/index.ts create mode 100644 .github/scripts/redeploy/internal/standup-bot/utils.ts diff --git a/.github/scripts/build-image/internal/standup-bot.ts b/.github/scripts/build-image/internal/standup-bot.ts new file mode 100644 index 000000000..09a909d6a --- /dev/null +++ b/.github/scripts/build-image/internal/standup-bot.ts @@ -0,0 +1,87 @@ +import { $ } from "bun"; +import { getEnvVariables } from "load-secrets/env/load"; + +process.env.TZ = "America/New_York"; + +const shouldDockerUpload = Boolean(process.env.DOCKER_UPLOAD) || false; + +async function main() { + const ciEnv = await getEnvVariables(["ci"]); + const { dockerHubPat } = parseCiEnv(ciEnv); + + // copy old tz format from build-image.sh + const timestamp = new Date() + .toLocaleString("en-US", { + timeZone: process.env.TZ, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + hour12: false, + }) + .replace(/(\d+)\/(\d+)\/(\d+),\s(\d+):(\d+):(\d+)/, "$3.$1.$2-$4.$5.$6"); + + const gitSha = (await $`git rev-parse --short HEAD`.text()).trim(); + + const tags = [ + `tahminator/codebloom-standup-bot:latest`, + `tahminator/codebloom-standup-bot:${timestamp}`, + `tahminator/codebloom-standup-bot:${gitSha}`, + ]; + + console.log("Building image with following tags:"); + tags.forEach((tag) => console.log(tag)); + + if (dockerHubPat) { + console.log("DOCKER_HUB_PAT found"); + } else { + console.log("DOCKER_HUB_PAT missing or empty"); + } + + await $`echo ${dockerHubPat} | docker login -u tahminator --password-stdin`; + + try { + await $`docker buildx create --use --name codebloom-standup-bot-builder`; + } catch { + await $`docker buildx use codebloom-standup-bot-builder`; + } + + const buildMode = shouldDockerUpload ? "--push" : "--load"; + + const tagArgs = tags.flatMap((tag) => ["--tag", tag]); + + console.log(`cwd is ${process.cwd()}`); + + await $`docker buildx build ${buildMode} \ + --platform linux/amd64 \ + --file internal/standup-bot/Dockerfile \ + --cache-from=type=gha \ + --cache-to=type=gha,mode=max \ + ${tagArgs} \ + .`; + + console.log("Image pushed successfully."); +} + +function parseCiEnv(ciEnv: Record) { + const dockerHubPat = (() => { + const v = ciEnv["DOCKER_HUB_PAT"]; + if (!v) { + throw new Error("Missing DOCKER_HUB_PAT from .env.ci"); + } + return v; + })(); + + return { dockerHubPat }; +} + +main() + .then(() => { + process.exit(0); + }) + .catch((e) => { + console.error(e); + process.exit(1); + }); diff --git a/.github/scripts/bun.lock b/.github/scripts/bun.lock index 2f7e24af5..31cc77bdc 100644 --- a/.github/scripts/bun.lock +++ b/.github/scripts/bun.lock @@ -10,6 +10,7 @@ "@notionhq/client": "^5.7.0", "@octokit/rest": "^22.0.1", "bun": "^1.3.6", + "coolify": "https://github.com/tahminator/Coolify-TypeScript-SDK#8e19e18635ea2b095a9c39c574d22eefd938441f", "octokit": "^5.0.5", }, "devDependencies": { @@ -318,6 +319,8 @@ "concat-map": ["concat-map@0.0.1", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="], + "coolify": ["coolify@github:tahminator/Coolify-TypeScript-SDK#8e19e18", { "peerDependencies": { "zod": ">= 3" } }, "tahminator-Coolify-TypeScript-SDK-8e19e18"], + "core-util-is": ["core-util-is@1.0.3", "", {}, "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="], "crc-32": ["crc-32@1.2.2", "", { "bin": { "crc32": "bin/crc32.njs" } }, "sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ=="], @@ -642,6 +645,8 @@ "zip-stream": ["zip-stream@6.0.1", "", { "dependencies": { "archiver-utils": "^5.0.0", "compress-commons": "^6.0.2", "readable-stream": "^4.0.0" } }, "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA=="], + "zod": ["zod@4.3.6", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="], + "@actions/github/@actions/http-client": ["@actions/http-client@2.2.3", "", { "dependencies": { "tunnel": "^0.0.6", "undici": "^5.25.4" } }, "sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA=="], "@actions/github/@octokit/plugin-paginate-rest": ["@octokit/plugin-paginate-rest@9.2.2", "", { "dependencies": { "@octokit/types": "^12.6.0" }, "peerDependencies": { "@octokit/core": "5" } }, "sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ=="], diff --git a/.github/scripts/package.json b/.github/scripts/package.json index 93e172e66..402be6bcd 100644 --- a/.github/scripts/package.json +++ b/.github/scripts/package.json @@ -3,7 +3,8 @@ "version": "1.0.0", "description": "CodeBloom CI Scripts", "scripts": { - "typecheck": "tsc --noEmit", + "coolify-lib-hack": "find node_modules/coolify -type f -name '*.ts' -exec sh -c 'echo \"// @ts-nocheck\" > /tmp/file.tmp && cat \"$1\" >> /tmp/file.tmp && mv /tmp/file.tmp \"$1\"' _ {} \\;", + "typecheck": "bun run coolify-lib-hack && tsc --noEmit", "test": "bun run typecheck && bun run prettier && bun run lint", "fix": "bun run eslint:fix && bun run prettier:fix", "lint": "bun run eslint", @@ -21,6 +22,7 @@ "@notionhq/client": "^5.7.0", "@octokit/rest": "^22.0.1", "bun": "^1.3.6", + "coolify": "https://github.com/tahminator/Coolify-TypeScript-SDK#8e19e18635ea2b095a9c39c574d22eefd938441f", "octokit": "^5.0.5" }, "devDependencies": { diff --git a/.github/scripts/redeploy/internal/coolify/index.ts b/.github/scripts/redeploy/internal/coolify/index.ts new file mode 100644 index 000000000..0697ae8c7 --- /dev/null +++ b/.github/scripts/redeploy/internal/coolify/index.ts @@ -0,0 +1,8 @@ +import { Coolify } from "coolify/src"; + +export async function initClient(bearerAuth: string, serverURL: string) { + return new Coolify({ + bearerAuth, + serverURL, + }); +} diff --git a/.github/scripts/redeploy/internal/standup-bot/index.ts b/.github/scripts/redeploy/internal/standup-bot/index.ts new file mode 100644 index 000000000..12274da87 --- /dev/null +++ b/.github/scripts/redeploy/internal/standup-bot/index.ts @@ -0,0 +1,117 @@ +import { getEnvVariables } from "load-secrets/env/load"; +import { initClient } from "redeploy/internal/coolify"; +import { + _getOrCreateStandupBotResource, + _triggerStandupBotDeployment, + _updateStandupBotAppEnvs, +} from "redeploy/internal/standup-bot/utils"; + +async function main() { + // should already be called + // await $`git-crypt unlock`; + + const { bearerAuth, serverUrl, projectUuid, serverUuid } = parseCiEnv( + await getEnvVariables(["ci"], { + baseDir: "internal", + }), + ); + + const client = await initClient(bearerAuth, serverUrl); + + const appUuid = await _getOrCreateStandupBotResource({ + client, + projectUuid, + serverUuid, + }); + + const appEnv = await getEnvVariables(["production"], { + baseDir: "internal/standup-bot", + }); + + await _updateStandupBotAppEnvs({ + client, + appUuid, + envs: appEnv, + }); + + const pendingDeploymentId = await _triggerStandupBotDeployment({ + client, + appUuid, + }); + + console.log("Deployment ID:", pendingDeploymentId); + + let ready = false; + const attempts = 60; + + for (let i = 1; i <= attempts; i++) { + const res = await client.deployments.get({ + uuid: pendingDeploymentId, + }); + + const phase = res.status; + + console.log("Deployment phase:", phase); + + if (phase === "finished") { + console.log("Deployment has completed!"); + ready = true; + break; + } + + if (phase === "failed" || phase === "error" || phase === "cancelled") { + console.log(`Deployment failed with phase ${phase}`); + process.exit(1); + } + + console.log(`Waiting for deployment to complete... (${i}/${attempts})`); + await Bun.sleep(10000); + } + + if (!ready) { + console.error("Deployment did not reach a valid state within 10 minutes."); + process.exit(1); + } +} + +function parseCiEnv(ciEnv: Record) { + const bearerAuth = (() => { + const v = ciEnv["COOLIFY_BEARER_AUTH"]; + if (!v) { + throw new Error("Missing COOLIFY_BEARER_AUTH from .env.ci"); + } + return v; + })(); + const serverUrl = (() => { + const v = ciEnv["COOLIFY_SERVER_URL"]; + if (!v) { + throw new Error("Missing COOLIFY_SERVER_URL from .env.ci"); + } + return v; + })(); + const serverUuid = (() => { + const v = ciEnv["COOLIFY_SERVER_UUID"]; + if (!v) { + throw new Error("Missing COOLIFY_SERVER_UUID from .env.ci"); + } + return v; + })(); + const projectUuid = (() => { + const v = ciEnv["COOLIFY_PROJECT_UUID"]; + if (!v) { + throw new Error("Missing COOLIFY_PROJECT_UUID from .env.ci"); + } + return v; + })(); + + return { bearerAuth, serverUrl, serverUuid, projectUuid }; +} + +main() + .then(() => { + process.exit(0); + }) + .catch((e) => { + console.error(e); + process.exit(1); + }); diff --git a/.github/scripts/redeploy/internal/standup-bot/utils.ts b/.github/scripts/redeploy/internal/standup-bot/utils.ts new file mode 100644 index 000000000..a02754015 --- /dev/null +++ b/.github/scripts/redeploy/internal/standup-bot/utils.ts @@ -0,0 +1,113 @@ +import type { Coolify } from "coolify/src"; +import type { Data } from "coolify/src/models/operations"; + +export async function _getOrCreateStandupBotResource({ + client, + projectUuid, + serverUuid, +}: { + client: Coolify; + projectUuid: string; + serverUuid: string; +}) { + const project = await client.projects.get({ + uuid: projectUuid, + }); + + if (!project) { + throw new Error("This project does not exist"); + } + + let apps = await client.applications.list(); + + if ( + !apps || + !apps.length || + !apps.find((app) => app.name === "codebloom-standup-bot") + ) { + await client.applications.createDockerImage({ + projectUuid, + name: "codebloom-standup-bot", + dockerRegistryImageName: "tahminator/codebloom-standup-bot", + dockerRegistryImageTag: "latest", + serverUuid, + description: "codebloom-standup-bot", + environmentName: "production", + portsExposes: "8080", + }); + + apps = await client.applications.list(); + } + + if (!apps || !apps.length) { + throw new Error("No apps found in project even after creation step"); + } + + const app = apps.find((app) => app.name === "codebloom-standup-bot"); + + if (!app) { + throw new Error("Cannot find codebloom-standup-bot resource"); + } + + if (!app.uuid) { + throw new Error("codebloom-standup-bot is missing UUID"); + } + + return app.uuid; +} + +export async function _updateStandupBotAppEnvs({ + client, + appUuid, + envs, +}: { + client: Coolify; + appUuid: string; + envs: Record; +}) { + const data: Data[] = Object.entries(envs).map( + ([key, value]) => + ({ + key, + value, + isShownOnce: true, + isBuildTime: false, + isLiteral: false, + isMultiline: false, + isPreview: false, + }) as Data, + ); + + await client.applications.updateEnvsBulk({ + uuid: appUuid, + requestBody: { + data, + }, + }); +} + +export async function _triggerStandupBotDeployment({ + client, + appUuid, +}: { + client: Coolify; + appUuid: string; +}) { + const body = await client.deployments.deployByTagOrUuid({ + uuid: appUuid, + }); + + if (!body.deployments) { + throw new Error("Failed to get back deployment body"); + } + + if (!body.deployments[0]) { + throw new Error("Failed to find deployment"); + } + + if (!body.deployments[0].deploymentUuid) { + throw new Error("Failed to find deployment UUID"); + } + + return body.deployments[0].deploymentUuid; +} From a28eec09caf338bc237c94ab58d86b8fb3ce9c0d Mon Sep 17 00:00:00 2001 From: Tahmid Ahmed Date: Sun, 8 Feb 2026 03:48:29 -0500 Subject: [PATCH 6/6] 755: Wire up deploy & buildImage (+ test) for codebloom-standup-bot --- .../internal/standup-bot/action.yml | 38 ++++++++++++++ .../redeploy/internal/standup-bot/action.yml | 32 ++++++++++++ .github/workflows/ci-cd.yml | 51 +++++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 .github/composite/build-image/internal/standup-bot/action.yml create mode 100644 .github/composite/redeploy/internal/standup-bot/action.yml diff --git a/.github/composite/build-image/internal/standup-bot/action.yml b/.github/composite/build-image/internal/standup-bot/action.yml new file mode 100644 index 000000000..5fcda9b8f --- /dev/null +++ b/.github/composite/build-image/internal/standup-bot/action.yml @@ -0,0 +1,38 @@ +name: "Build & Upload Docker Image for codebloom-standup-bot" +description: "Build & (optionally) upload Docker Image to Docker Registry" + +inputs: + GPG_PRIVATE_KEY: + description: "GPG Private Key" + required: true + GPG_PASSPHRASE: + description: "GPG Passphrase" + required: true + DOCKER_UPLOAD: + description: "Boolean indicating whether the image should be uploaded to Docker registry or not." + required: false + default: true + +runs: + using: "composite" + steps: + - name: Setup CI + uses: ./.github/composite/setup-ci + with: + GPG_PRIVATE_KEY: ${{ inputs.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ inputs.GPG_PASSPHRASE }} + + - name: Set up OpenJDK 25 + uses: actions/setup-java@v4 + with: + distribution: "temurin" + java-version: "25" + + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v3 + + - name: Run script + shell: bash + run: bun .github/scripts/build-image/internal/standup-bot + env: + DOCKER_UPLOAD: ${{ inputs.DOCKER_UPLOAD }} diff --git a/.github/composite/redeploy/internal/standup-bot/action.yml b/.github/composite/redeploy/internal/standup-bot/action.yml new file mode 100644 index 000000000..577507962 --- /dev/null +++ b/.github/composite/redeploy/internal/standup-bot/action.yml @@ -0,0 +1,32 @@ +name: "Re-Deploy codebloom-standup-bot to Coolify" +description: "Trigger a deployment of the standup bot to Coolify." + +inputs: + GPG_PRIVATE_KEY: + description: "GPG Private Key" + required: true + GPG_PASSPHRASE: + description: "GPG Passphrase" + required: true + +runs: + using: "composite" + steps: + - name: Setup CI + uses: ./.github/composite/setup-ci + with: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v3 + + - name: Run script + shell: bash + run: bun .github/scripts/redeploy/internal/standup-bot + env: + DOCKER_UPLOAD: ${{ inputs.DOCKER_UPLOAD }} + TAG_PREFIX: ${{ inputs.TAG_PREFIX }} + SERVER_PROFILES: ${{ inputs.SERVER_PROFILES }} + ENVIRONMENT: ${{ inputs.ENVIRONMENT }} + SHA: ${{ inputs.SHA }} diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 00da79e08..c4fe74088 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -77,6 +77,23 @@ jobs: TAG_PREFIX: test- DOCKER_UPLOAD: false + testBuildStandupBotImage: + name: Build Test Docker Image for codebloom-standup-bot + runs-on: ubuntu-latest + + if: github.ref_name != 'main' + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run workflow + uses: ./.github/composite/build-image/internal/standup-bot + with: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + DOCKER_UPLOAD: false + validateDBSchema: name: Validate DB Schema on Prod DB runs-on: ubuntu-latest @@ -109,6 +126,22 @@ jobs: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + buildStandupBotImage: + name: Build codebloom-standup-bot Docker Image & Upload to Registry + runs-on: ubuntu-latest + + if: github.ref_name == 'main' + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Run workflow + uses: ./.github/composite/build-image/internal/standup-bot + with: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + redeploy: name: Redeploy on DigitalOcean runs-on: ubuntu-latest @@ -126,3 +159,21 @@ jobs: with: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + redeployStandupBot: + name: Redeploy codebloom-standup-bot on Coolify + runs-on: ubuntu-latest + needs: buildStandupBotImage + environment: production + + if: github.ref_name == 'main' + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Run workflow + uses: ./.github/composite/redeploy/internal/standup-bot + with: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}