Compare commits
14
Commits
275ac9d609
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39645baed4 | ||
|
|
99869ac3ad | ||
|
|
9dbd544b47 | ||
|
|
7096384161 | ||
|
|
47c3e908ec | ||
|
|
d358ed3ddc | ||
|
|
f86ed8c286 | ||
|
|
a2510dc4af | ||
|
|
9fda014ce6 | ||
|
|
ad69931573 | ||
|
|
bbbdd9eac5 | ||
|
|
821168a770 | ||
|
|
5586bd78a4 | ||
|
|
743d0b5d3d |
No files matched your search
@@ -1 +1 @@
|
||||
flake-profile-1-link
|
||||
flake-profile-2-link
|
||||
@@ -1 +0,0 @@
|
||||
/nix/store/8l5iic7kj6fjdgzip9p55h65j9n1yq87-nix-shell-env
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
/nix/store/v6n6l504w5s0c6cks1ip7kl7lzn1z1wy-nix-shell-env
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
PYTHONNOUSERSITE=1
|
||||
PYTHONHASHSEED=0
|
||||
PYTHONPATH=/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/lib/python3.13/site-packages:/nix/store/qpk88ppk49gbdgzhqr8chm3fhb2a2bdn-python3.13-cfgv-3.5.0/lib/python3.13/site-packages:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib/python3.13/site-packages:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/lib/python3.13/site-packages:/nix/store/w7hyxgvvq38bdx5jv9rq9gpk1zynzd8b-python3.13-cffi-2.0.0/lib/python3.13/site-packages:/nix/store/kd0yrsmrslihfp66y2k88cyan1vjydl8-python3.13-pycparser-3.00/lib/python3.13/site-packages:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/lib/python3.13/site-packages:/nix/store/qq12ssc5a12zpyjf5hgv3hpvhbqawby2-python3.13-iniconfig-2.3.0/lib/python3.13/site-packages:/nix/store/cc9qkj968x46wz4ycp5i2gg988b8c4g0-python3.13-packaging-25.0/lib/python3.13/site-packages:/nix/store/qm4cngcbz2dx863cjabdfhibg93p9hw0-python3.13-pluggy-1.6.0/lib/python3.13/site-packages:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/lib/python3.13/site-packages:/nix/store/770zwl4ighcvb166mlvdzwjzpmnawd7m-python3.13-ukkonen-1.1.0/lib/python3.13/site-packages:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/lib/python3.13/site-packages:/nix/store/imindlm08wk8n5d0yhmm0ap3gcymqxdk-python3.13-pyyaml-6.0.3/lib/python3.13/site-packages:/nix/store/c6gikc2mm148nbb1p776nj3i32asm1nk-python3.13-toml-0.10.2/lib/python3.13/site-packages:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/lib/python3.13/site-packages:/nix/store/n3vrp2rmg7q7j977y6jiwkdcyvfzx6x5-python3.13-distlib-0.4.0/lib/python3.13/site-packages:/nix/store/wl0wp0f4cymd4bsnc2yfhasvz1cbaw0i-python3.13-filelock-3.20.3/lib/python3.13/site-packages:/nix/store/j2cwkkf3p5719cikm3l4w03swr2cvj1s-python3.13-platformdirs-4.5.1/lib/python3.13/site-packages
|
||||
LD_LIBRARY_PATH=/nix/store/pcjb2l7xad0c9j25g4h9xd9pirchvl2m-libdbusmenu-glib-16.04.0/lib
|
||||
PATH=/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/bin:/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/bin:/nix/store/sca0pf46jmxva40qahkcwys5c1lvk6n2-gcc-15.2.0/bin:/nix/store/2c48s343k15i0cmwb9cp1vi6randmzcw-glibc-2.42-51-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44/bin:/nix/store/9nmzd62x45ayp4vmswvn6z45h6bzrsla-binutils-2.44/bin:/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin:/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/bin:/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/bin:/nix/store/sca0pf46jmxva40qahkcwys5c1lvk6n2-gcc-15.2.0/bin:/nix/store/2c48s343k15i0cmwb9cp1vi6randmzcw-glibc-2.42-51-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44/bin:/nix/store/9nmzd62x45ayp4vmswvn6z45h6bzrsla-binutils-2.44/bin:/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin:/nix/store/hak3031i8bpmvdqfla85q6q3bgwqppb0-glib-2.86.3-bin/bin:/nix/store/h6hdbgkfh59np7bi7h8qa76pq27ixz8r-gnugrep-3.12/bin:/nix/store/74sind1d6vf2bfwd7yklg8chsvzqxmmq-coreutils-9.10/bin:/run/wrappers/bin:/usr/bin:/usr/sbin:/run/wrappers/bin:/home/dodgerblue/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/dodgerblue/.nix-profile/bin:/nix/profile/bin:/home/dodgerblue/.local/state/nix/profile/bin:/etc/profiles/per-user/dodgerblue/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
|
||||
Vendored
+407
@@ -0,0 +1,407 @@
|
||||
{
|
||||
"terminal.integrated.env.linux": {
|
||||
"SHELL": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"SESSION_MANAGER": "local/nixos:@/tmp/.ICE-unix/2383,unix/nixos:/tmp/.ICE-unix/2383",
|
||||
"PKG_CONFIG_FOR_TARGET": "pkg-config",
|
||||
"__HM_SESS_VARS_SOURCED": "1",
|
||||
"XDG_CONFIG_DIRS": "/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/etc/xdg:/nix/store/jiwq3wv6blg0m3djh0q3zm1r9pwwls1j-kglobalacceld-6.6.3/etc/xdg:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/etc/xdg:/home/dodgerblue/.config/kdedefaults:/home/dodgerblue/.config/kdedefaults:/etc/xdg:/home/dodgerblue/.local/share/flatpak/exports/etc/xdg:/var/lib/flatpak/exports/etc/xdg:/home/dodgerblue/.nix-profile/etc/xdg:/nix/profile/etc/xdg:/home/dodgerblue/.local/state/nix/profile/etc/xdg:/etc/profiles/per-user/dodgerblue/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg",
|
||||
"_PYTHON_HOST_PLATFORM": "linux-x86_64",
|
||||
"XDG_SESSION_PATH": "/org/freedesktop/DisplayManager/Session1",
|
||||
"NIX_BUILD_CORES": "16",
|
||||
"NIX_GCROOT": "/nix/store/v6n6l504w5s0c6cks1ip7kl7lzn1z1wy-nix-shell-env",
|
||||
"XDG_MENU_PREFIX": "plasma-",
|
||||
"GTK_IM_MODULE": "fcitx",
|
||||
"configureFlags": "",
|
||||
"APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "1",
|
||||
"mesonFlags": "",
|
||||
"PKG_CONFIG_PATH": "/usr/lib/pkgconfig",
|
||||
"PYTHONNOUSERSITE": "1",
|
||||
"ICEAUTHORITY": "/run/user/1000/iceauth_hLovTI",
|
||||
"LANGUAGE": "zh_CN:en_US",
|
||||
"shell": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"depsHostHost": "",
|
||||
"PYTHONHASHSEED": "0",
|
||||
"LC_ADDRESS": "zh_CN.UTF-8",
|
||||
"LC_NAME": "zh_CN.UTF-8",
|
||||
"SSH_AUTH_SOCK": "/run/user/1000/gnupg/S.gpg-agent.ssh",
|
||||
"DIRENV_DIR": "-/home/dodgerblue/Projects/daily_bot",
|
||||
"force_s3tc_enable": "true",
|
||||
"STRINGS": "strings",
|
||||
"depsTargetTarget": "",
|
||||
"XCURSOR_PATH": "~/.local/share/icons:~/.icons:/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/share/icons:/home/dodgerblue/.icons:/home/dodgerblue/.local/share/icons:/home/dodgerblue/.local/share/flatpak/exports/share/icons:/home/dodgerblue/.local/share/flatpak/exports/share/pixmaps:/var/lib/flatpak/exports/share/icons:/var/lib/flatpak/exports/share/pixmaps:/home/dodgerblue/.nix-profile/share/icons:/home/dodgerblue/.nix-profile/share/pixmaps:/nix/profile/share/icons:/nix/profile/share/pixmaps:/home/dodgerblue/.local/state/nix/profile/share/icons:/home/dodgerblue/.local/state/nix/profile/share/pixmaps:/etc/profiles/per-user/dodgerblue/share/icons:/etc/profiles/per-user/dodgerblue/share/pixmaps:/nix/var/nix/profiles/default/share/icons:/nix/var/nix/profiles/default/share/pixmaps:/run/current-system/sw/share/icons:/run/current-system/sw/share/pixmaps:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icons",
|
||||
"MEMORY_PRESSURE_WRITE": "c29tZSAyMDAwMDAgMjAwMDAwMAA=",
|
||||
"ELECTRON_RUN_AS_NODE": "1",
|
||||
"stdenv": "/nix/store/zkiy4zv8wz3v95bj6fdmkqwql8x1vnhb-stdenv-linux",
|
||||
"LOCALE_ARCHIVE_2_27": "/nix/store/ld2j2mq254m77hwy22pyvrs861ap1374-glibc-locales-2.42-51/lib/locale/locale-archive",
|
||||
"PKG_CONFIG_PATH_FOR_TARGET": "/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib/pkgconfig:/nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev/lib/pkgconfig",
|
||||
"builder": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"XMODIFIERS": "@im=fcitx",
|
||||
"DESKTOP_SESSION": "plasma",
|
||||
"LC_MONETARY": "zh_CN.UTF-8",
|
||||
"GDK_PIXBUF_MODULE_FILE": "/nix/store/kn9lwgvdaa94nl9nsxx5p198gry21n03-librsvg-2.61.4/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache",
|
||||
"GTK_RC_FILES": "/etc/gtk/gtkrc:/home/dodgerblue/.gtkrc:/home/dodgerblue/.config/gtkrc",
|
||||
"shellHook": "",
|
||||
"NO_AT_BRIDGE": "1",
|
||||
"DIRENV_FILE": "/home/dodgerblue/Projects/daily_bot/.envrc",
|
||||
"EDITOR": "nano",
|
||||
"phases": "buildPhase",
|
||||
"GST_PLUGIN_SYSTEM_PATH_1_0": "/usr/lib/gstreamer-1.0:/usr/lib32/gstreamer-1.0",
|
||||
"XDG_SEAT": "seat0",
|
||||
"PWD": "/home/dodgerblue/Projects/daily_bot",
|
||||
"NIX_PROFILES": "/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/dodgerblue /home/dodgerblue/.local/state/nix/profile /nix/profile /home/dodgerblue/.nix-profile /var/lib/flatpak/exports /home/dodgerblue/.local/share/flatpak/exports",
|
||||
"SOURCE_DATE_EPOCH": "315532800",
|
||||
"XDG_SESSION_DESKTOP": "KDE",
|
||||
"LOGNAME": "dodgerblue",
|
||||
"XDG_SESSION_TYPE": "wayland",
|
||||
"NIX_ENFORCE_NO_NATIVE": "1",
|
||||
"CUPS_DATADIR": "/nix/store/xqv0dp6svd0p8h4vi3swnh357bslcja9-cups-progs/share/cups",
|
||||
"NIX_PATH": "/home/dodgerblue/.nix-defexpr/channels:nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels",
|
||||
"COPILOT_OTEL_FILE_EXPORTER_PATH": "/dev/null",
|
||||
"VSCODE_ESM_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
|
||||
"SYSTEMD_EXEC_PID": "2472",
|
||||
"VSCODE_CODE_CACHE_PATH": "/home/dodgerblue/.config/Code/CachedData/cfbea10c5ffb233ea9177d34726e6056e89913dc",
|
||||
"NIXPKGS_CONFIG": "/etc/nix/nixpkgs-config.nix",
|
||||
"CXX": "g++",
|
||||
"XAUTHORITY": "/run/user/1000/xauth_lsPBPU",
|
||||
"TEMPDIR": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"system": "x86_64-linux",
|
||||
"_PYTHON_SYSCONFIGDATA_NAME": "_sysconfigdata__linux_x86_64-linux-gnu",
|
||||
"HOST_PATH": "/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin",
|
||||
"NIX_PKG_CONFIG_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu": "1",
|
||||
"XKB_DEFAULT_MODEL": "pc104",
|
||||
"GTK2_RC_FILES": "/etc/gtk-2.0/gtkrc:/home/dodgerblue/.gtkrc-2.0:/home/dodgerblue/.config/gtkrc-2.0",
|
||||
"IN_NIX_SHELL": "impure",
|
||||
"NIXPKGS_QT6_QML_IMPORT_PATH": "/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/lib/qt-6/qml:/nix/store/5r2xrchj6b67gqnhdqh1phk7kwsijkyn-qtvirtualkeyboard-6.10.2/lib/qt-6/qml:/nix/store/jhiwvnxpgppl1k1gjrnvmmax4gnf9gxv-prison-6.24.0/lib/qt-6/qml:/nix/store/7ns9a9kr8zrf3kww3h9b2ky7w1smndxa-plasma5support-6.6.3/lib/qt-6/qml:/nix/store/x6zc2kg8cs6b6pjghqqzmxswpvqwkiv2-networkmanager-qt-6.24.0/lib/qt-6/qml:/nix/store/flhayy18fz6gdwbqzl232dlrph6iqy15-plasma-nano-6.6.3/lib/qt-6/qml:/nix/store/v2bi6k9z5gg9vgr3sqx6arcakjqaq5a3-milou-6.6.3/lib/qt-6/qml:/nix/store/qzbks36fw20pyacpa5rbz00zw6z7brjw-libksysguard-6.6.3/lib/qt-6/qml:/nix/store/6j9i1w0qf0y7k6cppy4y79d6n1mw7740-kwin-6.6.3/lib/qt-6/qml:/nix/store/43qpcisygb1nwaixcnally14l7mpkh3l-kpipewire-6.6.3/lib/qt-6/qml:/nix/store/9l9z1c8g8k0djbjhf0nvfqz5fjaympx3-aurorae-6.6.3/lib/qt-6/qml:/nix/store/q689rsjnk3ww7zhl2dv7j0vmnwbknniq-kuserfeedback-6.24.0/lib/qt-6/qml:/nix/store/mlsnpqkq9fpyrg3n4a4zk90yqv39v3ja-libplasma-6.6.3/lib/qt-6/qml:/nix/store/sgg3b5kpk0x5p6l954yxyvkvlvfa3yak-layer-shell-qt-6.6.3/lib/qt-6/qml:/nix/store/saiqrr25ygh4anyyzwz9kln3y2n7nvjl-ksvg-6.24.0/lib/qt-6/qml:/nix/store/8rv62dmv1r241b2v48p4ii3i2ssd1kn0-kquickcharts-6.24.0/lib/qt-6/qml:/nix/store/lgrpsqplqigr4xj8gk0f8zhpmgqxv42z-knewstuff-6.24.0/lib/qt-6/qml:/nix/store/57702cizfwamglq28hq5yp2r74krxawy-kirigami-addons-1.12.0/lib/qt-6/qml:/nix/store/c49a97f13zr1jw1w5s97g0bdvzvjs880-kitemmodels-6.24.0/lib/qt-6/qml:/nix/store/qhsikrhvhhv39cm0lcwmgd5fimf58vkb-qtmultimedia-6.10.2/lib/qt-6/qml:/nix/store/4l2xap84w7nwhlpwv89b40izdclmd0dr-qtquick3d-6.10.2/lib/qt-6/qml:/nix/store/gbkv334019n1zmbk7kv37wcwd1f1rcrf-syntax-highlighting-6.24.0/lib/qt-6/qml:/nix/store/5hxkvxv2lsxikv4y00lq1rbhna7xvdjk-plasma-activities-6.6.3/lib/qt-6/qml:/nix/store/rqcpk1qm8by4sgayxgwgq9sp5rhjbay6-kholidays-6.24.0/lib/qt-6/qml:/nix/store/g500lp9fvaahrn92qg827fd14z5a4ygf-kdeclarative-6.24.0/lib/qt-6/qml:/nix/store/b1firifcqvfb1iz4a80pwv205ibrhsmp-kcmutils-6.24.0/lib/qt-6/qml:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/lib/qt-6/qml:/nix/store/qqwm9mi346k1qhmhg1aczbag3pxjzhyi-kwindowsystem-6.24.0/lib/qt-6/qml:/nix/store/1f04chj1xiiki4f0cxcnxdz2yrirs9s8-knotifications-6.24.0/lib/qt-6/qml:/nix/store/jsvghh31gnbicbllmpdczjldgkpwjd8r-kcoreaddons-6.24.0/lib/qt-6/qml:/nix/store/93q427ng0mgv3cqnz4917mm3z3bypdvz-qqc2-breeze-style-6.6.3/lib/qt-6/qml:/nix/store/7b77nr9q19z7hmp2450vh0gyaw3iliwg-qqc2-desktop-style-6.24.0/lib/qt-6/qml:/nix/store/iwk926y2chdpma406rinr0v90xd7da90-sonnet-6.24.0/lib/qt-6/qml:/nix/store/phhpshxc0kr3q5lq6hjl1awlc1j37izm-kirigami-6.24.0/lib/qt-6/qml:/nix/store/8l1df2l9cff1fz4a1lk182y5i5yf978a-qt5compat-6.10.2/lib/qt-6/qml:/nix/store/k1a3vfqcdd03pnzyi8z2xph3zjqdyh3d-kiconthemes-6.24.0/lib/qt-6/qml:/nix/store/0q17g0kkjbbfln6xc2zhyxnw1n0skql9-ki18n-6.24.0/lib/qt-6/qml:/nix/store/pzdik7vhhvdfqkn4z8g0f8c1cbpfq57j-kguiaddons-6.24.0/lib/qt-6/qml:/nix/store/fjxpsqca273h1y9dlrh5slip6saawlhy-kconfig-6.24.0/lib/qt-6/qml:/nix/store/kghj07qxpr2qgz47rqms4l4d2jcc5qd1-qtwayland-6.10.2/lib/qt-6/qml:/nix/store/hkfzj635mv35khsxpfc5vjfls3inymij-qtlocation-6.10.2/lib/qt-6/qml:/nix/store/5mr8c8v827j1sbbygabfhnl4qb7cdbg3-qtpositioning-6.10.2/lib/qt-6/qml:/nix/store/knzapvajf9qbx2qagx9zy9xl1nq204mi-qtdeclarative-6.10.2/lib/qt-6/qml:NIX_PROFILES=/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/dodgerblue /home/dodgerblue/.local/state/nix/profile /nix/profile /home/dodgerblue/.nix-profile /var/lib/flatpak/exports /home/dodgerblue/.local/share/flatpak/exports",
|
||||
"doInstallCheck": "",
|
||||
"HOME": "/home/dodgerblue",
|
||||
"NIX_BINTOOLS": "/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44",
|
||||
"LC_PAPER": "zh_CN.UTF-8",
|
||||
"LANG": "en_US.UTF-8",
|
||||
"_JAVA_AWT_WM_NONREPARENTING": "1",
|
||||
"XDG_CURRENT_DESKTOP": "KDE",
|
||||
"depsTargetTargetPropagated": "",
|
||||
"VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME": "/home/dodgerblue",
|
||||
"VSCODE_IPC_HOOK": "/run/user/1000/vscode-0e7aa50c-1.11-main.sock",
|
||||
"MEMORY_PRESSURE_WATCH": "/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/plasma-plasmashell.service/memory.pressure",
|
||||
"WAYLAND_DISPLAY": "wayland-0",
|
||||
"cmakeFlags": "",
|
||||
"STARSHIP_CONFIG": "/home/dodgerblue/.config/starship.toml",
|
||||
"outputs": "out",
|
||||
"GIO_EXTRA_MODULES": "/nix/store/y8dqwhsf4bvggqawlv7zia65lbr8rp51-dconf-0.49.0-lib/lib/gio/modules",
|
||||
"VSCODE_CLI": "1",
|
||||
"NIX_STORE": "/nix/store",
|
||||
"TMPDIR": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"XDG_SEAT_PATH": "/org/freedesktop/DisplayManager/Seat0",
|
||||
"LIBVA_MESSAGING_LEVEL": "1",
|
||||
"VSCODE_L10N_BUNDLE_LOCATION": "file:///home/dodgerblue/.vscode/extensions/ms-ceintl.vscode-language-pack-zh-hans-1.110.2026040813/translations/extensions/vscode.json-language-features.i18n.json",
|
||||
"LD": "ld",
|
||||
"INVOCATION_ID": "38396e5520074588ad8a2bec6103777d",
|
||||
"buildPhase": "{ echo \"------------------------------------------------------------\";",
|
||||
"RUST_SRC_PATH": "/nix/store/xqnf1bdi96i044mgfqvw9kll3554nbr9-rust-lib-src",
|
||||
"MANAGERPID": "2088",
|
||||
"DIRENV_DIFF": "eJzsvGtv3LjyJ_xVjH6ed_-oQ4q65o994cSeic_JODm2MzcMYFCkeBEvoki1bgfnuy_Utid27M4kJ2exu1gPMO5uivVjsYqsKopV-efGbV79c3N-9uv1mx_eHf94ef3m_U8fzt6dbl5tIkmlx6yv_dHLXfAvpSV6R-vNi333dyf7_mu_d_vHWlZHn76iePNi8-H46u3m1ealldPL0Le-fimwQgBBWVTODLRjGhdpl3Wo4mPnXAUirmUVxdsi26KokvZlJe2r-_SZoBVXTKSldXklc1F0OM9cF-dyWgofcbvjvnYR2sL4c-I8CdJSSLOBxRUbaT4rzQsiwrB0kzFdRFpf73qpQ1RuIbgh9zv7cvTYudqHm5Z1hn9-CQc6idbUL2lLee0rvatfbnVLsH4ZBPb1S6Zx77B6WU-u9f0txYD3gnv64SM4K6fI-ZZJXX-a5oOGQxz0uK8f9657ctcQXrraR7tQ-_vkfw6y8nmPPLykNcM73X8SF9l5X9s-CnPoa_MyjOujzYvNryc_Xp8cXx1fn5xdXD5cFxPJ5xTNUOM0rgxafDziqQvzLO2IDJPREEhL6whuIURbcCPH-7qdAiMpIzOMrSE00NEgOsGJMSbyaUAg4qHue2l5iGgdVN-6KBBRGxyipNzCW8V86nT78OWXye5zMOt01qhMZTcVhaLQ5HrKXV5lqQUNm8qI9-q_UIS2cbJNvzDg_V738UflE1TSRokchypMkBaoAxqpmIuyaKbIaRwMjsbWq-AwqaNsm23RY1EpbOmkUVEOIiSzymNO5nkSxUCCLXCWRmJng6u1juA238aPAXIbSlwqXyyeITWOSJRVrOZ8hMFYOuFbTtKwc-sSPsSHYE0lnE3Z6GdvBqh0RZqsQVMDISVTHNm6XydjsMW89hHcptlTqieyiWnXjFVR6WGp0rnifITFlPnMTGx2q03odYjQtliNwiP6ALI8VCpePIgRIHAo6VjZghSDS6esjCO1s7InrR1qH2Rro2xVzhOMMC3wPMOCLRmnY9UtOkYx1d6JTHYzTO80ZLFtDwkFdKyC1FmBKgQJyhuJUupm3SQyZaLMIida29oo2cL4KR6GuJKZKpeU83LgHoVuyrAnWDUd7lKMIiN1uzs0erdUKqCMjTFwMyYOp75aAFjGbMkr34yRlpUKc-A77OkhkKwpJRxBx8Ccq4w4NydzXtLMQjPmeQIiNUp7iDhBnSMyzLyCdsRyIhZrPcNE58YpgXSknHT1KP3B5U1nWgJdacqTcUqSJWDBLZRdI2ypOqujytf1cpDcpV2FZVU1EDQ4QxnINZ-SAjGfDfkQxxHz2NTrupS2r7nH_ZeWBJYsDJlgOmSmK-jkbAWaDqCBcBY6h6N2mnltI0laG6JsC58CKXW5QFLwQgHaVI1gwA6sW1LW4Nm4CUV451uPD0-JuFFbrlwDJshyW0wF82Ws2diU8dx1kaI1af-cydMrIytKHxqr0Djmi9AxHfIGDMaOlbJWdpFaHQara1phog7KIzG2M6WaAKGlHFKvQVyZohsmmBXZXKhI9fXU11T2rT8IksW84AMbOwkaxWIoK82Iz-hCnHQkXSK1OrldsG0vmay97GtzECz4Di1xFsvYQkshjks1ekaGDjlPkA6RCsTXtdUtUbU_JB6jg3Wd6krmZs-RTXCyqBLM3YDKATV43Ti3u_8AQpUWInYESgdYZsuAJzmrvPMLL0M-6uVm6-1ZOQThFx3KUOCkqHJQkFDKtPJNVvgcsHROx0g57PtwUBRLoGDJ2ODHSTQ6zVAu0gk1YkINTHITIrWX6ExayyQ_CKO5d6FzupPcJ1NTcAVYsQhneDcNSbxEytZj6HeMHdYwnYiMG1ouuVhYjMA8KDdZgzOaTNLSdSZEYV4fREjzHMRELmzEhusuLkSXzi72eaL8hMc5UtJLjo2MMKXr3oMHDKqXFUCAyZA1OcKLTcqkxBmwGV9AEgce8dBHTu-4tCHibUsjuI2zbfqEeGeBhlnHqmjKCY7VCOJFQa5dSlNZZugBUoVDfRBpSLsZorIU2ltVLJkReuFps4DCj0iD5jOkwyyFYoSJ4k0KZDfCETR0tGWABqjE6YWHFcjX2Oy979MQmQF6Tvk8AbhkhR6Bz03FswEMY4NygSIl26ieeo9DFKerkJ9YubxSA0IJgKWFi6lUrgaUj2SkkEFPPIvCbHs8RUJyoSUXa8h0UPUSLsBWqqvw7PyAFgeaJCwhTUjFinkJkaI2BHqQ3nfEKdiZopqTwPE88ZF3ZXCpF02F5yxSotWS4vnwTuIpANqVbMBYeFvGHS_inFGYLClOZs72Flfj1eQOh9dwBZn0kpFuYBWUS4IL4MYhBqmsvAjGRYqYm-PKQXPrwYS7VOYzG0vEC4zKvEjAyGyeTUA1kcKkl4Ps59sg66BTt7mVsYxHbfxCl3myzhYAxZQXVrBmQpGajOY7eZAVwdfgOHMVKhlvumZGQgSuiBtDkhZpfmP5R0l5_QUThQbswGjlIukydJrn-Rh3nCFjTZci7yLFdVthjQmp9WH1ULgoiNxC7OhhgHms0nnw3MYEojJZBbs3cX_FDazUCCYtmTIZ5WOes8kMefBJhynyYBXvrheHDWWjlk67BHCMUDphNkOBRp8EkM_KljCqsG7bw-FmcGBgYGgMRCjxipJ5CAYx5aYhA7nY77zDxKUvLbUdzw0wJsFcMykzMiuxgCKuorCu8cN7bMxmOsRZjFwXZk7gnDqiQkj0WDYNbSI1Yq3r_iBA142mNBIlmYKdMIJDTJYKc-SmZhGz3AeJtB1vzpAHYQCXqGCZsHrRNrehKcU0x2kGu8HibO-9az9IcniTYZJmnQ9Gps1SjVxjgDCjqOi8JADwIVJNW_3lQmAgIaKBk5RKJgyQidiJLvHspV9d8q3nlGQfYx3GMc2sx0rNQ1KhxowBk5hjk8UFonEIXRqpNZYZZD1-AUOWJsfWgCmFNq6GVC90oJn0c5wGZXykaEv6tv2C2RjnZeGiGcd4tGIcgedD2gHaAMkW7hxc94dxuv5i6GsHOS6QphPIWMKcyUoeK1qwISuEKcESqaptlcFeHWYEZLBEU8Kt4L4SLGcCjqyJO5eFkEAYR4pJXZu6xxT3-LB6OM6L2GiQDzMQKUCYJERaIAqad9ks1thKUhtH8RZti8f0RbPYEYckjVPhJE6XeJpSYfJu7JAtOxspWu3CbSBxiIkmDFwIBLmtJKm0No6SpdGUKzc2tPCrUH39FyDFIM2cxo7LuYJZQkSs4mTocD5VPs0gibBzNy476vo1pnnq_G4tjMtmDIvthlwVRTFWIDXpKNxsaedZ9OcRC26zpwDUYrtQusKmVJacWD2PGQJZoWKUIZzsj4kd1mSncV9H6RaCp-aSV3lufdnBNcozLk5SMAjAZzwiqeXIo64j8afXLv2sD-9iOaoyzuaYCOoMTkDmpfVgKMFEc4pLEIXW2i-YIyeEC2IiQHnUpbrLRKMhHjWBDcrlYj6Fi4cQFMRoYB2hFCBnl1kWSzw5gZamo7NANFLrGa8XtakPqzegYlkgHqwi46y7KivJWLmqqBaVA6vpahX3lugvlgln1mhNnZ0xyABnHmcFzoHFUCVLbpZIYU_El2IPmlpEhkpaj3yOGkU7HzJWNoVAgXuw3J2i7w6uT6MMXUolNEimQKSdjMVcyuCTImu8LuAwr2tet37_7uswL6CDOQdKNVXFtM0mEi9inuwILQiq02WkJCy-8FqmmVzoCI5zJOBcUu1FGrR0WcB41GK-8_aHLZlO0SiBQROZQyPo2CRO64TECRS-cHQFoDU5LAaCSwc0yqZ8Gcs8ibEqhjkHTphgObQhIjsXonibbGH2hKtUkILJSuzpTH3plbBWDktMiFnsGHf3qded94SPK3RnM8JHh6sMEZhMjCHSuWJhfrA4iVhr-1shxFuYb-HTOALMeOyoLjoBqy7zZqzGjhjUMajjUspojUYjLe1uWvmBW_Q0jlQFzisU226Iu9QlvMiEcVnaKG28Q_z2zTGN4rR88hVPkSVe8yJNFYuFtZbRhUxpwr0rLATT_VuEJ3YqIxLy1QhKl05zUsYGCAqBMHyefDZFvO7XWDQC2_gJdZRyyacxnpOxwGKg1NqJTFXQGUGdIAjcWaxwR_pNVwG3NIcuAw5B3r8OuMfxZ01ffSVw2_8vLwXuDXXwWuC2z9MXA_cetq62XEfUy6H2Bx9E6E9_tL9p-iTK2_uY9evmXy82dvPqn5vji82rDfabF5vjy_Vb2LzYvHmzebXhhKxf35__cPbj9eXb03fvHt5HxKIJRKQlNk1AtuIix4KwxcQVG3WxyPV8LqJ0i1z5cn9NhYNYAX_9dQX_r__avNicnF6dXvx0dn52eXX25vr1x7N3J5tXG7g-Obs4Pf_5-uRs5S56pJUPvm1q0oeXFEs9X1dt_4nmh5urua-gebmt7eDJJ9Jfjq_evD1dxVD_bVbg5x-6ZDn-xzT8mGcn-rRQvPnlyv4wyOt3P3U__X4eJx-7Urw3-nVWLlks_v7bad3--AEV7DpP-7T99eeBhmoXwx_787f20tT93_Lfo_TDL_3vP8wBwF1_XXUDzexlLUvz22_pOfzwd_87vbTph6YBiFTt7z8vv0z18kuErwZzPZzEZfv3n6sh4J9_80m2XMU__73P6ccfcwf_ManstX798fefcP2P7h_i8t1bOL6-OvulOcuaS_0P8fpU0TfHxyfp64vh9zdvYfbuw7X9OIGd9van3447OYU3JFLw4-_k48h2cggh2hF-0r5rzsAluRD8RJ0Ov5xcBO5Y8kt6VZTHlKmL8jQ-aenfXvflebK7AhUP4fe3TZnTfBcTK9uiij4cHx8fX1-Xp7ga_rZ5sXn7_vLq-vHVpyszhsdilKOEgMxlInwS88VI7AaYMhMR7HkbwW2JtuDzq0sfZhgXsW4Q5clIWUoBmIclZ5lolknayO9CT6LbO8gDIHOVxczkI0NLine truncated
|
||||
"READELF": "readelf",
|
||||
"CHROME_DESKTOP": "code.desktop",
|
||||
"KDE_SESSION_UID": "1000",
|
||||
"EGL_PLATFORM": "wayland",
|
||||
"NIX_USER_PROFILE_DIR": "/nix/var/nix/profiles/per-user/dodgerblue",
|
||||
"INFOPATH": "/home/dodgerblue/.local/share/flatpak/exports/info:/home/dodgerblue/.local/share/flatpak/exports/share/info:/var/lib/flatpak/exports/info:/var/lib/flatpak/exports/share/info:/home/dodgerblue/.nix-profile/info:/home/dodgerblue/.nix-profile/share/info:/nix/profile/info:/nix/profile/share/info:/home/dodgerblue/.local/state/nix/profile/info:/home/dodgerblue/.local/state/nix/profile/share/info:/etc/profiles/per-user/dodgerblue/info:/etc/profiles/per-user/dodgerblue/share/info:/nix/var/nix/profiles/default/info:/nix/var/nix/profiles/default/share/info:/run/current-system/sw/info:/run/current-system/sw/share/info",
|
||||
"doCheck": "",
|
||||
"XKB_DEFAULT_LAYOUT": "us",
|
||||
"depsBuildBuild": "",
|
||||
"XDG_SESSION_CLASS": "user",
|
||||
"PYTHONPATH": "/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/lib/python3.13/site-packages:/nix/store/qpk88ppk49gbdgzhqr8chm3fhb2a2bdn-python3.13-cfgv-3.5.0/lib/python3.13/site-packages:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib/python3.13/site-packages:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/lib/python3.13/site-packages:/nix/store/w7hyxgvvq38bdx5jv9rq9gpk1zynzd8b-python3.13-cffi-2.0.0/lib/python3.13/site-packages:/nix/store/kd0yrsmrslihfp66y2k88cyan1vjydl8-python3.13-pycparser-3.00/lib/python3.13/site-packages:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/lib/python3.13/site-packages:/nix/store/qq12ssc5a12zpyjf5hgv3hpvhbqawby2-python3.13-iniconfig-2.3.0/lib/python3.13/site-packages:/nix/store/cc9qkj968x46wz4ycp5i2gg988b8c4g0-python3.13-packaging-25.0/lib/python3.13/site-packages:/nix/store/qm4cngcbz2dx863cjabdfhibg93p9hw0-python3.13-pluggy-1.6.0/lib/python3.13/site-packages:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/lib/python3.13/site-packages:/nix/store/770zwl4ighcvb166mlvdzwjzpmnawd7m-python3.13-ukkonen-1.1.0/lib/python3.13/site-packages:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/lib/python3.13/site-packages:/nix/store/imindlm08wk8n5d0yhmm0ap3gcymqxdk-python3.13-pyyaml-6.0.3/lib/python3.13/site-packages:/nix/store/c6gikc2mm148nbb1p776nj3i32asm1nk-python3.13-toml-0.10.2/lib/python3.13/site-packages:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/lib/python3.13/site-packages:/nix/store/n3vrp2rmg7q7j977y6jiwkdcyvfzx6x5-python3.13-distlib-0.4.0/lib/python3.13/site-packages:/nix/store/wl0wp0f4cymd4bsnc2yfhasvz1cbaw0i-python3.13-filelock-3.20.3/lib/python3.13/site-packages:/nix/store/j2cwkkf3p5719cikm3l4w03swr2cvj1s-python3.13-platformdirs-4.5.1/lib/python3.13/site-packages",
|
||||
"COPILOT_OTEL_ENABLED": "true",
|
||||
"LC_IDENTIFICATION": "zh_CN.UTF-8",
|
||||
"GTK_PATH": "/home/dodgerblue/.local/share/flatpak/exports/lib/gtk-2.0:/home/dodgerblue/.local/share/flatpak/exports/lib/gtk-3.0:/home/dodgerblue/.local/share/flatpak/exports/lib/gtk-4.0:/var/lib/flatpak/exports/lib/gtk-2.0:/var/lib/flatpak/exports/lib/gtk-3.0:/var/lib/flatpak/exports/lib/gtk-4.0:/home/dodgerblue/.nix-profile/lib/gtk-2.0:/home/dodgerblue/.nix-profile/lib/gtk-3.0:/home/dodgerblue/.nix-profile/lib/gtk-4.0:/nix/profile/lib/gtk-2.0:/nix/profile/lib/gtk-3.0:/nix/profile/lib/gtk-4.0:/home/dodgerblue/.local/state/nix/profile/lib/gtk-2.0:/home/dodgerblue/.local/state/nix/profile/lib/gtk-3.0:/home/dodgerblue/.local/state/nix/profile/lib/gtk-4.0:/etc/profiles/per-user/dodgerblue/lib/gtk-2.0:/etc/profiles/per-user/dodgerblue/lib/gtk-3.0:/etc/profiles/per-user/dodgerblue/lib/gtk-4.0:/nix/var/nix/profiles/default/lib/gtk-2.0:/nix/var/nix/profiles/default/lib/gtk-3.0:/nix/var/nix/profiles/default/lib/gtk-4.0:/run/current-system/sw/lib/gtk-2.0:/run/current-system/sw/lib/gtk-3.0:/run/current-system/sw/lib/gtk-4.0",
|
||||
"SIZE": "size",
|
||||
"propagatedNativeBuildInputs": "",
|
||||
"ACLOCAL_PATH": "/usr/share/aclocal",
|
||||
"strictDeps": "",
|
||||
"USER": "dodgerblue",
|
||||
"TZDIR": "/etc/zoneinfo",
|
||||
"QT_WAYLAND_RECONNECT": "1",
|
||||
"AR": "ar",
|
||||
"KDE_SESSION_VERSION": "6",
|
||||
"AS": "as",
|
||||
"PAM_KWALLET5_LOGIN": "/run/user/1000/kwallet5.socket",
|
||||
"TEMP": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu": "1",
|
||||
"DISPLAY": ":0",
|
||||
"NIX_CFLAGS_LINK": "-L/usr/lib -L/usr/lib32",
|
||||
"VSCODE_PID": "4578",
|
||||
"SHLVL": "1",
|
||||
"NIX_BUILD_TOP": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"NM": "nm",
|
||||
"__HM_ZSH_SESS_VARS_SOURCED": "1",
|
||||
"PAGER": "less",
|
||||
"NIX_CFLAGS_COMPILE": " -frandom-seed=v6n6l504w5 -isystem /nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/include -isystem /nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev/include -isystem /nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/include -isystem /nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev/include",
|
||||
"LC_TELEPHONE": "zh_CN.UTF-8",
|
||||
"QTWEBKIT_PLUGIN_PATH": "/home/dodgerblue/.local/share/flatpak/exports/lib/mozilla/plugins/:/var/lib/flatpak/exports/lib/mozilla/plugins/:/home/dodgerblue/.nix-profile/lib/mozilla/plugins/:/nix/profile/lib/mozilla/plugins/:/home/dodgerblue/.local/state/nix/profile/lib/mozilla/plugins/:/etc/profiles/per-user/dodgerblue/lib/mozilla/plugins/:/nix/var/nix/profiles/default/lib/mozilla/plugins/:/run/current-system/sw/lib/mozilla/plugins/",
|
||||
"patches": "",
|
||||
"QT_IM_MODULE": "fcitx",
|
||||
"APPLICATIONINSIGHTS_CONFIGURATION_CONTENT": "{}",
|
||||
"LC_MEASUREMENT": "zh_CN.UTF-8",
|
||||
"__NIXOS_SET_ENVIRONMENT_DONE": "1",
|
||||
"VSCODE_CWD": "/home/dodgerblue",
|
||||
"XDG_VTNR": "2",
|
||||
"buildInputs": "/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0 /nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0 /nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0 /nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1 /nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0 /nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2 /nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev",
|
||||
"XDG_SESSION_ID": "2",
|
||||
"preferLocalBuild": "1",
|
||||
"LOCALE_ARCHIVE": "/run/current-system/sw/lib/locale/locale-archive",
|
||||
"MANAGERPIDFDID": "2089",
|
||||
"LESSKEYIN_SYSTEM": "/nix/store/ndjvymnavjb3xy2h54aci8cd2nmir587-lessconfig",
|
||||
"QML2_IMPORT_PATH": "/nix/store/pcrvv69n92w1gmrxwq0b0pz9whgl4g27-qtwebsockets-6.10.2/lib/qt-6/qml:/nix/store/7vav07adnypkhi7c4fflshakhq76y8kq-qtwebchannel-6.10.2/lib/qt-6/qml:/nix/store/g2dbzw07mbgsnf37qjaizffl5bayjm4g-qtwebengine-6.10.2/lib/qt-6/qml:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-5.15.18/qml:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-6/qml:/var/lib/flatpak/exports/lib/qt-5.15.18/qml:/var/lib/flatpak/exports/lib/qt-6/qml:/home/dodgerblue/.nix-profile/lib/qt-5.15.18/qml:/home/dodgerblue/.nix-profile/lib/qt-6/qml:/nix/profile/lib/qt-5.15.18/qml:/nix/profile/lib/qt-6/qml:/home/dodgerblue/.local/state/nix/profile/lib/qt-5.15.18/qml:/home/dodgerblue/.local/state/nix/profile/lib/qt-6/qml:/etc/profiles/per-user/dodgerblue/lib/qt-5.15.18/qml:/etc/profiles/per-user/dodgerblue/lib/qt-6/qml:/nix/var/nix/profiles/default/lib/qt-5.15.18/qml:/nix/var/nix/profiles/default/lib/qt-6/qml:/run/current-system/sw/lib/qt-5.15.18/qml:/run/current-system/sw/lib/qt-6/qml",
|
||||
"TERMINFO_DIRS": "/home/dodgerblue/.local/share/flatpak/exports/share/terminfo:/var/lib/flatpak/exports/share/terminfo:/home/dodgerblue/.nix-profile/share/terminfo:/nix/profile/share/terminfo:/home/dodgerblue/.local/state/nix/profile/share/terminfo:/etc/profiles/per-user/dodgerblue/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/run/current-system/sw/share/terminfo",
|
||||
"FC_FONTATIONS": "1",
|
||||
"LD_LIBRARY_PATH": "/nix/store/pcjb2l7xad0c9j25g4h9xd9pirchvl2m-libdbusmenu-glib-16.04.0/lib",
|
||||
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
|
||||
"XDG_RUNTIME_DIR": "/run/user/1000",
|
||||
"depsBuildTarget": "",
|
||||
"OBJCOPY": "objcopy",
|
||||
"DETERMINISTIC_BUILD": "1",
|
||||
"NIX_XDG_DESKTOP_PORTAL_DIR": "/run/current-system/sw/share/xdg-desktop-portal/portals",
|
||||
"OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT": "true",
|
||||
"out": "/home/dodgerblue/Projects/daily_bot/outputs/out",
|
||||
"ELECTRON_NO_ATTACH_CONSOLE": "1",
|
||||
"STRIP": "strip",
|
||||
"JOURNAL_STREAM": "9:24681",
|
||||
"XDG_DATA_DIRS": "/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/share:/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/share:/nix/store/xc7y53y1la52bm3zr2waxqsyyinw3mfi-vscode-1.113.0/share:/nix/store/xsfc5fcy12nmcdsdwm3dx1xfffh7xv30-gsettings-desktop-schemas-49.1/share/gsettings-schemas/gsettings-desktop-schemas-49.1:/nix/store/yl5yl395iqx88kd1m7lx7p7b65n0jfx9-gtk+3-3.24.51/share/gsettings-schemas/gtk+3-3.24.51:/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/share:/nix/store/kandxl389vhs4yk72gcyyxh8vcsn8a65-hunspell-1.7.2/share:/nix/store/7ns9a9kr8zrf3kww3h9b2ky7w1smndxa-plasma5support-6.6.3/share:/nix/store/hfjbhpn5fwryrmv1klbcj6j3xj11dcx2-networkmanager-1.56.0/share:/nix/store/cij2dqjwb8blvzb5ybggw18x6r6mxfyp-gnutls-3.8.12/share:/nix/store/s067sbk2zr0230c1v9dwbn8c8vp5x692-kunitconversion-6.24.0/share:/nix/store/flhayy18fz6gdwbqzl232dlrph6iqy15-plasma-nano-6.6.3/share:/nix/store/0qfb1dpnh3b31c37ji35dpylj4i5fh96-phonon-4.12.0/share:/nix/store/v2bi6k9z5gg9vgr3sqx6arcakjqaq5a3-milou-6.6.3/share:/nix/store/qzbks36fw20pyacpa5rbz00zw6z7brjw-libksysguard-6.6.3/share:/nix/store/6j9i1w0qf0y7k6cppy4y79d6n1mw7740-kwin-6.6.3/share:/nix/store/43qpcisygb1nwaixcnally14l7mpkh3l-kpipewire-6.6.3/share:/nix/store/dyd90lbldg4wx44zsahgn1iqjhn9kqnl-breeze-6.6.3/share:/nix/store/p5qbaibbj10ja63607lgx483fr6v7v22-frameworkintegration-6.24.0/share:/nix/store/aifsv6hfls6mq8dxpnb0jq03vcgfsqpa-oxygen-icons-6.1.0/share:/nix/store/9l9z1c8g8k0djbjhf0nvfqz5fjaympx3-aurorae-6.6.3/share:/nix/store/pcpwlngkpj0x1f7n8x8fr92lfwj92yqq-kdecoration-6.6.3/share:/nix/store/q689rsjnk3ww7zhl2dv7j0vmnwbknniq-kuserfeedback-6.24.0/share:/nix/store/4mnqm9kx0cd9iv5rl02bm8qvx1686y8k-ktexteditor-6.24.0/share:/nix/store/62g8gvfwqi0jkf21iblfcr6dzcpipc5z-kstatusnotifieritem-6.24.0/share:/nix/store/srq3z262i2n1nd1a29kwrfcvq3prc3ls-kscreenlocker-6.6.3/share:/nix/store/mlsnpqkq9fpyrg3n4a4zk90yqv39v3ja-libplasma-6.6.3/share:/nix/store/b58h2pc1ip0f6n9saxiyk7qrzg9s7wlz-libkscreen-6.6.3/share:/nix/store/rzls9s8a48b708cs9i5brj68r70f5y5w-kparts-6.24.0/share:/nix/store/zsd0z6fvrwxhjl5637h5x3jhx3j147ms-knotifyconfig-6.24.0/share:/nix/store/lgrpsqplqigr4xj8gk0f8zhpmgqxv42z-knewstuff-6.24.0/share:/nix/store/6dxci2jd9z7hzf230yvkpxnma6d4xind-kpackage-6.24.0/share:/nix/store/57702cizfwamglq28hq5yp2r74krxawy-kirigami-addons-1.12.0/share:/nix/store/rib030fis6j73azn4949a60n6gz042sg-gst-plugins-good-1.26.5/share:/nix/store/zyh3vyl2k8j9x1wbw02zk1glp5d5i963-gst-plugins-base-1.26.5/share:/nix/store/v5qy1399hlrnk8z6mhlzg5jz08rw3l0j-gst-plugins-bad-1.26.5/share:/nix/store/s8w14kgj50iqw1w0jdwn9s1m0k4plzgs-gstreamer-1.26.5/share:/nix/store/6m0ly5gyx01z68lw0r7mbg6v0vwj37h3-kio-extras-25.12.3/share:/nix/store/gbkv334019n1zmbk7kv37wcwd1f1rcrf-syntax-highlighting-6.24.0/share:/nix/store/i1z0nbkqbayprv3zp0j4szs54cbf8yzs-kdnssd-6.24.0/share:/nix/store/rqcpk1qm8by4sgayxgwgq9sp5rhjbay6-kholidays-6.24.0/share:/nix/store/g500lp9fvaahrn92qg827fd14z5a4ygf-kdeclarative-6.24.0/share:/nix/store/b1firifcqvfb1iz4a80pwv205ibrhsmp-kcmutils-6.24.0/share:/nix/store/4r0xaq5i7yfw93g8a397840wfn76x0kj-kactivitymanagerd-6.6.3/share:/nix/store/n7ni2i2wlmrzdzyxnpn8032dg8nhfjx3-kxmlgui-6.24.0/share:/nix/store/hgl3956pb39fgjqjy3hhsgkcpws45857-ktextwidgets-6.24.0/share:/nix/store/3vap0wnizidzvqlg77w2qgf3mnmq53rp-kglobalaccel-6.24.0/share:/nix/store/gd1zk13pzcnwr1s172k5yvrgn2c1394p-kconfigwidgets-6.24.0/share:/nix/store/1bkw0xlifkm6dgw77fxmv7sr4qad3r0j-kauth-6.24.0/share:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/share:/nix/store/fsp0vf0vjm1334rkdcyvsm3fkpxv607h-kio-6.24.0/share:/nix/store/fs9r9ndnqg7m0mm4aglfii6cykhz082b-solid-6.24.0/share:/nix/store/iw6ydv2623pqsygc1y5pckss4lw9jjdj-kwallet-6.24.0/share:/nix/store/qqwm9mi346k1qhmhg1aczbag3pxjzhyi-kwindowsystem-6.24.0/share:/nix/store/0gi38f6hnlzln7nsj9hxy2561qvna6ls-kservice-6.24.0/share:/nix/store/ac56qrsmi5jzbwgla03afd38qric00gv-kjobwidgets-6.24.0/share:/nix/store/1f04chj1xiiki4f0cxcnxdz2yrirs9s8-knotifications-6.24.0/share:/nix/store/mjylwbkyv4b3jmwsac2gam6283d2ssq5-kitemviews-6.24.0/share:/nix/store/mi9m7anm0x51n2bv5lzdvd6iry25skmr-kdoctools-6.24.0/share:/nix/store/wyzzghjww2wnhww0rgv5q0dj0ifzgpp1-kcompletion-6.24.0/share:/nix/store/nviwz1d5x06f4fpm69g2kd8fv68hm90z-kbookmarks-6.24.0/share:/nix/store/06193x4gnhgrbhf7fh1wfj2qp6ss4112-kfilemetadata-6.24.0/share:/nix/store/1ga782ml07vy0h503ac4cin0h8d7q6yh-libidn2-2.3.8/share:/nix/store/8jznwas4525hpia5z2xx5hm7qwq3n9qn-kdbusaddons-6.24.0/share:/nix/store/jsvghh31gnbicbllmpdczjldgkpwjd8r-kcoreaddons-6.24.0/share:/nix/store/8vimy52pgiyb164ch2k24vqa7xbr561c-appstream-qt-1.1.2/share:/nix/store/nn129jwsznqv7k888wb05m5whpyndqrf-pipewire-1.6.2/share:/nix/store/kznqs9p8n5di9gcnlyw63068k2363a4w-libqalculate-5.10.0/share:/nix/store/7b77nr9q19z7hmp2450vh0gyaw3iliwg-qqc2-desktop-style-6.24.0/share:/nix/store/iwk926y2chdpma406rinr0v90xd7da90-sonnet-6.24.0/share:/nix/store/phhpshxc0kr3q5lq6hjl1awlc1j37izm-kirigami-6.24.0/share:/nix/store/k1a3vfqcdd03pnzyi8z2xph3zjqdLine truncated
|
||||
"KDE_FULL_SESSION": "true",
|
||||
"GDK_BACKEND": "wayland",
|
||||
"LIBEXEC_PATH": "/home/dodgerblue/.local/share/flatpak/exports/libexec:/var/lib/flatpak/exports/libexec:/home/dodgerblue/.nix-profile/libexec:/nix/profile/libexec:/home/dodgerblue/.local/state/nix/profile/libexec:/etc/profiles/per-user/dodgerblue/libexec:/nix/var/nix/profiles/default/libexec:/run/current-system/sw/libexec",
|
||||
"TMP": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"OBJDUMP": "objdump",
|
||||
"PATH": "/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/bin:/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/bin:/nix/store/sca0pf46jmxva40qahkcwys5c1lvk6n2-gcc-15.2.0/bin:/nix/store/2c48s343k15i0cmwb9cp1vi6randmzcw-glibc-2.42-51-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44/bin:/nix/store/9nmzd62x45ayp4vmswvn6z45h6bzrsla-binutils-2.44/bin:/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin:/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/bin:/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/bin:/nix/store/sca0pf46jmxva40qahkcwys5c1lvk6n2-gcc-15.2.0/bin:/nix/store/2c48s343k15i0cmwb9cp1vi6randmzcw-glibc-2.42-51-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44/bin:/nix/store/9nmzd62x45ayp4vmswvn6z45h6bzrsla-binutils-2.44/bin:/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin:/nix/store/hak3031i8bpmvdqfla85q6q3bgwqppb0-glib-2.86.3-bin/bin:/nix/store/h6hdbgkfh59np7bi7h8qa76pq27ixz8r-gnugrep-3.12/bin:/nix/store/74sind1d6vf2bfwd7yklg8chsvzqxmmq-coreutils-9.10/bin:/run/wrappers/bin:/usr/bin:/usr/sbin:/run/wrappers/bin:/home/dodgerblue/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/dodgerblue/.nix-profile/bin:/nix/profile/bin:/home/dodgerblue/.local/state/nix/profile/bin:/etc/profiles/per-user/dodgerblue/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin",
|
||||
"propagatedBuildInputs": "",
|
||||
"dontAddDisableDepTrack": "1",
|
||||
"CC": "gcc",
|
||||
"NIX_CC": "/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0",
|
||||
"APPLICATION_INSIGHTS_NO_STATSBEAT": "true",
|
||||
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
|
||||
"depsBuildTargetPropagated": "",
|
||||
"depsBuildBuildPropagated": "",
|
||||
"DIRENV_WATCHES": "eJyk0VFq4zAQxvG76DlE8kgjWTnFvi_LMqMZN24Uq9hOmlB69z62hKYEeoGP38f_75t5oXVvdsbu21GtNHnSmetJ7Z-5PWtZFys01ut_bqvd6nSei9mYY5N1PKrZdSn5Pjj03cboZVzWxezW-aTvm_vD29oKVbvsaVYr46zT2VKt7dUG7p1Qxk6BlBUZMaeQqQhSLH1wBTIWjI6jSlQhBEkdCAAD5BRvZCH16LP_nUx0ulrnMYAqixsCc-k1UZcUwfuivss-ucgDoLjI0ScRhgDkEvWDRsgpf4W5T89AdfkR9E2DodJBt9N4uT0bgssZHj97d7u2cnio8b-PAAAA__9EabvJ",
|
||||
"VSCODE_NLS_CONFIG": "{\"userLocale\":\"zh-cn\",\"osLocale\":\"zh-cn\",\"resolvedLanguage\":\"zh-cn\",\"defaultMessagesFile\":\"/nix/store/xc7y53y1la52bm3zr2waxqsyyinw3mfi-vscode-1.113.0/lib/vscode/resources/app/out/nls.messages.json\",\"languagePack\":{\"translationsConfigFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/tcf.json\",\"messagesFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/cfbea10c5ffb233ea9177d34726e6056e89913dc/nls.messages.json\",\"corruptMarkerFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/corrupted.info\"},\"locale\":\"zh-cn\",\"availableLanguages\":{\"*\":\"zh-cn\"},\"_languagePackId\":\"03e9a0e800a6ec55d37f45386a22dcdf.zh-cn\",\"_languagePackSupport\":true,\"_translationsConfigFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/tcf.json\",\"_cacheRoot\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn\",\"_resolvedLanguagePackCoreLocation\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/cfbea10c5ffb233ea9177d34726e6056e89913dc\",\"_corruptedFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/corrupted.info\"}",
|
||||
"KDE_APPLICATIONS_AS_SCOPE": "1",
|
||||
"NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu": "1",
|
||||
"KPACKAGE_DEP_RESOLVERS_PATH": "/nix/store/p5qbaibbj10ja63607lgx483fr6v7v22-frameworkintegration-6.24.0/libexec/kf6/kpackagehandlers",
|
||||
"QT_PLUGIN_PATH": "/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/lib/qt-6/plugins:/nix/store/5r2xrchj6b67gqnhdqh1phk7kwsijkyn-qtvirtualkeyboard-6.10.2/lib/qt-6/plugins:/nix/store/7ns9a9kr8zrf3kww3h9b2ky7w1smndxa-plasma5support-6.6.3/lib/qt-6/plugins:/nix/store/v2bi6k9z5gg9vgr3sqx6arcakjqaq5a3-milou-6.6.3/lib/qt-6/plugins:/nix/store/qzbks36fw20pyacpa5rbz00zw6z7brjw-libksysguard-6.6.3/lib/qt-6/plugins:/nix/store/6j9i1w0qf0y7k6cppy4y79d6n1mw7740-kwin-6.6.3/lib/qt-6/plugins:/nix/store/dyd90lbldg4wx44zsahgn1iqjhn9kqnl-breeze-6.6.3/lib/qt-6/plugins:/nix/store/p5qbaibbj10ja63607lgx483fr6v7v22-frameworkintegration-6.24.0/lib/qt-6/plugins:/nix/store/9l9z1c8g8k0djbjhf0nvfqz5fjaympx3-aurorae-6.6.3/lib/qt-6/plugins:/nix/store/4mnqm9kx0cd9iv5rl02bm8qvx1686y8k-ktexteditor-6.24.0/lib/qt-6/plugins:/nix/store/srq3z262i2n1nd1a29kwrfcvq3prc3ls-kscreenlocker-6.6.3/lib/qt-6/plugins:/nix/store/mlsnpqkq9fpyrg3n4a4zk90yqv39v3ja-libplasma-6.6.3/lib/qt-6/plugins:/nix/store/b58h2pc1ip0f6n9saxiyk7qrzg9s7wlz-libkscreen-6.6.3/lib/qt-6/plugins:/nix/store/sgg3b5kpk0x5p6l954yxyvkvlvfa3yak-layer-shell-qt-6.6.3/lib/qt-6/plugins:/nix/store/qhsikrhvhhv39cm0lcwmgd5fimf58vkb-qtmultimedia-6.10.2/lib/qt-6/plugins:/nix/store/4l2xap84w7nwhlpwv89b40izdclmd0dr-qtquick3d-6.10.2/lib/qt-6/plugins:/nix/store/6m0ly5gyx01z68lw0r7mbg6v0vwj37h3-kio-extras-25.12.3/lib/qt-6/plugins:/nix/store/jiwq3wv6blg0m3djh0q3zm1r9pwwls1j-kglobalacceld-6.6.3/lib/qt-6/plugins:/nix/store/4r0xaq5i7yfw93g8a397840wfn76x0kj-kactivitymanagerd-6.6.3/lib/qt-6/plugins:/nix/store/1bkw0xlifkm6dgw77fxmv7sr4qad3r0j-kauth-6.24.0/lib/qt-6/plugins:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/lib/qt-6/plugins:/nix/store/fsp0vf0vjm1334rkdcyvsm3fkpxv607h-kio-6.24.0/lib/qt-6/plugins:/nix/store/qqwm9mi346k1qhmhg1aczbag3pxjzhyi-kwindowsystem-6.24.0/lib/qt-6/plugins:/nix/store/dwy1zm3bbj9yyqpk956lfmjhlwxrd8zx-kidletime-6.24.0/lib/qt-6/plugins:/nix/store/06193x4gnhgrbhf7fh1wfj2qp6ss4112-kfilemetadata-6.24.0/lib/qt-6/plugins:/nix/store/93q427ng0mgv3cqnz4917mm3z3bypdvz-qqc2-breeze-style-6.6.3/lib/qt-6/plugins:/nix/store/7b77nr9q19z7hmp2450vh0gyaw3iliwg-qqc2-desktop-style-6.24.0/lib/qt-6/plugins:/nix/store/iwk926y2chdpma406rinr0v90xd7da90-sonnet-6.24.0/lib/qt-6/plugins:/nix/store/k1a3vfqcdd03pnzyi8z2xph3zjqdyh3d-kiconthemes-6.24.0/lib/qt-6/plugins:/nix/store/0q17g0kkjbbfln6xc2zhyxnw1n0skql9-ki18n-6.24.0/lib/qt-6/plugins:/nix/store/kghj07qxpr2qgz47rqms4l4d2jcc5qd1-qtwayland-6.10.2/lib/qt-6/plugins:/nix/store/hkfzj635mv35khsxpfc5vjfls3inymij-qtlocation-6.10.2/lib/qt-6/plugins:/nix/store/5mr8c8v827j1sbbygabfhnl4qb7cdbg3-qtpositioning-6.10.2/lib/qt-6/plugins:/nix/store/knzapvajf9qbx2qagx9zy9xl1nq204mi-qtdeclarative-6.10.2/lib/qt-6/plugins:/nix/store/4ap1s1ybfb07q8wjy485267y7q6nsj2s-qtsvg-6.10.2/lib/qt-6/plugins:/nix/store/9lf2mfhsk7s379mfsh8nqc4xabdg6dw6-qtbase-6.10.2/lib/qt-6/plugins:/nix/store/r2lbmw6jvlwak1lc7213z1j9z4xm39by-qtbase-6.10.2-only-plugins-qml/lib/qt-6/plugins:/nix/store/b87cqgm5kcp4n1i603gjvizjxpcmbb7n-fcitx5-with-addons-5.1.19/lib/qt-6/plugins:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-5.15.18/plugins:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-6/plugins:/var/lib/flatpak/exports/lib/qt-5.15.18/plugins:/var/lib/flatpak/exports/lib/qt-6/plugins:/home/dodgerblue/.nix-profile/lib/qt-5.15.18/plugins:/home/dodgerblue/.nix-profile/lib/qt-6/plugins:/nix/profile/lib/qt-5.15.18/plugins:/nix/profile/lib/qt-6/plugins:/home/dodgerblue/.local/state/nix/profile/lib/qt-5.15.18/plugins:/home/dodgerblue/.local/state/nix/profile/lib/qt-6/plugins:/etc/profiles/per-user/dodgerblue/lib/qt-5.15.18/plugins:/etc/profiles/per-user/dodgerblue/lib/qt-6/plugins:/nix/var/nix/profiles/default/lib/qt-5.15.18/plugins:/nix/var/nix/profiles/default/lib/qt-6/plugins:/run/current-system/sw/lib/qt-5.15.18/plugins:/run/current-system/sw/lib/qt-6/plugins",
|
||||
"CONFIG_SHELL": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"XKB_DEFAULT_OPTIONS": "terminate:ctrl_alt_bksp",
|
||||
"__structuredAttrs": "",
|
||||
"RANLIB": "ranlib",
|
||||
"NIX_HARDENING_ENABLE": "bindnow format fortify fortify3 libcxxhardeningextensive libcxxhardeningfast pic relro stackclashprotection stackprotector strictoverflow zerocallusedregs",
|
||||
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
|
||||
"OLDPWD": "",
|
||||
"NIX_LDFLAGS": "-rpath /home/dodgerblue/Projects/daily_bot/outputs/out/lib -L/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib -L/nix/store/whs07fdxlw22fi8b3jzd2z871dh41qx6-sqlite-3.51.2/lib -L/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib -L/nix/store/whs07fdxlw22fi8b3jzd2z871dh41qx6-sqlite-3.51.2/lib",
|
||||
"nativeBuildInputs": "",
|
||||
"COPILOT_OTEL_EXPORTER_TYPE": "file",
|
||||
"name": "nix-shell-env",
|
||||
"depsHostHostPropagated": ""
|
||||
},
|
||||
"terminal.integrated.env.osx": {
|
||||
"SHELL": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"SESSION_MANAGER": "local/nixos:@/tmp/.ICE-unix/2383,unix/nixos:/tmp/.ICE-unix/2383",
|
||||
"PKG_CONFIG_FOR_TARGET": "pkg-config",
|
||||
"__HM_SESS_VARS_SOURCED": "1",
|
||||
"XDG_CONFIG_DIRS": "/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/etc/xdg:/nix/store/jiwq3wv6blg0m3djh0q3zm1r9pwwls1j-kglobalacceld-6.6.3/etc/xdg:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/etc/xdg:/home/dodgerblue/.config/kdedefaults:/home/dodgerblue/.config/kdedefaults:/etc/xdg:/home/dodgerblue/.local/share/flatpak/exports/etc/xdg:/var/lib/flatpak/exports/etc/xdg:/home/dodgerblue/.nix-profile/etc/xdg:/nix/profile/etc/xdg:/home/dodgerblue/.local/state/nix/profile/etc/xdg:/etc/profiles/per-user/dodgerblue/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg",
|
||||
"_PYTHON_HOST_PLATFORM": "linux-x86_64",
|
||||
"XDG_SESSION_PATH": "/org/freedesktop/DisplayManager/Session1",
|
||||
"NIX_BUILD_CORES": "16",
|
||||
"NIX_GCROOT": "/nix/store/v6n6l504w5s0c6cks1ip7kl7lzn1z1wy-nix-shell-env",
|
||||
"XDG_MENU_PREFIX": "plasma-",
|
||||
"GTK_IM_MODULE": "fcitx",
|
||||
"configureFlags": "",
|
||||
"APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL": "1",
|
||||
"mesonFlags": "",
|
||||
"PKG_CONFIG_PATH": "/usr/lib/pkgconfig",
|
||||
"PYTHONNOUSERSITE": "1",
|
||||
"ICEAUTHORITY": "/run/user/1000/iceauth_hLovTI",
|
||||
"LANGUAGE": "zh_CN:en_US",
|
||||
"shell": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"depsHostHost": "",
|
||||
"PYTHONHASHSEED": "0",
|
||||
"LC_ADDRESS": "zh_CN.UTF-8",
|
||||
"LC_NAME": "zh_CN.UTF-8",
|
||||
"SSH_AUTH_SOCK": "/run/user/1000/gnupg/S.gpg-agent.ssh",
|
||||
"DIRENV_DIR": "-/home/dodgerblue/Projects/daily_bot",
|
||||
"force_s3tc_enable": "true",
|
||||
"STRINGS": "strings",
|
||||
"depsTargetTarget": "",
|
||||
"XCURSOR_PATH": "~/.local/share/icons:~/.icons:/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/share/icons:/home/dodgerblue/.icons:/home/dodgerblue/.local/share/icons:/home/dodgerblue/.local/share/flatpak/exports/share/icons:/home/dodgerblue/.local/share/flatpak/exports/share/pixmaps:/var/lib/flatpak/exports/share/icons:/var/lib/flatpak/exports/share/pixmaps:/home/dodgerblue/.nix-profile/share/icons:/home/dodgerblue/.nix-profile/share/pixmaps:/nix/profile/share/icons:/nix/profile/share/pixmaps:/home/dodgerblue/.local/state/nix/profile/share/icons:/home/dodgerblue/.local/state/nix/profile/share/pixmaps:/etc/profiles/per-user/dodgerblue/share/icons:/etc/profiles/per-user/dodgerblue/share/pixmaps:/nix/var/nix/profiles/default/share/icons:/nix/var/nix/profiles/default/share/pixmaps:/run/current-system/sw/share/icons:/run/current-system/sw/share/pixmaps:/usr/share/icons:/usr/share/pixmaps:/usr/X11R6/lib/X11/icons",
|
||||
"MEMORY_PRESSURE_WRITE": "c29tZSAyMDAwMDAgMjAwMDAwMAA=",
|
||||
"ELECTRON_RUN_AS_NODE": "1",
|
||||
"stdenv": "/nix/store/zkiy4zv8wz3v95bj6fdmkqwql8x1vnhb-stdenv-linux",
|
||||
"LOCALE_ARCHIVE_2_27": "/nix/store/ld2j2mq254m77hwy22pyvrs861ap1374-glibc-locales-2.42-51/lib/locale/locale-archive",
|
||||
"PKG_CONFIG_PATH_FOR_TARGET": "/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib/pkgconfig:/nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev/lib/pkgconfig",
|
||||
"builder": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"XMODIFIERS": "@im=fcitx",
|
||||
"DESKTOP_SESSION": "plasma",
|
||||
"LC_MONETARY": "zh_CN.UTF-8",
|
||||
"GDK_PIXBUF_MODULE_FILE": "/nix/store/kn9lwgvdaa94nl9nsxx5p198gry21n03-librsvg-2.61.4/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache",
|
||||
"GTK_RC_FILES": "/etc/gtk/gtkrc:/home/dodgerblue/.gtkrc:/home/dodgerblue/.config/gtkrc",
|
||||
"shellHook": "",
|
||||
"NO_AT_BRIDGE": "1",
|
||||
"DIRENV_FILE": "/home/dodgerblue/Projects/daily_bot/.envrc",
|
||||
"EDITOR": "nano",
|
||||
"phases": "buildPhase",
|
||||
"GST_PLUGIN_SYSTEM_PATH_1_0": "/usr/lib/gstreamer-1.0:/usr/lib32/gstreamer-1.0",
|
||||
"XDG_SEAT": "seat0",
|
||||
"PWD": "/home/dodgerblue/Projects/daily_bot",
|
||||
"NIX_PROFILES": "/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/dodgerblue /home/dodgerblue/.local/state/nix/profile /nix/profile /home/dodgerblue/.nix-profile /var/lib/flatpak/exports /home/dodgerblue/.local/share/flatpak/exports",
|
||||
"SOURCE_DATE_EPOCH": "315532800",
|
||||
"XDG_SESSION_DESKTOP": "KDE",
|
||||
"LOGNAME": "dodgerblue",
|
||||
"XDG_SESSION_TYPE": "wayland",
|
||||
"NIX_ENFORCE_NO_NATIVE": "1",
|
||||
"CUPS_DATADIR": "/nix/store/xqv0dp6svd0p8h4vi3swnh357bslcja9-cups-progs/share/cups",
|
||||
"NIX_PATH": "/home/dodgerblue/.nix-defexpr/channels:nixpkgs=flake:nixpkgs:/nix/var/nix/profiles/per-user/root/channels",
|
||||
"COPILOT_OTEL_FILE_EXPORTER_PATH": "/dev/null",
|
||||
"VSCODE_ESM_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess",
|
||||
"SYSTEMD_EXEC_PID": "2472",
|
||||
"VSCODE_CODE_CACHE_PATH": "/home/dodgerblue/.config/Code/CachedData/cfbea10c5ffb233ea9177d34726e6056e89913dc",
|
||||
"NIXPKGS_CONFIG": "/etc/nix/nixpkgs-config.nix",
|
||||
"CXX": "g++",
|
||||
"XAUTHORITY": "/run/user/1000/xauth_lsPBPU",
|
||||
"TEMPDIR": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"system": "x86_64-linux",
|
||||
"_PYTHON_SYSCONFIGDATA_NAME": "_sysconfigdata__linux_x86_64-linux-gnu",
|
||||
"HOST_PATH": "/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin",
|
||||
"NIX_PKG_CONFIG_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu": "1",
|
||||
"XKB_DEFAULT_MODEL": "pc104",
|
||||
"GTK2_RC_FILES": "/etc/gtk-2.0/gtkrc:/home/dodgerblue/.gtkrc-2.0:/home/dodgerblue/.config/gtkrc-2.0",
|
||||
"IN_NIX_SHELL": "impure",
|
||||
"NIXPKGS_QT6_QML_IMPORT_PATH": "/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/lib/qt-6/qml:/nix/store/5r2xrchj6b67gqnhdqh1phk7kwsijkyn-qtvirtualkeyboard-6.10.2/lib/qt-6/qml:/nix/store/jhiwvnxpgppl1k1gjrnvmmax4gnf9gxv-prison-6.24.0/lib/qt-6/qml:/nix/store/7ns9a9kr8zrf3kww3h9b2ky7w1smndxa-plasma5support-6.6.3/lib/qt-6/qml:/nix/store/x6zc2kg8cs6b6pjghqqzmxswpvqwkiv2-networkmanager-qt-6.24.0/lib/qt-6/qml:/nix/store/flhayy18fz6gdwbqzl232dlrph6iqy15-plasma-nano-6.6.3/lib/qt-6/qml:/nix/store/v2bi6k9z5gg9vgr3sqx6arcakjqaq5a3-milou-6.6.3/lib/qt-6/qml:/nix/store/qzbks36fw20pyacpa5rbz00zw6z7brjw-libksysguard-6.6.3/lib/qt-6/qml:/nix/store/6j9i1w0qf0y7k6cppy4y79d6n1mw7740-kwin-6.6.3/lib/qt-6/qml:/nix/store/43qpcisygb1nwaixcnally14l7mpkh3l-kpipewire-6.6.3/lib/qt-6/qml:/nix/store/9l9z1c8g8k0djbjhf0nvfqz5fjaympx3-aurorae-6.6.3/lib/qt-6/qml:/nix/store/q689rsjnk3ww7zhl2dv7j0vmnwbknniq-kuserfeedback-6.24.0/lib/qt-6/qml:/nix/store/mlsnpqkq9fpyrg3n4a4zk90yqv39v3ja-libplasma-6.6.3/lib/qt-6/qml:/nix/store/sgg3b5kpk0x5p6l954yxyvkvlvfa3yak-layer-shell-qt-6.6.3/lib/qt-6/qml:/nix/store/saiqrr25ygh4anyyzwz9kln3y2n7nvjl-ksvg-6.24.0/lib/qt-6/qml:/nix/store/8rv62dmv1r241b2v48p4ii3i2ssd1kn0-kquickcharts-6.24.0/lib/qt-6/qml:/nix/store/lgrpsqplqigr4xj8gk0f8zhpmgqxv42z-knewstuff-6.24.0/lib/qt-6/qml:/nix/store/57702cizfwamglq28hq5yp2r74krxawy-kirigami-addons-1.12.0/lib/qt-6/qml:/nix/store/c49a97f13zr1jw1w5s97g0bdvzvjs880-kitemmodels-6.24.0/lib/qt-6/qml:/nix/store/qhsikrhvhhv39cm0lcwmgd5fimf58vkb-qtmultimedia-6.10.2/lib/qt-6/qml:/nix/store/4l2xap84w7nwhlpwv89b40izdclmd0dr-qtquick3d-6.10.2/lib/qt-6/qml:/nix/store/gbkv334019n1zmbk7kv37wcwd1f1rcrf-syntax-highlighting-6.24.0/lib/qt-6/qml:/nix/store/5hxkvxv2lsxikv4y00lq1rbhna7xvdjk-plasma-activities-6.6.3/lib/qt-6/qml:/nix/store/rqcpk1qm8by4sgayxgwgq9sp5rhjbay6-kholidays-6.24.0/lib/qt-6/qml:/nix/store/g500lp9fvaahrn92qg827fd14z5a4ygf-kdeclarative-6.24.0/lib/qt-6/qml:/nix/store/b1firifcqvfb1iz4a80pwv205ibrhsmp-kcmutils-6.24.0/lib/qt-6/qml:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/lib/qt-6/qml:/nix/store/qqwm9mi346k1qhmhg1aczbag3pxjzhyi-kwindowsystem-6.24.0/lib/qt-6/qml:/nix/store/1f04chj1xiiki4f0cxcnxdz2yrirs9s8-knotifications-6.24.0/lib/qt-6/qml:/nix/store/jsvghh31gnbicbllmpdczjldgkpwjd8r-kcoreaddons-6.24.0/lib/qt-6/qml:/nix/store/93q427ng0mgv3cqnz4917mm3z3bypdvz-qqc2-breeze-style-6.6.3/lib/qt-6/qml:/nix/store/7b77nr9q19z7hmp2450vh0gyaw3iliwg-qqc2-desktop-style-6.24.0/lib/qt-6/qml:/nix/store/iwk926y2chdpma406rinr0v90xd7da90-sonnet-6.24.0/lib/qt-6/qml:/nix/store/phhpshxc0kr3q5lq6hjl1awlc1j37izm-kirigami-6.24.0/lib/qt-6/qml:/nix/store/8l1df2l9cff1fz4a1lk182y5i5yf978a-qt5compat-6.10.2/lib/qt-6/qml:/nix/store/k1a3vfqcdd03pnzyi8z2xph3zjqdyh3d-kiconthemes-6.24.0/lib/qt-6/qml:/nix/store/0q17g0kkjbbfln6xc2zhyxnw1n0skql9-ki18n-6.24.0/lib/qt-6/qml:/nix/store/pzdik7vhhvdfqkn4z8g0f8c1cbpfq57j-kguiaddons-6.24.0/lib/qt-6/qml:/nix/store/fjxpsqca273h1y9dlrh5slip6saawlhy-kconfig-6.24.0/lib/qt-6/qml:/nix/store/kghj07qxpr2qgz47rqms4l4d2jcc5qd1-qtwayland-6.10.2/lib/qt-6/qml:/nix/store/hkfzj635mv35khsxpfc5vjfls3inymij-qtlocation-6.10.2/lib/qt-6/qml:/nix/store/5mr8c8v827j1sbbygabfhnl4qb7cdbg3-qtpositioning-6.10.2/lib/qt-6/qml:/nix/store/knzapvajf9qbx2qagx9zy9xl1nq204mi-qtdeclarative-6.10.2/lib/qt-6/qml:NIX_PROFILES=/run/current-system/sw /nix/var/nix/profiles/default /etc/profiles/per-user/dodgerblue /home/dodgerblue/.local/state/nix/profile /nix/profile /home/dodgerblue/.nix-profile /var/lib/flatpak/exports /home/dodgerblue/.local/share/flatpak/exports",
|
||||
"doInstallCheck": "",
|
||||
"HOME": "/home/dodgerblue",
|
||||
"NIX_BINTOOLS": "/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44",
|
||||
"LC_PAPER": "zh_CN.UTF-8",
|
||||
"LANG": "en_US.UTF-8",
|
||||
"_JAVA_AWT_WM_NONREPARENTING": "1",
|
||||
"XDG_CURRENT_DESKTOP": "KDE",
|
||||
"depsTargetTargetPropagated": "",
|
||||
"VSCODE_DOTNET_INSTALL_TOOL_ORIGINAL_HOME": "/home/dodgerblue",
|
||||
"VSCODE_IPC_HOOK": "/run/user/1000/vscode-0e7aa50c-1.11-main.sock",
|
||||
"MEMORY_PRESSURE_WATCH": "/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/plasma-plasmashell.service/memory.pressure",
|
||||
"WAYLAND_DISPLAY": "wayland-0",
|
||||
"cmakeFlags": "",
|
||||
"STARSHIP_CONFIG": "/home/dodgerblue/.config/starship.toml",
|
||||
"outputs": "out",
|
||||
"GIO_EXTRA_MODULES": "/nix/store/y8dqwhsf4bvggqawlv7zia65lbr8rp51-dconf-0.49.0-lib/lib/gio/modules",
|
||||
"VSCODE_CLI": "1",
|
||||
"NIX_STORE": "/nix/store",
|
||||
"TMPDIR": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"XDG_SEAT_PATH": "/org/freedesktop/DisplayManager/Seat0",
|
||||
"LIBVA_MESSAGING_LEVEL": "1",
|
||||
"VSCODE_L10N_BUNDLE_LOCATION": "file:///home/dodgerblue/.vscode/extensions/ms-ceintl.vscode-language-pack-zh-hans-1.110.2026040813/translations/extensions/vscode.json-language-features.i18n.json",
|
||||
"LD": "ld",
|
||||
"INVOCATION_ID": "38396e5520074588ad8a2bec6103777d",
|
||||
"buildPhase": "{ echo \"------------------------------------------------------------\";",
|
||||
"RUST_SRC_PATH": "/nix/store/xqnf1bdi96i044mgfqvw9kll3554nbr9-rust-lib-src",
|
||||
"MANAGERPID": "2088",
|
||||
"DIRENV_DIFF": "eJzsvGtv3LjyJ_xVjH6ed_-oQ4q65o994cSeic_JODm2MzcMYFCkeBEvoki1bgfnuy_Utid27M4kJ2exu1gPMO5uivVjsYqsKopV-efGbV79c3N-9uv1mx_eHf94ef3m_U8fzt6dbl5tIkmlx6yv_dHLXfAvpSV6R-vNi333dyf7_mu_d_vHWlZHn76iePNi8-H46u3m1ealldPL0Le-fimwQgBBWVTODLRjGhdpl3Wo4mPnXAUirmUVxdsi26KokvZlJe2r-_SZoBVXTKSldXklc1F0OM9cF-dyWgofcbvjvnYR2sL4c-I8CdJSSLOBxRUbaT4rzQsiwrB0kzFdRFpf73qpQ1RuIbgh9zv7cvTYudqHm5Z1hn9-CQc6idbUL2lLee0rvatfbnVLsH4ZBPb1S6Zx77B6WU-u9f0txYD3gnv64SM4K6fI-ZZJXX-a5oOGQxz0uK8f9657ctcQXrraR7tQ-_vkfw6y8nmPPLykNcM73X8SF9l5X9s-CnPoa_MyjOujzYvNryc_Xp8cXx1fn5xdXD5cFxPJ5xTNUOM0rgxafDziqQvzLO2IDJPREEhL6whuIURbcCPH-7qdAiMpIzOMrSE00NEgOsGJMSbyaUAg4qHue2l5iGgdVN-6KBBRGxyipNzCW8V86nT78OWXye5zMOt01qhMZTcVhaLQ5HrKXV5lqQUNm8qI9-q_UIS2cbJNvzDg_V738UflE1TSRokchypMkBaoAxqpmIuyaKbIaRwMjsbWq-AwqaNsm23RY1EpbOmkUVEOIiSzymNO5nkSxUCCLXCWRmJng6u1juA238aPAXIbSlwqXyyeITWOSJRVrOZ8hMFYOuFbTtKwc-sSPsSHYE0lnE3Z6GdvBqh0RZqsQVMDISVTHNm6XydjsMW89hHcptlTqieyiWnXjFVR6WGp0rnifITFlPnMTGx2q03odYjQtliNwiP6ALI8VCpePIgRIHAo6VjZghSDS6esjCO1s7InrR1qH2Rro2xVzhOMMC3wPMOCLRmnY9UtOkYx1d6JTHYzTO80ZLFtDwkFdKyC1FmBKgQJyhuJUupm3SQyZaLMIida29oo2cL4KR6GuJKZKpeU83LgHoVuyrAnWDUd7lKMIiN1uzs0erdUKqCMjTFwMyYOp75aAFjGbMkr34yRlpUKc-A77OkhkKwpJRxBx8Ccq4w4NydzXtLMQjPmeQIiNUp7iDhBnSMyzLyCdsRyIhZrPcNE58YpgXSknHT1KP3B5U1nWgJdacqTcUqSJWDBLZRdI2ypOqujytf1cpDcpV2FZVU1EDQ4QxnINZ-SAjGfDfkQxxHz2NTrupS2r7nH_ZeWBJYsDJlgOmSmK-jkbAWaDqCBcBY6h6N2mnltI0laG6JsC58CKXW5QFLwQgHaVI1gwA6sW1LW4Nm4CUV451uPD0-JuFFbrlwDJshyW0wF82Ws2diU8dx1kaI1af-cydMrIytKHxqr0Djmi9AxHfIGDMaOlbJWdpFaHQara1phog7KIzG2M6WaAKGlHFKvQVyZohsmmBXZXKhI9fXU11T2rT8IksW84AMbOwkaxWIoK82Iz-hCnHQkXSK1OrldsG0vmay97GtzECz4Di1xFsvYQkshjks1ekaGDjlPkA6RCsTXtdUtUbU_JB6jg3Wd6krmZs-RTXCyqBLM3YDKATV43Ti3u_8AQpUWInYESgdYZsuAJzmrvPMLL0M-6uVm6-1ZOQThFx3KUOCkqHJQkFDKtPJNVvgcsHROx0g57PtwUBRLoGDJ2ODHSTQ6zVAu0gk1YkINTHITIrWX6ExayyQ_CKO5d6FzupPcJ1NTcAVYsQhneDcNSbxEytZj6HeMHdYwnYiMG1ouuVhYjMA8KDdZgzOaTNLSdSZEYV4fREjzHMRELmzEhusuLkSXzi72eaL8hMc5UtJLjo2MMKXr3oMHDKqXFUCAyZA1OcKLTcqkxBmwGV9AEgce8dBHTu-4tCHibUsjuI2zbfqEeGeBhlnHqmjKCY7VCOJFQa5dSlNZZugBUoVDfRBpSLsZorIU2ltVLJkReuFps4DCj0iD5jOkwyyFYoSJ4k0KZDfCETR0tGWABqjE6YWHFcjX2Oy979MQmQF6Tvk8AbhkhR6Bz03FswEMY4NygSIl26ieeo9DFKerkJ9YubxSA0IJgKWFi6lUrgaUj2SkkEFPPIvCbHs8RUJyoSUXa8h0UPUSLsBWqqvw7PyAFgeaJCwhTUjFinkJkaI2BHqQ3nfEKdiZopqTwPE88ZF3ZXCpF02F5yxSotWS4vnwTuIpANqVbMBYeFvGHS_inFGYLClOZs72Flfj1eQOh9dwBZn0kpFuYBWUS4IL4MYhBqmsvAjGRYqYm-PKQXPrwYS7VOYzG0vEC4zKvEjAyGyeTUA1kcKkl4Ps59sg66BTt7mVsYxHbfxCl3myzhYAxZQXVrBmQpGajOY7eZAVwdfgOHMVKhlvumZGQgSuiBtDkhZpfmP5R0l5_QUThQbswGjlIukydJrn-Rh3nCFjTZci7yLFdVthjQmp9WH1ULgoiNxC7OhhgHms0nnw3MYEojJZBbs3cX_FDazUCCYtmTIZ5WOes8kMefBJhynyYBXvrheHDWWjlk67BHCMUDphNkOBRp8EkM_KljCqsG7bw-FmcGBgYGgMRCjxipJ5CAYx5aYhA7nY77zDxKUvLbUdzw0wJsFcMykzMiuxgCKuorCu8cN7bMxmOsRZjFwXZk7gnDqiQkj0WDYNbSI1Yq3r_iBA142mNBIlmYKdMIJDTJYKc-SmZhGz3AeJtB1vzpAHYQCXqGCZsHrRNrehKcU0x2kGu8HibO-9az9IcniTYZJmnQ9Gps1SjVxjgDCjqOi8JADwIVJNW_3lQmAgIaKBk5RKJgyQidiJLvHspV9d8q3nlGQfYx3GMc2sx0rNQ1KhxowBk5hjk8UFonEIXRqpNZYZZD1-AUOWJsfWgCmFNq6GVC90oJn0c5wGZXykaEv6tv2C2RjnZeGiGcd4tGIcgedD2gHaAMkW7hxc94dxuv5i6GsHOS6QphPIWMKcyUoeK1qwISuEKcESqaptlcFeHWYEZLBEU8Kt4L4SLGcCjqyJO5eFkEAYR4pJXZu6xxT3-LB6OM6L2GiQDzMQKUCYJERaIAqad9ks1thKUhtH8RZti8f0RbPYEYckjVPhJE6XeJpSYfJu7JAtOxspWu3CbSBxiIkmDFwIBLmtJKm0No6SpdGUKzc2tPCrUH39FyDFIM2cxo7LuYJZQkSs4mTocD5VPs0gibBzNy476vo1pnnq_G4tjMtmDIvthlwVRTFWIDXpKNxsaedZ9OcRC26zpwDUYrtQusKmVJacWD2PGQJZoWKUIZzsj4kd1mSncV9H6RaCp-aSV3lufdnBNcozLk5SMAjAZzwiqeXIo64j8afXLv2sD-9iOaoyzuaYCOoMTkDmpfVgKMFEc4pLEIXW2i-YIyeEC2IiQHnUpbrLRKMhHjWBDcrlYj6Fi4cQFMRoYB2hFCBnl1kWSzw5gZamo7NANFLrGa8XtakPqzegYlkgHqwi46y7KivJWLmqqBaVA6vpahX3lugvlgln1mhNnZ0xyABnHmcFzoHFUCVLbpZIYU_El2IPmlpEhkpaj3yOGkU7HzJWNoVAgXuw3J2i7w6uT6MMXUolNEimQKSdjMVcyuCTImu8LuAwr2tet37_7uswL6CDOQdKNVXFtM0mEi9inuwILQiq02WkJCy-8FqmmVzoCI5zJOBcUu1FGrR0WcB41GK-8_aHLZlO0SiBQROZQyPo2CRO64TECRS-cHQFoDU5LAaCSwc0yqZ8Gcs8ibEqhjkHTphgObQhIjsXonibbGH2hKtUkILJSuzpTH3plbBWDktMiFnsGHf3qded94SPK3RnM8JHh6sMEZhMjCHSuWJhfrA4iVhr-1shxFuYb-HTOALMeOyoLjoBqy7zZqzGjhjUMajjUspojUYjLe1uWvmBW_Q0jlQFzisU226Iu9QlvMiEcVnaKG28Q_z2zTGN4rR88hVPkSVe8yJNFYuFtZbRhUxpwr0rLATT_VuEJ3YqIxLy1QhKl05zUsYGCAqBMHyefDZFvO7XWDQC2_gJdZRyyacxnpOxwGKg1NqJTFXQGUGdIAjcWaxwR_pNVwG3NIcuAw5B3r8OuMfxZ01ffSVw2_8vLwXuDXXwWuC2z9MXA_cetq62XEfUy6H2Bx9E6E9_tL9p-iTK2_uY9evmXy82dvPqn5vji82rDfabF5vjy_Vb2LzYvHmzebXhhKxf35__cPbj9eXb03fvHt5HxKIJRKQlNk1AtuIix4KwxcQVG3WxyPV8LqJ0i1z5cn9NhYNYAX_9dQX_r__avNicnF6dXvx0dn52eXX25vr1x7N3J5tXG7g-Obs4Pf_5-uRs5S56pJUPvm1q0oeXFEs9X1dt_4nmh5urua-gebmt7eDJJ9Jfjq_evD1dxVD_bVbg5x-6ZDn-xzT8mGcn-rRQvPnlyv4wyOt3P3U__X4eJx-7Urw3-nVWLlks_v7bad3--AEV7DpP-7T99eeBhmoXwx_787f20tT93_Lfo_TDL_3vP8wBwF1_XXUDzexlLUvz22_pOfzwd_87vbTph6YBiFTt7z8vv0z18kuErwZzPZzEZfv3n6sh4J9_80m2XMU__73P6ccfcwf_ManstX798fefcP2P7h_i8t1bOL6-OvulOcuaS_0P8fpU0TfHxyfp64vh9zdvYfbuw7X9OIGd9van3447OYU3JFLw4-_k48h2cggh2hF-0r5rzsAluRD8RJ0Ov5xcBO5Y8kt6VZTHlKmL8jQ-aenfXvflebK7AhUP4fe3TZnTfBcTK9uiij4cHx8fX1-Xp7ga_rZ5sXn7_vLq-vHVpyszhsdilKOEgMxlInwS88VI7AaYMhMR7HkbwW2JtuDzq0sfZhgXsW4Q5clIWUoBmIclZ5lolknayO9CT6LbO8gDIHOVxczkI0NLine truncated
|
||||
"READELF": "readelf",
|
||||
"CHROME_DESKTOP": "code.desktop",
|
||||
"KDE_SESSION_UID": "1000",
|
||||
"EGL_PLATFORM": "wayland",
|
||||
"NIX_USER_PROFILE_DIR": "/nix/var/nix/profiles/per-user/dodgerblue",
|
||||
"INFOPATH": "/home/dodgerblue/.local/share/flatpak/exports/info:/home/dodgerblue/.local/share/flatpak/exports/share/info:/var/lib/flatpak/exports/info:/var/lib/flatpak/exports/share/info:/home/dodgerblue/.nix-profile/info:/home/dodgerblue/.nix-profile/share/info:/nix/profile/info:/nix/profile/share/info:/home/dodgerblue/.local/state/nix/profile/info:/home/dodgerblue/.local/state/nix/profile/share/info:/etc/profiles/per-user/dodgerblue/info:/etc/profiles/per-user/dodgerblue/share/info:/nix/var/nix/profiles/default/info:/nix/var/nix/profiles/default/share/info:/run/current-system/sw/info:/run/current-system/sw/share/info",
|
||||
"doCheck": "",
|
||||
"XKB_DEFAULT_LAYOUT": "us",
|
||||
"depsBuildBuild": "",
|
||||
"XDG_SESSION_CLASS": "user",
|
||||
"PYTHONPATH": "/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/lib/python3.13/site-packages:/nix/store/qpk88ppk49gbdgzhqr8chm3fhb2a2bdn-python3.13-cfgv-3.5.0/lib/python3.13/site-packages:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib/python3.13/site-packages:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/lib/python3.13/site-packages:/nix/store/w7hyxgvvq38bdx5jv9rq9gpk1zynzd8b-python3.13-cffi-2.0.0/lib/python3.13/site-packages:/nix/store/kd0yrsmrslihfp66y2k88cyan1vjydl8-python3.13-pycparser-3.00/lib/python3.13/site-packages:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/lib/python3.13/site-packages:/nix/store/qq12ssc5a12zpyjf5hgv3hpvhbqawby2-python3.13-iniconfig-2.3.0/lib/python3.13/site-packages:/nix/store/cc9qkj968x46wz4ycp5i2gg988b8c4g0-python3.13-packaging-25.0/lib/python3.13/site-packages:/nix/store/qm4cngcbz2dx863cjabdfhibg93p9hw0-python3.13-pluggy-1.6.0/lib/python3.13/site-packages:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/lib/python3.13/site-packages:/nix/store/770zwl4ighcvb166mlvdzwjzpmnawd7m-python3.13-ukkonen-1.1.0/lib/python3.13/site-packages:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/lib/python3.13/site-packages:/nix/store/imindlm08wk8n5d0yhmm0ap3gcymqxdk-python3.13-pyyaml-6.0.3/lib/python3.13/site-packages:/nix/store/c6gikc2mm148nbb1p776nj3i32asm1nk-python3.13-toml-0.10.2/lib/python3.13/site-packages:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/lib/python3.13/site-packages:/nix/store/n3vrp2rmg7q7j977y6jiwkdcyvfzx6x5-python3.13-distlib-0.4.0/lib/python3.13/site-packages:/nix/store/wl0wp0f4cymd4bsnc2yfhasvz1cbaw0i-python3.13-filelock-3.20.3/lib/python3.13/site-packages:/nix/store/j2cwkkf3p5719cikm3l4w03swr2cvj1s-python3.13-platformdirs-4.5.1/lib/python3.13/site-packages",
|
||||
"COPILOT_OTEL_ENABLED": "true",
|
||||
"LC_IDENTIFICATION": "zh_CN.UTF-8",
|
||||
"GTK_PATH": "/home/dodgerblue/.local/share/flatpak/exports/lib/gtk-2.0:/home/dodgerblue/.local/share/flatpak/exports/lib/gtk-3.0:/home/dodgerblue/.local/share/flatpak/exports/lib/gtk-4.0:/var/lib/flatpak/exports/lib/gtk-2.0:/var/lib/flatpak/exports/lib/gtk-3.0:/var/lib/flatpak/exports/lib/gtk-4.0:/home/dodgerblue/.nix-profile/lib/gtk-2.0:/home/dodgerblue/.nix-profile/lib/gtk-3.0:/home/dodgerblue/.nix-profile/lib/gtk-4.0:/nix/profile/lib/gtk-2.0:/nix/profile/lib/gtk-3.0:/nix/profile/lib/gtk-4.0:/home/dodgerblue/.local/state/nix/profile/lib/gtk-2.0:/home/dodgerblue/.local/state/nix/profile/lib/gtk-3.0:/home/dodgerblue/.local/state/nix/profile/lib/gtk-4.0:/etc/profiles/per-user/dodgerblue/lib/gtk-2.0:/etc/profiles/per-user/dodgerblue/lib/gtk-3.0:/etc/profiles/per-user/dodgerblue/lib/gtk-4.0:/nix/var/nix/profiles/default/lib/gtk-2.0:/nix/var/nix/profiles/default/lib/gtk-3.0:/nix/var/nix/profiles/default/lib/gtk-4.0:/run/current-system/sw/lib/gtk-2.0:/run/current-system/sw/lib/gtk-3.0:/run/current-system/sw/lib/gtk-4.0",
|
||||
"SIZE": "size",
|
||||
"propagatedNativeBuildInputs": "",
|
||||
"ACLOCAL_PATH": "/usr/share/aclocal",
|
||||
"strictDeps": "",
|
||||
"USER": "dodgerblue",
|
||||
"TZDIR": "/etc/zoneinfo",
|
||||
"QT_WAYLAND_RECONNECT": "1",
|
||||
"AR": "ar",
|
||||
"KDE_SESSION_VERSION": "6",
|
||||
"AS": "as",
|
||||
"PAM_KWALLET5_LOGIN": "/run/user/1000/kwallet5.socket",
|
||||
"TEMP": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu": "1",
|
||||
"DISPLAY": ":0",
|
||||
"NIX_CFLAGS_LINK": "-L/usr/lib -L/usr/lib32",
|
||||
"VSCODE_PID": "4578",
|
||||
"SHLVL": "1",
|
||||
"NIX_BUILD_TOP": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"NM": "nm",
|
||||
"__HM_ZSH_SESS_VARS_SOURCED": "1",
|
||||
"PAGER": "less",
|
||||
"NIX_CFLAGS_COMPILE": " -frandom-seed=v6n6l504w5 -isystem /nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/include -isystem /nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev/include -isystem /nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/include -isystem /nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev/include",
|
||||
"LC_TELEPHONE": "zh_CN.UTF-8",
|
||||
"QTWEBKIT_PLUGIN_PATH": "/home/dodgerblue/.local/share/flatpak/exports/lib/mozilla/plugins/:/var/lib/flatpak/exports/lib/mozilla/plugins/:/home/dodgerblue/.nix-profile/lib/mozilla/plugins/:/nix/profile/lib/mozilla/plugins/:/home/dodgerblue/.local/state/nix/profile/lib/mozilla/plugins/:/etc/profiles/per-user/dodgerblue/lib/mozilla/plugins/:/nix/var/nix/profiles/default/lib/mozilla/plugins/:/run/current-system/sw/lib/mozilla/plugins/",
|
||||
"patches": "",
|
||||
"QT_IM_MODULE": "fcitx",
|
||||
"APPLICATIONINSIGHTS_CONFIGURATION_CONTENT": "{}",
|
||||
"LC_MEASUREMENT": "zh_CN.UTF-8",
|
||||
"__NIXOS_SET_ENVIRONMENT_DONE": "1",
|
||||
"VSCODE_CWD": "/home/dodgerblue",
|
||||
"XDG_VTNR": "2",
|
||||
"buildInputs": "/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0 /nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0 /nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0 /nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1 /nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0 /nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2 /nix/store/5j4mx4vckmmms2spy8x8kqjxcb12kpf5-sqlite-3.51.2-dev",
|
||||
"XDG_SESSION_ID": "2",
|
||||
"preferLocalBuild": "1",
|
||||
"LOCALE_ARCHIVE": "/run/current-system/sw/lib/locale/locale-archive",
|
||||
"MANAGERPIDFDID": "2089",
|
||||
"LESSKEYIN_SYSTEM": "/nix/store/ndjvymnavjb3xy2h54aci8cd2nmir587-lessconfig",
|
||||
"QML2_IMPORT_PATH": "/nix/store/pcrvv69n92w1gmrxwq0b0pz9whgl4g27-qtwebsockets-6.10.2/lib/qt-6/qml:/nix/store/7vav07adnypkhi7c4fflshakhq76y8kq-qtwebchannel-6.10.2/lib/qt-6/qml:/nix/store/g2dbzw07mbgsnf37qjaizffl5bayjm4g-qtwebengine-6.10.2/lib/qt-6/qml:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-5.15.18/qml:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-6/qml:/var/lib/flatpak/exports/lib/qt-5.15.18/qml:/var/lib/flatpak/exports/lib/qt-6/qml:/home/dodgerblue/.nix-profile/lib/qt-5.15.18/qml:/home/dodgerblue/.nix-profile/lib/qt-6/qml:/nix/profile/lib/qt-5.15.18/qml:/nix/profile/lib/qt-6/qml:/home/dodgerblue/.local/state/nix/profile/lib/qt-5.15.18/qml:/home/dodgerblue/.local/state/nix/profile/lib/qt-6/qml:/etc/profiles/per-user/dodgerblue/lib/qt-5.15.18/qml:/etc/profiles/per-user/dodgerblue/lib/qt-6/qml:/nix/var/nix/profiles/default/lib/qt-5.15.18/qml:/nix/var/nix/profiles/default/lib/qt-6/qml:/run/current-system/sw/lib/qt-5.15.18/qml:/run/current-system/sw/lib/qt-6/qml",
|
||||
"TERMINFO_DIRS": "/home/dodgerblue/.local/share/flatpak/exports/share/terminfo:/var/lib/flatpak/exports/share/terminfo:/home/dodgerblue/.nix-profile/share/terminfo:/nix/profile/share/terminfo:/home/dodgerblue/.local/state/nix/profile/share/terminfo:/etc/profiles/per-user/dodgerblue/share/terminfo:/nix/var/nix/profiles/default/share/terminfo:/run/current-system/sw/share/terminfo",
|
||||
"FC_FONTATIONS": "1",
|
||||
"LD_LIBRARY_PATH": "/nix/store/pcjb2l7xad0c9j25g4h9xd9pirchvl2m-libdbusmenu-glib-16.04.0/lib",
|
||||
"VSCODE_CRASH_REPORTER_PROCESS_TYPE": "extensionHost",
|
||||
"XDG_RUNTIME_DIR": "/run/user/1000",
|
||||
"depsBuildTarget": "",
|
||||
"OBJCOPY": "objcopy",
|
||||
"DETERMINISTIC_BUILD": "1",
|
||||
"NIX_XDG_DESKTOP_PORTAL_DIR": "/run/current-system/sw/share/xdg-desktop-portal/portals",
|
||||
"OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT": "true",
|
||||
"out": "/home/dodgerblue/Projects/daily_bot/outputs/out",
|
||||
"ELECTRON_NO_ATTACH_CONSOLE": "1",
|
||||
"STRIP": "strip",
|
||||
"JOURNAL_STREAM": "9:24681",
|
||||
"XDG_DATA_DIRS": "/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/share:/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/share:/nix/store/xc7y53y1la52bm3zr2waxqsyyinw3mfi-vscode-1.113.0/share:/nix/store/xsfc5fcy12nmcdsdwm3dx1xfffh7xv30-gsettings-desktop-schemas-49.1/share/gsettings-schemas/gsettings-desktop-schemas-49.1:/nix/store/yl5yl395iqx88kd1m7lx7p7b65n0jfx9-gtk+3-3.24.51/share/gsettings-schemas/gtk+3-3.24.51:/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/share:/nix/store/kandxl389vhs4yk72gcyyxh8vcsn8a65-hunspell-1.7.2/share:/nix/store/7ns9a9kr8zrf3kww3h9b2ky7w1smndxa-plasma5support-6.6.3/share:/nix/store/hfjbhpn5fwryrmv1klbcj6j3xj11dcx2-networkmanager-1.56.0/share:/nix/store/cij2dqjwb8blvzb5ybggw18x6r6mxfyp-gnutls-3.8.12/share:/nix/store/s067sbk2zr0230c1v9dwbn8c8vp5x692-kunitconversion-6.24.0/share:/nix/store/flhayy18fz6gdwbqzl232dlrph6iqy15-plasma-nano-6.6.3/share:/nix/store/0qfb1dpnh3b31c37ji35dpylj4i5fh96-phonon-4.12.0/share:/nix/store/v2bi6k9z5gg9vgr3sqx6arcakjqaq5a3-milou-6.6.3/share:/nix/store/qzbks36fw20pyacpa5rbz00zw6z7brjw-libksysguard-6.6.3/share:/nix/store/6j9i1w0qf0y7k6cppy4y79d6n1mw7740-kwin-6.6.3/share:/nix/store/43qpcisygb1nwaixcnally14l7mpkh3l-kpipewire-6.6.3/share:/nix/store/dyd90lbldg4wx44zsahgn1iqjhn9kqnl-breeze-6.6.3/share:/nix/store/p5qbaibbj10ja63607lgx483fr6v7v22-frameworkintegration-6.24.0/share:/nix/store/aifsv6hfls6mq8dxpnb0jq03vcgfsqpa-oxygen-icons-6.1.0/share:/nix/store/9l9z1c8g8k0djbjhf0nvfqz5fjaympx3-aurorae-6.6.3/share:/nix/store/pcpwlngkpj0x1f7n8x8fr92lfwj92yqq-kdecoration-6.6.3/share:/nix/store/q689rsjnk3ww7zhl2dv7j0vmnwbknniq-kuserfeedback-6.24.0/share:/nix/store/4mnqm9kx0cd9iv5rl02bm8qvx1686y8k-ktexteditor-6.24.0/share:/nix/store/62g8gvfwqi0jkf21iblfcr6dzcpipc5z-kstatusnotifieritem-6.24.0/share:/nix/store/srq3z262i2n1nd1a29kwrfcvq3prc3ls-kscreenlocker-6.6.3/share:/nix/store/mlsnpqkq9fpyrg3n4a4zk90yqv39v3ja-libplasma-6.6.3/share:/nix/store/b58h2pc1ip0f6n9saxiyk7qrzg9s7wlz-libkscreen-6.6.3/share:/nix/store/rzls9s8a48b708cs9i5brj68r70f5y5w-kparts-6.24.0/share:/nix/store/zsd0z6fvrwxhjl5637h5x3jhx3j147ms-knotifyconfig-6.24.0/share:/nix/store/lgrpsqplqigr4xj8gk0f8zhpmgqxv42z-knewstuff-6.24.0/share:/nix/store/6dxci2jd9z7hzf230yvkpxnma6d4xind-kpackage-6.24.0/share:/nix/store/57702cizfwamglq28hq5yp2r74krxawy-kirigami-addons-1.12.0/share:/nix/store/rib030fis6j73azn4949a60n6gz042sg-gst-plugins-good-1.26.5/share:/nix/store/zyh3vyl2k8j9x1wbw02zk1glp5d5i963-gst-plugins-base-1.26.5/share:/nix/store/v5qy1399hlrnk8z6mhlzg5jz08rw3l0j-gst-plugins-bad-1.26.5/share:/nix/store/s8w14kgj50iqw1w0jdwn9s1m0k4plzgs-gstreamer-1.26.5/share:/nix/store/6m0ly5gyx01z68lw0r7mbg6v0vwj37h3-kio-extras-25.12.3/share:/nix/store/gbkv334019n1zmbk7kv37wcwd1f1rcrf-syntax-highlighting-6.24.0/share:/nix/store/i1z0nbkqbayprv3zp0j4szs54cbf8yzs-kdnssd-6.24.0/share:/nix/store/rqcpk1qm8by4sgayxgwgq9sp5rhjbay6-kholidays-6.24.0/share:/nix/store/g500lp9fvaahrn92qg827fd14z5a4ygf-kdeclarative-6.24.0/share:/nix/store/b1firifcqvfb1iz4a80pwv205ibrhsmp-kcmutils-6.24.0/share:/nix/store/4r0xaq5i7yfw93g8a397840wfn76x0kj-kactivitymanagerd-6.6.3/share:/nix/store/n7ni2i2wlmrzdzyxnpn8032dg8nhfjx3-kxmlgui-6.24.0/share:/nix/store/hgl3956pb39fgjqjy3hhsgkcpws45857-ktextwidgets-6.24.0/share:/nix/store/3vap0wnizidzvqlg77w2qgf3mnmq53rp-kglobalaccel-6.24.0/share:/nix/store/gd1zk13pzcnwr1s172k5yvrgn2c1394p-kconfigwidgets-6.24.0/share:/nix/store/1bkw0xlifkm6dgw77fxmv7sr4qad3r0j-kauth-6.24.0/share:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/share:/nix/store/fsp0vf0vjm1334rkdcyvsm3fkpxv607h-kio-6.24.0/share:/nix/store/fs9r9ndnqg7m0mm4aglfii6cykhz082b-solid-6.24.0/share:/nix/store/iw6ydv2623pqsygc1y5pckss4lw9jjdj-kwallet-6.24.0/share:/nix/store/qqwm9mi346k1qhmhg1aczbag3pxjzhyi-kwindowsystem-6.24.0/share:/nix/store/0gi38f6hnlzln7nsj9hxy2561qvna6ls-kservice-6.24.0/share:/nix/store/ac56qrsmi5jzbwgla03afd38qric00gv-kjobwidgets-6.24.0/share:/nix/store/1f04chj1xiiki4f0cxcnxdz2yrirs9s8-knotifications-6.24.0/share:/nix/store/mjylwbkyv4b3jmwsac2gam6283d2ssq5-kitemviews-6.24.0/share:/nix/store/mi9m7anm0x51n2bv5lzdvd6iry25skmr-kdoctools-6.24.0/share:/nix/store/wyzzghjww2wnhww0rgv5q0dj0ifzgpp1-kcompletion-6.24.0/share:/nix/store/nviwz1d5x06f4fpm69g2kd8fv68hm90z-kbookmarks-6.24.0/share:/nix/store/06193x4gnhgrbhf7fh1wfj2qp6ss4112-kfilemetadata-6.24.0/share:/nix/store/1ga782ml07vy0h503ac4cin0h8d7q6yh-libidn2-2.3.8/share:/nix/store/8jznwas4525hpia5z2xx5hm7qwq3n9qn-kdbusaddons-6.24.0/share:/nix/store/jsvghh31gnbicbllmpdczjldgkpwjd8r-kcoreaddons-6.24.0/share:/nix/store/8vimy52pgiyb164ch2k24vqa7xbr561c-appstream-qt-1.1.2/share:/nix/store/nn129jwsznqv7k888wb05m5whpyndqrf-pipewire-1.6.2/share:/nix/store/kznqs9p8n5di9gcnlyw63068k2363a4w-libqalculate-5.10.0/share:/nix/store/7b77nr9q19z7hmp2450vh0gyaw3iliwg-qqc2-desktop-style-6.24.0/share:/nix/store/iwk926y2chdpma406rinr0v90xd7da90-sonnet-6.24.0/share:/nix/store/phhpshxc0kr3q5lq6hjl1awlc1j37izm-kirigami-6.24.0/share:/nix/store/k1a3vfqcdd03pnzyi8z2xph3zjqdLine truncated
|
||||
"KDE_FULL_SESSION": "true",
|
||||
"GDK_BACKEND": "wayland",
|
||||
"LIBEXEC_PATH": "/home/dodgerblue/.local/share/flatpak/exports/libexec:/var/lib/flatpak/exports/libexec:/home/dodgerblue/.nix-profile/libexec:/nix/profile/libexec:/home/dodgerblue/.local/state/nix/profile/libexec:/etc/profiles/per-user/dodgerblue/libexec:/nix/var/nix/profiles/default/libexec:/run/current-system/sw/libexec",
|
||||
"TMP": "/tmp/nix-shell.5SiaRe/nix-shell.8CopDZ",
|
||||
"OBJDUMP": "objdump",
|
||||
"PATH": "/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/bin:/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/bin:/nix/store/sca0pf46jmxva40qahkcwys5c1lvk6n2-gcc-15.2.0/bin:/nix/store/2c48s343k15i0cmwb9cp1vi6randmzcw-glibc-2.42-51-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44/bin:/nix/store/9nmzd62x45ayp4vmswvn6z45h6bzrsla-binutils-2.44/bin:/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin:/nix/store/590yx3aynyhs48jyk8ip37fk1mjqfhkb-patchelf-0.15.2/bin:/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0/bin:/nix/store/sca0pf46jmxva40qahkcwys5c1lvk6n2-gcc-15.2.0/bin:/nix/store/2c48s343k15i0cmwb9cp1vi6randmzcw-glibc-2.42-51-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/4yi6jj75bb5hhdzpzlxfyf69d35wsf2x-binutils-wrapper-2.44/bin:/nix/store/9nmzd62x45ayp4vmswvn6z45h6bzrsla-binutils-2.44/bin:/nix/store/p96faw8wiwi10cy94hr42gzmiapv15fm-cargo-1.93.0/bin:/nix/store/rsy1282lj3dg4wdf5d00yvz7f6hjzxin-rustc-wrapper-1.93.0/bin:/nix/store/yb62fm7wf3ysn5rnfj2r03snmk9pwwa2-rustfmt-1.93.0/bin:/nix/store/zwamcvd0ddn6f3b37kd6n04g68s4i5l6-pre-commit-4.5.1/bin:/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin:/nix/store/qhwhnj56gsfg30g0v1hh3qhxpnzwmx73-python3.13-identify-2.6.17/bin:/nix/store/lkl47vib5c59aimgz9f8ryqnpl8i8bqb-python3.13-pytest-9.0.2/bin:/nix/store/xi7zkfs5dm3s7spplqzyxcg0ih7375dc-python3.13-pygments-2.19.2/bin:/nix/store/bwqsixv38h6jcm96965mmahp5hvi6iv7-python3.13-nodeenv-1.10.0/bin:/nix/store/4l601nzx49j1p1m7p65jdjdbhb110dif-python3.13-virtualenv-20.36.1/bin:/nix/store/0yj3hz7imj1zxmppn9gfps8h2jmvdi7g-clippy-1.93.0/bin:/nix/store/1nv3i8mpypy3d516f4pd95m0w72r73jy-pkg-config-wrapper-0.29.2/bin:/nix/store/k87a0gv4hg1zmm8j5d3ffmxyvhr13i41-sqlite-3.51.2-bin/bin:/nix/store/hlxw2q9qansq7bn52xvlb5badw3z1v8s-coreutils-9.10/bin:/nix/store/b3rx5wac9hhfxn9120xkcvdwj51mc9z2-findutils-4.10.0/bin:/nix/store/icrrz26xbyp293kagrlkab1bhc6gra0r-diffutils-3.12/bin:/nix/store/wv7qq5yb8plyhxji9x3r5gpkyfm2kf29-gnused-4.9/bin:/nix/store/8laf6k81j9ckylrigj3xsk76j69knhvl-gnugrep-3.12/bin:/nix/store/gf7b4yz4vhd0y2hnnrimhh875ghwzzzj-gawk-5.3.2/bin:/nix/store/isva9q9zx3frx6hh6cnpihh1kd2bx6bk-gnutar-1.35/bin:/nix/store/w1n7yp2vnldr395hbwbcaw9sflh413bm-gzip-1.14/bin:/nix/store/x8l7qzpab2gpdrp89g48mxlrsiz4f0gm-bzip2-1.0.8-bin/bin:/nix/store/0xw6y53ijaqwfd9c99wyaqiinychzv1f-gnumake-4.4.1/bin:/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin:/nix/store/8y5jm97n4lyw80gh71yihghbhqc11fdz-patch-2.8/bin:/nix/store/27fx8p4k6098wan3zahdbyj79ndcn03z-xz-5.8.2-bin/bin:/nix/store/p3j7lphwlci13f9w2v4rav6rbvpi80li-file-5.45/bin:/nix/store/hak3031i8bpmvdqfla85q6q3bgwqppb0-glib-2.86.3-bin/bin:/nix/store/h6hdbgkfh59np7bi7h8qa76pq27ixz8r-gnugrep-3.12/bin:/nix/store/74sind1d6vf2bfwd7yklg8chsvzqxmmq-coreutils-9.10/bin:/run/wrappers/bin:/usr/bin:/usr/sbin:/run/wrappers/bin:/home/dodgerblue/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/dodgerblue/.nix-profile/bin:/nix/profile/bin:/home/dodgerblue/.local/state/nix/profile/bin:/etc/profiles/per-user/dodgerblue/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin",
|
||||
"propagatedBuildInputs": "",
|
||||
"dontAddDisableDepTrack": "1",
|
||||
"CC": "gcc",
|
||||
"NIX_CC": "/nix/store/kbw2j1vag664b3sj3rjwz9v53cqx87sb-gcc-wrapper-15.2.0",
|
||||
"APPLICATION_INSIGHTS_NO_STATSBEAT": "true",
|
||||
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/1000/bus",
|
||||
"depsBuildTargetPropagated": "",
|
||||
"depsBuildBuildPropagated": "",
|
||||
"DIRENV_WATCHES": "eJyk0VFq4zAQxvG76DlE8kgjWTnFvi_LMqMZN24Uq9hOmlB69z62hKYEeoGP38f_75t5oXVvdsbu21GtNHnSmetJ7Z-5PWtZFys01ut_bqvd6nSei9mYY5N1PKrZdSn5Pjj03cboZVzWxezW-aTvm_vD29oKVbvsaVYr46zT2VKt7dUG7p1Qxk6BlBUZMaeQqQhSLH1wBTIWjI6jSlQhBEkdCAAD5BRvZCH16LP_nUx0ulrnMYAqixsCc-k1UZcUwfuivss-ucgDoLjI0ScRhgDkEvWDRsgpf4W5T89AdfkR9E2DodJBt9N4uT0bgssZHj97d7u2cnio8b-PAAAA__9EabvJ",
|
||||
"VSCODE_NLS_CONFIG": "{\"userLocale\":\"zh-cn\",\"osLocale\":\"zh-cn\",\"resolvedLanguage\":\"zh-cn\",\"defaultMessagesFile\":\"/nix/store/xc7y53y1la52bm3zr2waxqsyyinw3mfi-vscode-1.113.0/lib/vscode/resources/app/out/nls.messages.json\",\"languagePack\":{\"translationsConfigFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/tcf.json\",\"messagesFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/cfbea10c5ffb233ea9177d34726e6056e89913dc/nls.messages.json\",\"corruptMarkerFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/corrupted.info\"},\"locale\":\"zh-cn\",\"availableLanguages\":{\"*\":\"zh-cn\"},\"_languagePackId\":\"03e9a0e800a6ec55d37f45386a22dcdf.zh-cn\",\"_languagePackSupport\":true,\"_translationsConfigFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/tcf.json\",\"_cacheRoot\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn\",\"_resolvedLanguagePackCoreLocation\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/cfbea10c5ffb233ea9177d34726e6056e89913dc\",\"_corruptedFile\":\"/home/dodgerblue/.config/Code/clp/03e9a0e800a6ec55d37f45386a22dcdf.zh-cn/corrupted.info\"}",
|
||||
"KDE_APPLICATIONS_AS_SCOPE": "1",
|
||||
"NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu": "1",
|
||||
"KPACKAGE_DEP_RESOLVERS_PATH": "/nix/store/p5qbaibbj10ja63607lgx483fr6v7v22-frameworkintegration-6.24.0/libexec/kf6/kpackagehandlers",
|
||||
"QT_PLUGIN_PATH": "/nix/store/wkr439djkh7asbsx1d83q0l3k2gh98jx-plasma-workspace-6.6.3/lib/qt-6/plugins:/nix/store/5r2xrchj6b67gqnhdqh1phk7kwsijkyn-qtvirtualkeyboard-6.10.2/lib/qt-6/plugins:/nix/store/7ns9a9kr8zrf3kww3h9b2ky7w1smndxa-plasma5support-6.6.3/lib/qt-6/plugins:/nix/store/v2bi6k9z5gg9vgr3sqx6arcakjqaq5a3-milou-6.6.3/lib/qt-6/plugins:/nix/store/qzbks36fw20pyacpa5rbz00zw6z7brjw-libksysguard-6.6.3/lib/qt-6/plugins:/nix/store/6j9i1w0qf0y7k6cppy4y79d6n1mw7740-kwin-6.6.3/lib/qt-6/plugins:/nix/store/dyd90lbldg4wx44zsahgn1iqjhn9kqnl-breeze-6.6.3/lib/qt-6/plugins:/nix/store/p5qbaibbj10ja63607lgx483fr6v7v22-frameworkintegration-6.24.0/lib/qt-6/plugins:/nix/store/9l9z1c8g8k0djbjhf0nvfqz5fjaympx3-aurorae-6.6.3/lib/qt-6/plugins:/nix/store/4mnqm9kx0cd9iv5rl02bm8qvx1686y8k-ktexteditor-6.24.0/lib/qt-6/plugins:/nix/store/srq3z262i2n1nd1a29kwrfcvq3prc3ls-kscreenlocker-6.6.3/lib/qt-6/plugins:/nix/store/mlsnpqkq9fpyrg3n4a4zk90yqv39v3ja-libplasma-6.6.3/lib/qt-6/plugins:/nix/store/b58h2pc1ip0f6n9saxiyk7qrzg9s7wlz-libkscreen-6.6.3/lib/qt-6/plugins:/nix/store/sgg3b5kpk0x5p6l954yxyvkvlvfa3yak-layer-shell-qt-6.6.3/lib/qt-6/plugins:/nix/store/qhsikrhvhhv39cm0lcwmgd5fimf58vkb-qtmultimedia-6.10.2/lib/qt-6/plugins:/nix/store/4l2xap84w7nwhlpwv89b40izdclmd0dr-qtquick3d-6.10.2/lib/qt-6/plugins:/nix/store/6m0ly5gyx01z68lw0r7mbg6v0vwj37h3-kio-extras-25.12.3/lib/qt-6/plugins:/nix/store/jiwq3wv6blg0m3djh0q3zm1r9pwwls1j-kglobalacceld-6.6.3/lib/qt-6/plugins:/nix/store/4r0xaq5i7yfw93g8a397840wfn76x0kj-kactivitymanagerd-6.6.3/lib/qt-6/plugins:/nix/store/1bkw0xlifkm6dgw77fxmv7sr4qad3r0j-kauth-6.24.0/lib/qt-6/plugins:/nix/store/ljkzqlp40ga335xafy1h3wr4s07ykn91-baloo-6.24.0/lib/qt-6/plugins:/nix/store/fsp0vf0vjm1334rkdcyvsm3fkpxv607h-kio-6.24.0/lib/qt-6/plugins:/nix/store/qqwm9mi346k1qhmhg1aczbag3pxjzhyi-kwindowsystem-6.24.0/lib/qt-6/plugins:/nix/store/dwy1zm3bbj9yyqpk956lfmjhlwxrd8zx-kidletime-6.24.0/lib/qt-6/plugins:/nix/store/06193x4gnhgrbhf7fh1wfj2qp6ss4112-kfilemetadata-6.24.0/lib/qt-6/plugins:/nix/store/93q427ng0mgv3cqnz4917mm3z3bypdvz-qqc2-breeze-style-6.6.3/lib/qt-6/plugins:/nix/store/7b77nr9q19z7hmp2450vh0gyaw3iliwg-qqc2-desktop-style-6.24.0/lib/qt-6/plugins:/nix/store/iwk926y2chdpma406rinr0v90xd7da90-sonnet-6.24.0/lib/qt-6/plugins:/nix/store/k1a3vfqcdd03pnzyi8z2xph3zjqdyh3d-kiconthemes-6.24.0/lib/qt-6/plugins:/nix/store/0q17g0kkjbbfln6xc2zhyxnw1n0skql9-ki18n-6.24.0/lib/qt-6/plugins:/nix/store/kghj07qxpr2qgz47rqms4l4d2jcc5qd1-qtwayland-6.10.2/lib/qt-6/plugins:/nix/store/hkfzj635mv35khsxpfc5vjfls3inymij-qtlocation-6.10.2/lib/qt-6/plugins:/nix/store/5mr8c8v827j1sbbygabfhnl4qb7cdbg3-qtpositioning-6.10.2/lib/qt-6/plugins:/nix/store/knzapvajf9qbx2qagx9zy9xl1nq204mi-qtdeclarative-6.10.2/lib/qt-6/plugins:/nix/store/4ap1s1ybfb07q8wjy485267y7q6nsj2s-qtsvg-6.10.2/lib/qt-6/plugins:/nix/store/9lf2mfhsk7s379mfsh8nqc4xabdg6dw6-qtbase-6.10.2/lib/qt-6/plugins:/nix/store/r2lbmw6jvlwak1lc7213z1j9z4xm39by-qtbase-6.10.2-only-plugins-qml/lib/qt-6/plugins:/nix/store/b87cqgm5kcp4n1i603gjvizjxpcmbb7n-fcitx5-with-addons-5.1.19/lib/qt-6/plugins:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-5.15.18/plugins:/home/dodgerblue/.local/share/flatpak/exports/lib/qt-6/plugins:/var/lib/flatpak/exports/lib/qt-5.15.18/plugins:/var/lib/flatpak/exports/lib/qt-6/plugins:/home/dodgerblue/.nix-profile/lib/qt-5.15.18/plugins:/home/dodgerblue/.nix-profile/lib/qt-6/plugins:/nix/profile/lib/qt-5.15.18/plugins:/nix/profile/lib/qt-6/plugins:/home/dodgerblue/.local/state/nix/profile/lib/qt-5.15.18/plugins:/home/dodgerblue/.local/state/nix/profile/lib/qt-6/plugins:/etc/profiles/per-user/dodgerblue/lib/qt-5.15.18/plugins:/etc/profiles/per-user/dodgerblue/lib/qt-6/plugins:/nix/var/nix/profiles/default/lib/qt-5.15.18/plugins:/nix/var/nix/profiles/default/lib/qt-6/plugins:/run/current-system/sw/lib/qt-5.15.18/plugins:/run/current-system/sw/lib/qt-6/plugins",
|
||||
"CONFIG_SHELL": "/nix/store/2hjsch59amjs3nbgh7ahcfzm2bfwl8zi-bash-5.3p9/bin/bash",
|
||||
"XKB_DEFAULT_OPTIONS": "terminate:ctrl_alt_bksp",
|
||||
"__structuredAttrs": "",
|
||||
"RANLIB": "ranlib",
|
||||
"NIX_HARDENING_ENABLE": "bindnow format fortify fortify3 libcxxhardeningextensive libcxxhardeningfast pic relro stackclashprotection stackprotector strictoverflow zerocallusedregs",
|
||||
"VSCODE_HANDLES_UNCAUGHT_ERRORS": "true",
|
||||
"OLDPWD": "",
|
||||
"NIX_LDFLAGS": "-rpath /home/dodgerblue/Projects/daily_bot/outputs/out/lib -L/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib -L/nix/store/whs07fdxlw22fi8b3jzd2z871dh41qx6-sqlite-3.51.2/lib -L/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/lib -L/nix/store/whs07fdxlw22fi8b3jzd2z871dh41qx6-sqlite-3.51.2/lib",
|
||||
"nativeBuildInputs": "",
|
||||
"COPILOT_OTEL_EXPORTER_TYPE": "file",
|
||||
"name": "nix-shell-env",
|
||||
"depsHostHostPropagated": ""
|
||||
},
|
||||
"python.defaultInterpreterPath": "/nix/store/m1fw8l8y9ycxh5dzispbb7cwl6rra14l-python3-3.13.12/bin/python3",
|
||||
"python.envFile": "${workspaceFolder}/.vscode/.env.nix",
|
||||
"nixEnvSelector.nixFile": "${workspaceFolder}/flake.nix"
|
||||
}
|
||||
Generated
+3186
-23
File diff suppressed because it is too large.
Load diff
+14
@@ -6,8 +6,22 @@ edition = "2024"
|
||||
[dependencies]
|
||||
anyhow = "1.0.102"
|
||||
async-trait = "0.1.89"
|
||||
chrono = "0.4.44"
|
||||
chrono-tz = "0.10.4"
|
||||
dashmap = "6.1.0"
|
||||
env_logger = "0.11.9"
|
||||
log = "0.4.29"
|
||||
reqwest = "0.13.2"
|
||||
serde = {version="1.0.228",features=["derive"]}
|
||||
serde_json = "1.0.149"
|
||||
sled = "0.34.7"
|
||||
thiserror = "2.0.18"
|
||||
tokio = {version="1.50.0",features=["full"]}
|
||||
tokio-cron-scheduler = "0.15.1"
|
||||
tokio-retry = "0.3.0"
|
||||
toml = "1.0.7"
|
||||
|
||||
[dependencies.matrix-sdk]
|
||||
version="0.16.0"
|
||||
default-features = false
|
||||
features=["anyhow","markdown","e2e-encryption","automatic-room-key-forwarding","sqlite","rustls-tls"]
|
||||
@@ -9,7 +9,9 @@
|
||||
- init.rs 程序基础的初始化逻辑
|
||||
|
||||
# TODO
|
||||
- [ ] 实现基础Sled DB的签到信息记录功能
|
||||
- [ ] 实现matrix机器人收发
|
||||
- [ ] 实现每日签到统计
|
||||
- [x] 实现基础Sled DB的签到信息记录功能
|
||||
- [x] 实现matrix机器人收发
|
||||
- [x] 实现每日签到统计
|
||||
- [ ] 实现level自动调整
|
||||
- [ ] 实现低level自动踢出(每月签到次数低于7次,且level为铜)
|
||||
- [ ] 实现每月签到统计
|
||||
@@ -0,0 +1,4 @@
|
||||
segment_size: 524288
|
||||
use_compression: false
|
||||
version: 0.34
|
||||
vQ
|
||||
Binary file not shown.
@@ -0,0 +1,39 @@
|
||||
# daily_bot 配置示例
|
||||
# 将此文件复制为 config.toml 并按你的环境修改。
|
||||
|
||||
[matrix]
|
||||
# Matrix homeserver 域名(不带 https://)。
|
||||
# 例: matrix.org / your-company.com
|
||||
home_server = "matrix.org"
|
||||
|
||||
# 机器人账号(完整 Matrix 用户 ID)。
|
||||
# 格式: @用户名:域名
|
||||
username = "@daily-bot:matrix.org"
|
||||
|
||||
# 机器人密码。
|
||||
password = "replace-with-strong-password"
|
||||
|
||||
# 需要管理/监听的房间列表。
|
||||
|
||||
[[matrix.rooms]]
|
||||
# 房间 ID。
|
||||
# 格式: !xxxx:域名
|
||||
room_id = "!exampleRoomA:matrix.org"
|
||||
|
||||
# 是否开启“长期未打卡踢人”逻辑。
|
||||
kick_member_if_they_didnot_checkin_for_long_time = true
|
||||
|
||||
# 触发踢人的阈值(单位由你的业务逻辑决定,当前代码仅做配置读取)。
|
||||
kick_long_time = 30
|
||||
|
||||
# 白名单用户(不会被踢)。
|
||||
# 格式: @用户名:域名
|
||||
white_list = ["@admin:matrix.org", "@owner:matrix.org"]
|
||||
|
||||
[[matrix.rooms]]
|
||||
room_id = "!exampleRoomB:matrix.org"
|
||||
|
||||
# 可选字段都可以不写;省略时表示不启用对应能力。
|
||||
# kick_member_if_they_didnot_checkin_for_long_time = false
|
||||
# kick_long_time = 0
|
||||
# white_list = []
|
||||
@@ -5,16 +5,33 @@
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, utils, naersk }:
|
||||
utils.lib.eachDefaultSystem (system:
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
naersk,
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (
|
||||
system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
naersk-lib = pkgs.callPackage naersk { };
|
||||
in
|
||||
{
|
||||
defaultPackage = naersk-lib.buildPackage ./.;
|
||||
devShell = with pkgs; mkShell {
|
||||
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
|
||||
devShell =
|
||||
with pkgs;
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
pre-commit
|
||||
rustPackages.clippy
|
||||
pkg-config
|
||||
sqlite
|
||||
];
|
||||
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,515 @@
|
||||
use crate::bot::command_parser::parse_command;
|
||||
use crate::bot::define::{AttendanceHandler, Bot, InboundMessage, MessageEnum, OutboundMessage};
|
||||
use crate::bot::filters::support_chinese_command;
|
||||
use crate::db::crud_handler;
|
||||
use crate::db::define::StorageEngine;
|
||||
use crate::db::user_state::{UserLevel, UserState};
|
||||
use anyhow::{Result, anyhow};
|
||||
use async_trait::async_trait;
|
||||
use std::path::Path;
|
||||
use std::sync::{Arc, Mutex, OnceLock};
|
||||
use tokio::sync::mpsc;
|
||||
use tokio::task::JoinHandle;
|
||||
|
||||
type MessageTx = mpsc::Sender<MessageEnum>;
|
||||
type MessageRx = mpsc::Receiver<MessageEnum>;
|
||||
|
||||
static GLOBAL_CHANNEL: OnceLock<(MessageTx, Mutex<Option<MessageRx>>)> = OnceLock::new();
|
||||
|
||||
fn global_channel() -> &'static (MessageTx, Mutex<Option<MessageRx>>) {
|
||||
GLOBAL_CHANNEL.get_or_init(|| {
|
||||
let (tx, rx) = mpsc::channel(100);
|
||||
(tx, Mutex::new(Some(rx)))
|
||||
})
|
||||
}
|
||||
|
||||
pub struct ChannelManager {
|
||||
tx: MessageTx,
|
||||
rx: &'static Mutex<Option<MessageRx>>,
|
||||
filters: Option<Vec<Box<dyn Fn(&InboundMessage) -> InboundMessage + Send + Sync>>>,
|
||||
}
|
||||
|
||||
//channel的包装,提供过滤功能,后续可以考虑增加更多功能,比如广播等
|
||||
impl ChannelManager {
|
||||
pub fn new() -> Self {
|
||||
let (tx, rx) = global_channel();
|
||||
|
||||
let mut _self = Self {
|
||||
tx: tx.clone(),
|
||||
rx,
|
||||
filters: None,
|
||||
};
|
||||
_self.reg_filters();
|
||||
_self
|
||||
}
|
||||
|
||||
fn filter_message(&self, msg: &InboundMessage) -> InboundMessage {
|
||||
let mut result_msg = msg.clone();
|
||||
if let Some(filters) = &self.filters {
|
||||
for filter in filters {
|
||||
result_msg = filter(&result_msg);
|
||||
}
|
||||
}
|
||||
result_msg
|
||||
}
|
||||
|
||||
fn reg_filters(&mut self) {
|
||||
let cn_filter = Box::new(support_chinese_command)
|
||||
as Box<dyn Fn(&InboundMessage) -> InboundMessage + Send + Sync>;
|
||||
self.filters.get_or_insert_with(Vec::new).push(cn_filter);
|
||||
//后续可以考虑增加更多过滤器
|
||||
}
|
||||
//这里先过滤,在发送,后续可以考虑在接收时过滤
|
||||
pub async fn send(&self, value: MessageEnum) -> Result<()> {
|
||||
let tx = self.tx.clone();
|
||||
if let MessageEnum::MatrixMessage(inbound_msg) = value {
|
||||
let filtered_msg = self.filter_message(&inbound_msg);
|
||||
tx.send(MessageEnum::MatrixMessage(filtered_msg)).await?;
|
||||
} else {
|
||||
tx.send(value).await?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn get_receiver(&self) -> Option<MessageRx> {
|
||||
self.rx.lock().unwrap().take()
|
||||
}
|
||||
}
|
||||
|
||||
type SharedBot = Arc<dyn Bot + Send + Sync>;
|
||||
|
||||
pub struct CommandHandler {
|
||||
bot: SharedBot,
|
||||
}
|
||||
|
||||
impl CommandHandler {
|
||||
pub fn new(bot: SharedBot) -> Self {
|
||||
Self { bot }
|
||||
}
|
||||
|
||||
pub fn global_sender() -> MessageTx {
|
||||
global_channel().0.clone()
|
||||
}
|
||||
}
|
||||
|
||||
async fn start_bot_command_processor(
|
||||
bot: &SharedBot,
|
||||
inbound: &InboundMessage,
|
||||
command_text: &str,
|
||||
) -> Result<()> {
|
||||
let ast = parse_command(command_text)?;
|
||||
|
||||
let command = ast.command.as_str();
|
||||
match command {
|
||||
"echo" => {
|
||||
let text = ast.arguments.join(" ");
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text,
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
"ping" => {
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: "pong".to_string(),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
"reset" => {
|
||||
let crud_handler = crud_handler::CrudHandler::new(crate::db::sled_db::SledDB::new(
|
||||
Path::new("daily_state.sled.db"),
|
||||
)?);
|
||||
|
||||
crud_handler.reset_all_user_daily_state().await?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: "已重置所有用户的每日签到状态".to_string(),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
"level" => {
|
||||
let crud_handler = crud_handler::CrudHandler::new(crate::db::sled_db::SledDB::new(
|
||||
Path::new("daily_state.sled.db"),
|
||||
)?);
|
||||
|
||||
let argus = &ast.arguments;
|
||||
match argus.iter().next() {
|
||||
Some(a) => match a.as_str() {
|
||||
"set" => {
|
||||
let user_id = argus.iter().nth(1).ok_or_else(|| {
|
||||
anyhow!("请提供用户ID参数,例如:!level set @123:matrix.org super")
|
||||
})?;
|
||||
let level = argus.iter().nth(2).ok_or_else(|| {
|
||||
anyhow!("请提供等级参数,例如:!level set @123:matrix.org super")
|
||||
})?;
|
||||
crud_handler
|
||||
.set_user_level(
|
||||
user_id,
|
||||
UserLevel::from_str(level)
|
||||
.ok_or_else(|| anyhow!("无效的等级参数"))?,
|
||||
)
|
||||
.await?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("已设置用户 {} 的等级为 {}", user_id, level),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
"raise" => {
|
||||
let user_id = argus.iter().nth(1).ok_or_else(|| {
|
||||
anyhow!("请提供用户ID参数,例如:!level raise @123:matrix.org")
|
||||
})?;
|
||||
crud_handler.raise_level(user_id).await?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("已提升用户 {} 的等级", user_id),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
"super" => {
|
||||
let user_id = argus.iter().nth(1).ok_or_else(|| {
|
||||
anyhow!("请提供用户ID参数,例如:!level super @123:matrix.org")
|
||||
})?;
|
||||
crud_handler.give_super(user_id).await?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("已赋予用户 {} 超级权限", user_id),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
"clear" => {
|
||||
let user_id = argus.iter().nth(1).ok_or_else(|| {
|
||||
anyhow!("请提供用户ID参数,例如:!level clear @123:matrix.org")
|
||||
})?;
|
||||
crud_handler.clean_user_level(user_id).await?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("已清除用户 {} 的等级为默认等级", user_id),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
_ => {}
|
||||
},
|
||||
None => {
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text:
|
||||
"请提供选项,用户ID和等级参数,例如:!level set @123:matrix.org super"
|
||||
.to_string(),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"list" => {
|
||||
let crud_handler = crud_handler::CrudHandler::new(crate::db::sled_db::SledDB::new(
|
||||
Path::new("daily_state.sled.db"),
|
||||
)?);
|
||||
let is_raw = ast.options.iter().any(|(k, _)| k == "raw");
|
||||
let argus = &ast.arguments;
|
||||
for arg in argus {
|
||||
if arg == "all" {
|
||||
let all_user_state = crud_handler.get_all_user_state().await?;
|
||||
match is_raw {
|
||||
true => {
|
||||
let text = serde_json::to_string_pretty(&all_user_state)?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text,
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
false => {
|
||||
let text = all_user_state
|
||||
.into_iter()
|
||||
.map(|(user_id, state)| {
|
||||
format!("用户 {} 的签到状态: {:?}", user_id, state)
|
||||
})
|
||||
.collect::<Vec<String>>()
|
||||
.join("\n");
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text,
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
let user_id = arg.trim();
|
||||
let is_checked = crud_handler.is_exist(user_id).await?;
|
||||
let last_checkin_time = crud_handler.get_last_checkin_time(user_id).await?;
|
||||
let outbound = match is_raw {
|
||||
true => {
|
||||
let db = crate::db::sled_db::SledDB::new(Path::new("daily_state.sled.db"))?;
|
||||
let state = db
|
||||
.get_raw(user_id.as_bytes())
|
||||
.await?
|
||||
.unwrap_or("空".as_bytes().to_vec());
|
||||
let text = serde_json::to_string_pretty(&state)?;
|
||||
OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text,
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
}
|
||||
}
|
||||
false => {
|
||||
let text = if is_checked {
|
||||
format!(
|
||||
"用户 {} 已签到过了,最后一次签到时间: {}",
|
||||
user_id,
|
||||
last_checkin_time
|
||||
.map(|ts| {
|
||||
let dt = chrono::DateTime::from_timestamp(
|
||||
(ts / 1000) as i64,
|
||||
((ts % 1000) * 1_000_000) as u32,
|
||||
)?;
|
||||
Some(dt.format("%Y-%m-%d %H:%M:%S").to_string())
|
||||
})
|
||||
.flatten()
|
||||
.unwrap_or("未知".to_string())
|
||||
)
|
||||
} else {
|
||||
format!("用户 {} 尚未签到过", user_id)
|
||||
};
|
||||
OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text,
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
}
|
||||
}
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
"checkin" => {
|
||||
let crud_handler = crud_handler::CrudHandler::new(crate::db::sled_db::SledDB::new(
|
||||
Path::new("daily_state.sled.db"),
|
||||
)?);
|
||||
|
||||
let is_checked = crud_handler.is_exist(&inbound.user_id).await?;
|
||||
|
||||
match is_checked {
|
||||
true => {
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("您已签到过了,请勿重复签到"),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
return Ok(());
|
||||
}
|
||||
false => {
|
||||
crud_handler.checkin(&inbound.user_id).await?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!(" {} 已签到成功", inbound.user_id),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
"test" => {
|
||||
let test_project = &ast.arguments.iter().next();
|
||||
match test_project {
|
||||
None => {
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("请提供测试项目名称"),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
return Ok(());
|
||||
}
|
||||
Some(test_project) => {
|
||||
let test_project = test_project.trim().to_string();
|
||||
log::info!(
|
||||
"test command received: project={}, channel_id={}, event_id={}",
|
||||
test_project,
|
||||
inbound.channel_id,
|
||||
inbound.event_id
|
||||
);
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("测试项目: {}", test_project),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("测试已开始"),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
|
||||
let result: Result<&str> = match test_project.as_str() {
|
||||
"example" => Ok("测试通过"),
|
||||
"daily_report" => {
|
||||
log::info!(
|
||||
"test project daily_report started (channel_id={}, event_id={})",
|
||||
inbound.channel_id,
|
||||
inbound.event_id
|
||||
);
|
||||
crate::bot::schedule::ScheduleHandler::daily_statistics_and_report_schedule(Arc::clone(bot)).await?;
|
||||
log::info!(
|
||||
"test project daily_report finished (channel_id={}, event_id={})",
|
||||
inbound.channel_id,
|
||||
inbound.event_id
|
||||
);
|
||||
|
||||
Ok("日报测试通过")
|
||||
}
|
||||
_ => Err(anyhow!("未知测试项目")),
|
||||
};
|
||||
|
||||
match result {
|
||||
Ok(result_text) => {
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("测试结果: {}", result_text),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
Err(err) => {
|
||||
let outbound = OutboundMessage {
|
||||
channel_id: inbound.channel_id.clone(),
|
||||
text: format!("测试失败: {}", err),
|
||||
reply_to_event_id: Some(inbound.event_id.clone()),
|
||||
};
|
||||
bot.send_raw_message(&outbound.channel_id, &outbound)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
return Err(anyhow!("unknown command: {}", command));
|
||||
}
|
||||
}
|
||||
let arguments = ast.arguments;
|
||||
let options = ast.options;
|
||||
for argument in arguments {
|
||||
log::trace!("Argument: {}", argument);
|
||||
}
|
||||
|
||||
for (k, v) in options {
|
||||
log::trace!("Option: {}={}", k, v);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl AttendanceHandler for CommandHandler {
|
||||
async fn handle_commands(&self) -> Result<JoinHandle<()>> {
|
||||
let rx = {
|
||||
let (_tx, rx_slot) = global_channel();
|
||||
rx_slot
|
||||
.lock()
|
||||
.map_err(|_| anyhow!("global receiver lock poisoned"))?
|
||||
.take()
|
||||
.ok_or_else(|| anyhow!("global receiver has already been taken"))?
|
||||
};
|
||||
|
||||
let mut rx = rx;
|
||||
let bot = Arc::clone(&self.bot);
|
||||
let handle: JoinHandle<()> = tokio::spawn(async move {
|
||||
while let Some(msg) = rx.recv().await {
|
||||
match msg {
|
||||
MessageEnum::StopMessage => break,
|
||||
MessageEnum::MatrixMessage(msg) => {
|
||||
let text: &str = msg.text.trim();
|
||||
log::info!(
|
||||
"Received Matrix message (event_id={}, channel_id={}, user_id={}): {}",
|
||||
msg.event_id,
|
||||
msg.channel_id,
|
||||
msg.user_id,
|
||||
msg.text
|
||||
);
|
||||
let Some(command_text) = text.strip_prefix('!') else {
|
||||
log::debug!(
|
||||
"ignore non-command matrix message (event_id={}, channel_id={}): {}",
|
||||
msg.event_id,
|
||||
msg.channel_id,
|
||||
text
|
||||
);
|
||||
continue;
|
||||
};
|
||||
|
||||
if let Err(err) =
|
||||
start_bot_command_processor(&bot, &msg, command_text).await
|
||||
{
|
||||
log::warn!(
|
||||
"failed to process matrix command (event_id={}, channel_id={}): {}",
|
||||
msg.event_id,
|
||||
msg.channel_id,
|
||||
err
|
||||
);
|
||||
}
|
||||
}
|
||||
MessageEnum::TelegramMessage(msg) => {
|
||||
let text = msg.text.trim();
|
||||
let Some(command_text) = text.strip_prefix('/') else {
|
||||
log::debug!(
|
||||
"ignore non-command telegram message (event_id={}, channel_id={}): {}",
|
||||
msg.event_id,
|
||||
msg.channel_id,
|
||||
text
|
||||
);
|
||||
continue;
|
||||
};
|
||||
|
||||
if let Err(err) =
|
||||
start_bot_command_processor(&bot, &msg, command_text).await
|
||||
{
|
||||
log::warn!(
|
||||
"failed to process telegram command (event_id={}, channel_id={}): {}",
|
||||
msg.event_id,
|
||||
msg.channel_id,
|
||||
err
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Ok(handle)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {}
|
||||
@@ -0,0 +1,178 @@
|
||||
use std::collections::HashMap;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Error, PartialEq, Eq)]
|
||||
pub enum CommandError {
|
||||
#[error("empty command")]
|
||||
EmptyCommand,
|
||||
#[error("invalid option: {0}")]
|
||||
InvalidOption(String),
|
||||
#[error("unterminated quote")]
|
||||
UnterminatedQuote,
|
||||
#[error("dangling escape")]
|
||||
DanglingEscape,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub struct CommandAST {
|
||||
pub command: String,
|
||||
pub arguments: Vec<String>,
|
||||
pub options: HashMap<String, String>,
|
||||
}
|
||||
|
||||
pub fn parse_command(command: &str) -> Result<CommandAST, CommandError> {
|
||||
let tokens = tokenize_command(command)?;
|
||||
if tokens.is_empty() {
|
||||
return Err(CommandError::EmptyCommand);
|
||||
}
|
||||
|
||||
let command = tokens[0].clone();
|
||||
|
||||
let mut arguments = Vec::new();
|
||||
let mut options = HashMap::new();
|
||||
|
||||
let mut i = 1;
|
||||
while i < tokens.len() {
|
||||
let token = &tokens[i];
|
||||
if let Some(raw) = token.strip_prefix("--") {
|
||||
if raw.is_empty() {
|
||||
return Err(CommandError::InvalidOption(String::from("--")));
|
||||
}
|
||||
|
||||
if let Some((k, v)) = raw.split_once('=') {
|
||||
if k.is_empty() {
|
||||
return Err(CommandError::InvalidOption(format!(
|
||||
"invalid option key in '--{}'",
|
||||
raw
|
||||
)));
|
||||
}
|
||||
options.insert(k.to_string(), v.to_string());
|
||||
i += 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
let key = raw.to_string();
|
||||
let value = if i + 1 < tokens.len() && !tokens[i + 1].starts_with('-') {
|
||||
i += 1;
|
||||
tokens[i].clone()
|
||||
} else {
|
||||
String::from("true")
|
||||
};
|
||||
options.insert(key, value);
|
||||
i += 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
arguments.push(token.clone());
|
||||
i += 1;
|
||||
}
|
||||
|
||||
Ok(CommandAST {
|
||||
command,
|
||||
arguments,
|
||||
options,
|
||||
})
|
||||
}
|
||||
|
||||
fn tokenize_command(input: &str) -> Result<Vec<String>, CommandError> {
|
||||
let mut tokens = Vec::new();
|
||||
let mut buf = String::new();
|
||||
let mut chars = input.chars().peekable();
|
||||
let mut in_single_quote = false;
|
||||
let mut in_double_quote = false;
|
||||
|
||||
while let Some(ch) = chars.next() {
|
||||
match ch {
|
||||
'\'' if !in_double_quote => {
|
||||
in_single_quote = !in_single_quote;
|
||||
}
|
||||
'"' if !in_single_quote => {
|
||||
in_double_quote = !in_double_quote;
|
||||
}
|
||||
'\\' if in_double_quote => {
|
||||
if let Some(next) = chars.next() {
|
||||
buf.push(next);
|
||||
} else {
|
||||
return Err(CommandError::DanglingEscape);
|
||||
}
|
||||
}
|
||||
c if c.is_ascii_whitespace() && !in_single_quote && !in_double_quote => {
|
||||
if !buf.is_empty() {
|
||||
tokens.push(std::mem::take(&mut buf));
|
||||
}
|
||||
}
|
||||
_ => buf.push(ch),
|
||||
}
|
||||
}
|
||||
|
||||
if in_single_quote || in_double_quote {
|
||||
return Err(CommandError::UnterminatedQuote);
|
||||
}
|
||||
|
||||
if !buf.is_empty() {
|
||||
tokens.push(buf);
|
||||
}
|
||||
|
||||
Ok(tokens)
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::{CommandError, parse_command};
|
||||
|
||||
#[test]
|
||||
fn parse_basic_command_and_arguments() {
|
||||
let ast = parse_command("/deploy service-a region-cn").expect("should parse");
|
||||
assert_eq!(ast.command, "/deploy");
|
||||
assert_eq!(ast.arguments, vec!["service-a", "region-cn"]);
|
||||
assert!(ast.options.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_options_with_equal_and_space() {
|
||||
let ast = parse_command("deploy --env=prod --region cn").expect("should parse");
|
||||
assert_eq!(ast.command, "deploy");
|
||||
assert_eq!(ast.arguments, Vec::<String>::new());
|
||||
assert_eq!(ast.options.get("env").map(String::as_str), Some("prod"));
|
||||
assert_eq!(ast.options.get("region").map(String::as_str), Some("cn"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_flag_and_consecutive_options() {
|
||||
let ast = parse_command("sync --dry-run --limit=10 --verbose").expect("should parse");
|
||||
assert_eq!(ast.options.get("dry-run").map(String::as_str), Some("true"));
|
||||
assert_eq!(ast.options.get("limit").map(String::as_str), Some("10"));
|
||||
assert_eq!(ast.options.get("verbose").map(String::as_str), Some("true"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_quoted_arguments() {
|
||||
let ast = parse_command("send \"hello world\" 'to matrix room'").expect("should parse");
|
||||
assert_eq!(ast.command, "send");
|
||||
assert_eq!(ast.arguments, vec!["hello world", "to matrix room"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_empty_input_returns_error() {
|
||||
let err = parse_command(" ").expect_err("should fail");
|
||||
assert_eq!(err, CommandError::EmptyCommand);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_invalid_empty_option_returns_error() {
|
||||
let err = parse_command("cmd --").expect_err("should fail");
|
||||
assert_eq!(err, CommandError::InvalidOption(String::from("--")));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_unterminated_quote_returns_error() {
|
||||
let err = parse_command("cmd \"oops").expect_err("should fail");
|
||||
assert_eq!(err, CommandError::UnterminatedQuote);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_dangling_escape_in_double_quotes_returns_error() {
|
||||
let err = parse_command("cmd \"abc\\").expect_err("should fail");
|
||||
assert_eq!(err, CommandError::DanglingEscape);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
use tokio::task::JoinHandle;
|
||||
|
||||
use anyhow::Result;
|
||||
use async_trait::async_trait;
|
||||
#[async_trait]
|
||||
pub trait Sender {
|
||||
async fn send(&self, message: OutboundMessage) -> Result<String>;
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
pub trait Receiver {
|
||||
async fn recv(&self, msg: InboundMessage) -> Result<()>;
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct OutboundMessage {
|
||||
pub channel_id: String,
|
||||
pub text: String,
|
||||
pub reply_to_event_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub struct InboundMessage {
|
||||
pub event_id: String,
|
||||
pub channel_id: String,
|
||||
pub user_id: String,
|
||||
pub text: String,
|
||||
pub timestamp_ms: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct InputBatch {
|
||||
pub messages: Vec<InboundMessage>,
|
||||
pub next_cursor: Option<String>,
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
pub trait AttendanceHandler {
|
||||
async fn handle_commands(&self) -> Result<JoinHandle<()>>;
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
pub enum MessageEnum {
|
||||
MatrixMessage(InboundMessage),
|
||||
TelegramMessage(InboundMessage),
|
||||
StopMessage,
|
||||
}
|
||||
#[async_trait]
|
||||
pub trait Bot {
|
||||
async fn start(&self) -> Result<()>;
|
||||
async fn join_rooms(&self) -> Result<()>;
|
||||
async fn send_raw_message(&self, room_id: &str, message: &OutboundMessage) -> Result<String>;
|
||||
async fn get_users_count(&self, room_id: &str) -> Result<usize>;
|
||||
async fn get_users_who_unchecked_for_long_time(&self) -> Result<Vec<(String, Option<usize>)>>;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
// filters: Option<Vec<Box<dyn Fn(&MessageEnum) -> MessageEnum + Send + Sync>>>,
|
||||
use crate::bot::define::InboundMessage;
|
||||
|
||||
|
||||
|
||||
//支持中文指令
|
||||
pub fn support_chinese_command(msg: &InboundMessage) -> InboundMessage {
|
||||
//支持中文指令的简单实现,可以根据需要扩展
|
||||
let keywords = vec![("\n", ""), ("!", "!"), ("签到", "checkin")];
|
||||
let mut new_msg = msg.clone();
|
||||
for (cn, en) in keywords {
|
||||
if new_msg.text.contains(cn) {
|
||||
new_msg.text = new_msg.text.replace(cn, en);
|
||||
}
|
||||
}
|
||||
new_msg
|
||||
}
|
||||
|
||||
//template
|
||||
//pub fn support_chinese_command(msg: &InboundMessage) -> InboundMessage {
|
||||
// unimplemented!()
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
use anyhow::{Result, anyhow};
|
||||
use matrix_sdk::{
|
||||
Client, Room,
|
||||
config::{self, SyncSettings},
|
||||
ruma::{
|
||||
OwnedUserId, RoomId, UserId,
|
||||
events::room::message::{
|
||||
MessageType, OriginalSyncRoomMessageEvent, RoomMessageEventContent,
|
||||
},
|
||||
},
|
||||
};
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use crate::{
|
||||
bot::{bot_handler::ChannelManager, define::Bot},
|
||||
config::{Config, RoomType},
|
||||
db::{define::StorageEngine, filter::super_filter, user_state::UserState},
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct MatrixBot {
|
||||
pub client: Arc<Client>,
|
||||
pub user_id: OwnedUserId,
|
||||
pub password: String,
|
||||
pub config: crate::config::MatrixBot,
|
||||
}
|
||||
|
||||
impl MatrixBot {
|
||||
pub async fn new(user_id: &str, password: &str) -> Result<Self> {
|
||||
let user_id = UserId::parse(user_id)?;
|
||||
let cfg = Config::get_all();
|
||||
let cfg = cfg
|
||||
.matrix
|
||||
.as_ref()
|
||||
.ok_or_else(|| anyhow::anyhow!("Matrix config not found"))?;
|
||||
|
||||
Ok(Self {
|
||||
client: Arc::new(
|
||||
Client::builder()
|
||||
.server_name(user_id.server_name())
|
||||
.homeserver_url(cfg.home_server.clone())
|
||||
.build()
|
||||
.await
|
||||
.map_err(|e| anyhow::anyhow!("创建Matrix客户端失败: {}", e))?,
|
||||
),
|
||||
user_id: user_id.to_owned(),
|
||||
password: password.to_string(),
|
||||
config: cfg.clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
async fn on_room_message(event: OriginalSyncRoomMessageEvent, room: Room) {
|
||||
let MessageType::Text(text_content) = &event.content.msgtype else {
|
||||
return;
|
||||
};
|
||||
dbg!(&event);
|
||||
let cm = ChannelManager::new();
|
||||
let msg = crate::bot::define::InboundMessage {
|
||||
event_id: event.event_id.to_string(),
|
||||
channel_id: room.room_id().to_string(),
|
||||
user_id: event.sender.to_string(),
|
||||
text: text_content.body.clone(),
|
||||
timestamp_ms: std::time::SystemTime::now()
|
||||
.duration_since(std::time::UNIX_EPOCH)
|
||||
.unwrap_or_default()
|
||||
.as_millis() as u64,
|
||||
};
|
||||
if let Err(e) = cm
|
||||
.send(super::define::MessageEnum::MatrixMessage(msg))
|
||||
.await
|
||||
{
|
||||
log::error!("Failed to send matrix message to command handler: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl Bot for MatrixBot {
|
||||
async fn start(&self) -> anyhow::Result<()> {
|
||||
let client = Arc::clone(&self.client);
|
||||
let user_id = self.user_id.clone();
|
||||
let password = self.password.clone();
|
||||
log::info!("Matrix 机器人已启动 {}", self.user_id);
|
||||
tokio_retry::Retry::spawn(
|
||||
tokio_retry::strategy::FibonacciBackoff::from_millis(100)
|
||||
.max_delay(Duration::from_secs(120))
|
||||
.take(5),
|
||||
move || {
|
||||
let client = Arc::clone(&client);
|
||||
let user_id = user_id.clone();
|
||||
let password = password.clone();
|
||||
|
||||
async move {
|
||||
client
|
||||
.matrix_auth()
|
||||
.login_username(user_id.as_str(), &password)
|
||||
.initial_device_display_name("Matrix Bot")
|
||||
.await?;
|
||||
|
||||
log::info!("Matrix 机器人已登陆 {}", &user_id);
|
||||
client.add_event_handler(on_room_message);
|
||||
let sync_client = Arc::clone(&client);
|
||||
tokio::spawn(async move {
|
||||
let response = client.sync_once(SyncSettings::default()).await.unwrap();
|
||||
let settings = SyncSettings::default().token(response.next_batch);
|
||||
if let Err(e) = sync_client.sync(settings).await {
|
||||
log::error!("Matrix 同步任务退出: {}", e);
|
||||
}
|
||||
});
|
||||
|
||||
Ok::<(), matrix_sdk::Error>(())
|
||||
}
|
||||
},
|
||||
)
|
||||
.await
|
||||
.map_err(|e| anyhow!("Matrix 登录重试失败: {}", e))?;
|
||||
Ok(())
|
||||
}
|
||||
async fn join_rooms(&self) -> Result<()> {
|
||||
let config = Config::get_all();
|
||||
let client = Arc::clone(&self.client);
|
||||
let mut rooms = client.joined_rooms();
|
||||
let room = client
|
||||
.join_room_by_id(
|
||||
config
|
||||
.matrix
|
||||
.clone()
|
||||
.unwrap()
|
||||
.rooms
|
||||
.get(0)
|
||||
.unwrap()
|
||||
.room_id
|
||||
.as_ref(),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
rooms.push(room);
|
||||
for room in &rooms {
|
||||
let content = RoomMessageEventContent::text_plain("机器人已启动".to_string());
|
||||
tokio::time::timeout(Duration::from_secs(20), room.send(content))
|
||||
.await
|
||||
.expect("room.send() 超时,可能卡在 Matrix 发送请求")
|
||||
.unwrap();
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
async fn send_raw_message(
|
||||
&self,
|
||||
room_id: &str,
|
||||
message: &crate::bot::define::OutboundMessage,
|
||||
) -> Result<String> {
|
||||
let content =
|
||||
matrix_sdk::ruma::events::room::message::RoomMessageEventContent::text_markdown(
|
||||
message.text.clone(),
|
||||
);
|
||||
let room_id = RoomId::parse(room_id)?;
|
||||
let room = self
|
||||
.client
|
||||
.get_room(&room_id)
|
||||
.ok_or_else(|| anyhow!("未找到房间: {}", room_id))?;
|
||||
|
||||
let response = room.send(content).await?;
|
||||
|
||||
Ok(response.event_id.to_string())
|
||||
}
|
||||
async fn get_users_count(&self, room_id: &str) -> Result<usize> {
|
||||
let room = self
|
||||
.client
|
||||
.get_room(&RoomId::parse(room_id)?)
|
||||
.ok_or_else(|| anyhow!("未找到房间: {}", room_id))?;
|
||||
|
||||
let members = room.joined_members_count();
|
||||
Ok(members as usize)
|
||||
}
|
||||
async fn get_users_who_unchecked_for_long_time(&self) -> Result<Vec<(String, Option<usize>)>> {
|
||||
let db_path = std::path::Path::new("daily_state.sled.db");
|
||||
let db = crate::db::sled_db::SledDB::new(db_path)?;
|
||||
let mut result = Vec::new();
|
||||
let main_room = self
|
||||
.config
|
||||
.rooms
|
||||
.iter()
|
||||
.filter(|r| r.room_type == RoomType::MainRoom)
|
||||
.next()
|
||||
.clone()
|
||||
.unwrap();
|
||||
let main_room = self
|
||||
.client
|
||||
.get_room(&main_room.room_id)
|
||||
.expect("主房间应该存在,但是并未存在");
|
||||
|
||||
let users = main_room.joined_user_ids().await?;
|
||||
let now = chrono::Utc::now()
|
||||
.to_utc()
|
||||
.with_timezone(&chrono_tz::Asia::Shanghai); //UTC时间转换为北京时间
|
||||
for user in users {
|
||||
let user_id = user.to_string();
|
||||
if let Some(state) = db.get_raw(&user_id.as_bytes()).await? {
|
||||
let state = serde_json::from_slice::<UserState>(&state)?;
|
||||
if state.is_checkin_today {
|
||||
continue; // 已经签到的用户不算未签到
|
||||
}
|
||||
|
||||
if super_filter(&state) {
|
||||
continue; // 根据过滤条件过滤用户
|
||||
}
|
||||
let checkin_ms = i64::try_from(state.checkin_unix_mills).unwrap_or(i64::MAX);
|
||||
let unchecked_ms = now.timestamp_millis().saturating_sub(checkin_ms);
|
||||
let current_ms = now.timestamp_millis();
|
||||
|
||||
let unchecked_days = chrono::Duration::try_milliseconds(current_ms - unchecked_ms)
|
||||
.map(|d| d.num_days())
|
||||
.unwrap_or(0);
|
||||
|
||||
result.push((user_id, Some(unchecked_days as usize)));
|
||||
} else {
|
||||
result.push((user_id, None));
|
||||
}
|
||||
}
|
||||
Ok(result)
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use matrix_sdk::ruma::events::room::message::RoomMessageEventContent;
|
||||
use std::sync::Arc;
|
||||
use std::time::Duration;
|
||||
|
||||
use super::MatrixBot;
|
||||
use crate::bot::bot_handler::CommandHandler;
|
||||
use crate::bot::define::{AttendanceHandler, MessageEnum};
|
||||
use crate::config::Config;
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_matrix_bot() {
|
||||
use super::Bot;
|
||||
let _ = env_logger::Builder::new()
|
||||
.filter_level(log::LevelFilter::Info)
|
||||
.is_test(true)
|
||||
.try_init();
|
||||
|
||||
let config = Config::get_all();
|
||||
eprintln!("[test_matrix_bot] step=build_client");
|
||||
let bot = tokio::time::timeout(
|
||||
Duration::from_secs(20),
|
||||
MatrixBot::new(
|
||||
&config.matrix.clone().unwrap().username.as_ref(),
|
||||
&config.matrix.clone().unwrap().password,
|
||||
),
|
||||
)
|
||||
.await
|
||||
.expect("MatrixBot::new() 超时,可能卡在 homeserver 发现或网络连接")
|
||||
.unwrap();
|
||||
|
||||
eprintln!("[test_matrix_bot] step=start_bot");
|
||||
bot.start().await.unwrap();
|
||||
|
||||
let bot = Arc::new(bot);
|
||||
let command_bot: Arc<dyn super::Bot + Send + Sync> = bot.clone();
|
||||
let command_handler = CommandHandler::new(command_bot);
|
||||
let _command_handle = command_handler.handle_commands().await.unwrap();
|
||||
|
||||
eprintln!("[test_matrix_bot] step=load_rooms");
|
||||
let client = Arc::clone(&bot.client);
|
||||
let mut rooms = client.joined_rooms();
|
||||
let room = client
|
||||
.join_room_by_id(
|
||||
config
|
||||
.matrix
|
||||
.clone()
|
||||
.unwrap()
|
||||
.rooms
|
||||
.get(0)
|
||||
.unwrap()
|
||||
.room_id
|
||||
.as_ref(),
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
rooms.push(room);
|
||||
//INFO: 这里不知道为啥,加入了房间,但是rooms为空,手动把房间加到rooms里,后续发送消息才能成功
|
||||
|
||||
dbg!(&rooms);
|
||||
for room in &rooms {
|
||||
let content = RoomMessageEventContent::text_plain("test".to_string());
|
||||
tokio::time::timeout(Duration::from_secs(20), room.send(content))
|
||||
.await
|
||||
.expect("room.send() 超时,可能卡在 Matrix 发送请求")
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
tokio::signal::ctrl_c().await.unwrap()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
pub mod bot_handler;
|
||||
pub mod command_parser;
|
||||
pub mod define;
|
||||
pub mod filters;
|
||||
pub mod matrix;
|
||||
pub mod schedule;
|
||||
@@ -0,0 +1,219 @@
|
||||
use std::{ops::Add, sync::Arc};
|
||||
|
||||
use anyhow::{Ok, Result};
|
||||
use log::info;
|
||||
use tokio_cron_scheduler::Job;
|
||||
|
||||
use crate::{
|
||||
bot::define::{Bot, OutboundMessage},
|
||||
config::{Config, RoomType},
|
||||
db,
|
||||
};
|
||||
pub struct ScheduleHandler {
|
||||
sche: tokio_cron_scheduler::JobScheduler, //这里可以添加一些定时任务相关的字段,比如定时器,任务列表等
|
||||
}
|
||||
type SharedBot = Arc<dyn Bot + Send + Sync>;
|
||||
impl ScheduleHandler {
|
||||
//new新实例后会自动启动定时任务,所以不需要单独调用start方法
|
||||
pub async fn new() -> Self {
|
||||
let _self = Self {
|
||||
sche: tokio_cron_scheduler::JobScheduler::new().await.unwrap(),
|
||||
//初始化字段
|
||||
};
|
||||
_self.start().await.unwrap();
|
||||
_self
|
||||
}
|
||||
|
||||
async fn start(&self) -> Result<()> {
|
||||
//这里可以启动定时任务,比如使用tokio的定时器,或者其他的定时任务库
|
||||
info!("定时任务已启动");
|
||||
self.sche.start().await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
pub async fn add_daily_statistics_and_report_schedule(
|
||||
&self,
|
||||
bot: SharedBot,
|
||||
cron: impl AsRef<str>,
|
||||
) -> Result<()> {
|
||||
let cron: &str = cron.as_ref();
|
||||
self.sche
|
||||
.add(Job::new_async(cron, move |uuid, _l| {
|
||||
let bot = bot.clone();
|
||||
Box::pin(async move {
|
||||
log::info!("异步任务执行了,ID: {:?}", uuid);
|
||||
|
||||
if let Err(err) =
|
||||
ScheduleHandler::daily_statistics_and_report_schedule(bot).await
|
||||
{
|
||||
log::error!("每日统计任务执行失败: {}", err);
|
||||
}
|
||||
})
|
||||
})?)
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
||||
pub async fn daily_statistics_and_report_schedule(bot: SharedBot) -> Result<()> {
|
||||
log::info!("[daily_report] start");
|
||||
//获取和转换日期
|
||||
let date = chrono::Local::now()
|
||||
.naive_local()
|
||||
.date()
|
||||
.add(chrono::Duration::hours(8)); //调整时区为北京时间
|
||||
let date = date.format("%Y年%-m月%-d日").to_string();
|
||||
log::info!("[daily_report] date_resolved: {}", date);
|
||||
//获取签到人数
|
||||
let db_path = std::path::Path::new("daily_state.sled.db");
|
||||
log::info!("[daily_report] open_db: {}", db_path.display());
|
||||
let db = db::crud_handler::CrudHandler::new(
|
||||
db::sled_db::SledDB::new(db_path).expect("无法获取数据库实例"),
|
||||
);
|
||||
log::info!("[daily_report] load_all_user_state: begin");
|
||||
let states = db.get_all_user_state().await?;
|
||||
let states = states
|
||||
.iter()
|
||||
.filter(|(_, state)| !crate::db::filter::super_filter(state))
|
||||
.collect::<Vec<_>>();
|
||||
log::info!(
|
||||
"[daily_report] load_all_user_state: done, state_count={}",
|
||||
states.len()
|
||||
);
|
||||
|
||||
let checked_nums = states.len();
|
||||
let config = Config::get_all().clone();
|
||||
//TODO:这里只能作为Matrix的签到统计,后续可以改成更通用的签到统计,或者直接在数据库里存储签到状态,这样就不需要获取全部状态了,可以考虑增加一个Bot trait的方法来获取签到人数,这样就可以更低耦合的实现签到统计
|
||||
let main_room_id = config
|
||||
.matrix
|
||||
.unwrap()
|
||||
.rooms
|
||||
.iter()
|
||||
.filter(|r| r.room_type == RoomType::MainRoom)
|
||||
.next()
|
||||
.expect("应该有一个主房间,但是配置文件未提供")
|
||||
.clone();
|
||||
log::info!(
|
||||
"[daily_report] get_users_count: begin, room_id={}",
|
||||
main_room_id.room_id
|
||||
);
|
||||
let all_user_nums = bot.get_users_count(main_room_id.room_id.as_str()).await?;
|
||||
log::info!(
|
||||
"[daily_report] get_users_count: done, all_user_nums={}",
|
||||
all_user_nums
|
||||
);
|
||||
|
||||
let unchecked_nums = all_user_nums - checked_nums;
|
||||
let checkin_rate = (checked_nums as f64 / all_user_nums as f64 * 100.0).round() as u32;
|
||||
log::info!("[daily_report] get_users_who_unchecked_for_long_time: begin");
|
||||
let users_table = bot.get_users_who_unchecked_for_long_time().await?;
|
||||
log::info!(
|
||||
"[daily_report] get_users_who_unchecked_for_long_time: done, row_count={},user_table={:#?}",
|
||||
&users_table.len(),
|
||||
&users_table
|
||||
);
|
||||
log::info!("[daily_report] reload_all_user_state_for_today_unchecked: begin");
|
||||
let today_unchecked_users = db
|
||||
.get_all_user_state()
|
||||
.await?
|
||||
.into_iter()
|
||||
.filter(|(_, state)| !state.is_checkin_today)
|
||||
.filter(|(_, state)| !crate::db::filter::super_filter(state))
|
||||
.map(|(user_id, _)| user_id)
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ,\n");
|
||||
log::info!("[daily_report] reload_all_user_state_for_today_unchecked: done");
|
||||
let above_7days_unchecked_users = users_table
|
||||
.iter()
|
||||
.filter(|(_, unchecked_days)| {
|
||||
if let Some(days) = unchecked_days {
|
||||
*days >= 7
|
||||
} else {
|
||||
false
|
||||
}
|
||||
})
|
||||
.map(|(user_id, _)| user_id.clone())
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ,\n");
|
||||
let above_14days_unchecked_users = users_table
|
||||
.iter()
|
||||
.filter(|(_, unchecked_days)| {
|
||||
if let Some(days) = unchecked_days {
|
||||
*days >= 14
|
||||
} else {
|
||||
false
|
||||
}
|
||||
})
|
||||
.map(|(user_id, _)| user_id.clone())
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ,\n");
|
||||
let above_30days_unchecked_users = users_table
|
||||
.iter()
|
||||
.filter(|(_, unchecked_days)| {
|
||||
if let Some(days) = unchecked_days {
|
||||
*days >= 30
|
||||
} else {
|
||||
false
|
||||
}
|
||||
})
|
||||
.map(|(user_id, _)| user_id.clone())
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ,\n");
|
||||
|
||||
let always_unchecked_users = users_table
|
||||
.iter()
|
||||
.filter(|(_, unchecked_days)| unchecked_days.is_none())
|
||||
.map(|(user_id, _)| user_id.clone())
|
||||
.collect::<Vec<String>>()
|
||||
.join(" ,\n");
|
||||
let md_reply = format!(
|
||||
r#"
|
||||
# {date}签到统计报告
|
||||
- 今日签到人数:{checked_nums}
|
||||
- 全部人数:{all_user_nums}
|
||||
- 未签到人数:{unchecked_nums}
|
||||
- 签到率:{checkin_rate}%
|
||||
|
||||
## 今日未签到用户
|
||||
{today_unchecked_users}
|
||||
|
||||
## 超过7天未签到用户
|
||||
{above_7days_unchecked_users}
|
||||
|
||||
## 超过14天未签到用户
|
||||
{above_14days_unchecked_users}
|
||||
|
||||
## 超过30天未签到用户
|
||||
{above_30days_unchecked_users}
|
||||
|
||||
## 从未签到用户
|
||||
{always_unchecked_users}
|
||||
|
||||
"#
|
||||
); //每日统计报告
|
||||
|
||||
log::info!(
|
||||
"[daily_report] send_raw_message: begin, room_id={}",
|
||||
main_room_id.room_id
|
||||
);
|
||||
bot.send_raw_message(
|
||||
main_room_id.room_id.as_str(),
|
||||
&OutboundMessage {
|
||||
channel_id: main_room_id.room_id.to_string(),
|
||||
text: md_reply,
|
||||
reply_to_event_id: None,
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
log::info!("[daily_report] send_raw_message: done");
|
||||
log::info!("[daily_report] reset_all_user_daily_state: begin");
|
||||
db.reset_all_user_daily_state().await?; //重置每日签到状态
|
||||
log::info!("[daily_report] reset_all_user_daily_state: done");
|
||||
log::info!("[daily_report] finished");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn add_month_statistics_and_report_schedule(&self, cron: impl AsRef<str>) -> Result<()> {
|
||||
let cron = cron.as_ref();
|
||||
//这里可以实现每月统计和报告的逻辑,比如统计每月的消息数量,活跃用户等,并生成报告发送到指定的频道
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
+58
-3
@@ -1,22 +1,77 @@
|
||||
use matrix_sdk::ruma::{OwnedRoomId, OwnedUserId};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{path::Path, sync::OnceLock};
|
||||
|
||||
static CONFIG: OnceLock<Config> = OnceLock::new();
|
||||
pub fn get_config() -> &'static Config {
|
||||
fn get_config() -> &'static Config {
|
||||
CONFIG.get_or_init(|| {
|
||||
toml::from_str(&std::fs::read_to_string(Path::new("config.toml")).expect("无法读配置文件"))
|
||||
.expect("解析配置文件时发生错误")
|
||||
})
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct Config {
|
||||
pub matrix: Option<MatrixBot>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
pub struct MatrixBot {
|
||||
pub home_server: String,
|
||||
pub username: String,
|
||||
pub password: String,
|
||||
pub rooms: Vec<Room>,
|
||||
}
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, PartialOrd, Ord, Eq)]
|
||||
pub enum RoomType {
|
||||
MainRoom, //主房间,用于签到和汇报
|
||||
SubRoom, //子房间,用于自动踢出,统计(默认)
|
||||
RecoveryRoom, //恢复房间,用于被踢出用户的恢复,被踢出的用户会自动被邀请到这里
|
||||
}
|
||||
|
||||
fn default_room_type() -> RoomType {
|
||||
RoomType::SubRoom
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, PartialOrd, Ord, Eq)]
|
||||
pub struct Room {
|
||||
pub room_id: OwnedRoomId,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub kick_member_if_they_didnot_checkin_for_long_time: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub kick_long_time: Option<isize>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub white_list: Option<Vec<OwnedUserId>>,
|
||||
#[serde(default = "default_room_type")]
|
||||
pub room_type: RoomType,
|
||||
}
|
||||
use thiserror::Error;
|
||||
#[derive(Debug, Error)]
|
||||
enum ConfigError {
|
||||
#[error("{0} is not exist")]
|
||||
NonExistent(String),
|
||||
}
|
||||
|
||||
impl Config {
|
||||
pub fn get_all() -> &'static Self {
|
||||
get_config()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::config::{Room, RoomType};
|
||||
|
||||
#[test]
|
||||
fn room_test() {
|
||||
let cfg = r#"room_id="!example:foo.bar"
|
||||
kick_member_if_they_didnot_checkin_for_long_time=true
|
||||
kick_long_time=1
|
||||
white_list=["@example:foo.bar"]
|
||||
"#;
|
||||
dbg!(&cfg);
|
||||
let a: Room = toml::from_str::<Room>(cfg).unwrap();
|
||||
dbg!(&a);
|
||||
assert!(matches!(a.room_type, RoomType::SubRoom));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
use crate::db::{self, define::StorageEngine};
|
||||
use anyhow::{Ok, Result, anyhow};
|
||||
pub struct CrudHandler<T: StorageEngine> {
|
||||
pub engine: T,
|
||||
}
|
||||
|
||||
impl<T: StorageEngine> CrudHandler<T> {
|
||||
pub fn new(engine: T) -> Self {
|
||||
Self { engine }
|
||||
}
|
||||
|
||||
pub async fn checkin(&self, user_id: &str) -> Result<()> {
|
||||
let key = user_id.as_bytes();
|
||||
let mut value = if let Some(value_bytes) = self.engine.get_raw(key).await? {
|
||||
serde_json::from_slice::<db::user_state::UserState>(&value_bytes)?
|
||||
} else {
|
||||
db::user_state::UserState::new()
|
||||
};
|
||||
value.checkin();
|
||||
let value_bytes = serde_json::to_vec(&value)?;
|
||||
|
||||
self.engine.set_raw(key, &value_bytes).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
//需要保证user_id存在,否则会panic
|
||||
pub async fn raise_level(&self, user_id: &str) -> Result<()> {
|
||||
let key = user_id.as_bytes();
|
||||
let value_bytes = self
|
||||
.engine
|
||||
.get_raw(key)
|
||||
.await?
|
||||
.ok_or_else(|| anyhow!("用户不存在"))?;
|
||||
|
||||
let mut value = serde_json::from_slice::<db::user_state::UserState>(&value_bytes)?;
|
||||
match value.level {
|
||||
db::user_state::UserLevel::Super => {}
|
||||
db::user_state::UserLevel::Bronze => value.level = db::user_state::UserLevel::Silver,
|
||||
db::user_state::UserLevel::Silver => value.level = db::user_state::UserLevel::Gold,
|
||||
db::user_state::UserLevel::Gold => value.level = db::user_state::UserLevel::Platinum,
|
||||
db::user_state::UserLevel::Platinum => value.level = db::user_state::UserLevel::Diamond,
|
||||
db::user_state::UserLevel::Diamond => {}
|
||||
}
|
||||
let new_value_bytes = serde_json::to_vec(&value)?;
|
||||
self.engine.set_raw(key, &new_value_bytes).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn set_user_level(
|
||||
&self,
|
||||
user_id: &str,
|
||||
level: db::user_state::UserLevel,
|
||||
) -> Result<()> {
|
||||
let key = user_id.as_bytes();
|
||||
let mut value = if let Some(value_bytes) = self.engine.get_raw(key).await? {
|
||||
serde_json::from_slice::<db::user_state::UserState>(&value_bytes)?
|
||||
} else {
|
||||
db::user_state::UserState::new()
|
||||
};
|
||||
value.level = level;
|
||||
let value_bytes = serde_json::to_vec(&value)?;
|
||||
|
||||
self.engine.set_raw(key, &value_bytes).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn give_super(&self, user_id: &str) -> Result<()> {
|
||||
let key = user_id.as_bytes();
|
||||
let mut value = if let Some(value_bytes) = self.engine.get_raw(key).await? {
|
||||
serde_json::from_slice::<db::user_state::UserState>(&value_bytes)?
|
||||
} else {
|
||||
db::user_state::UserState::new()
|
||||
};
|
||||
value.level = db::user_state::UserLevel::Super;
|
||||
let value_bytes = serde_json::to_vec(&value)?;
|
||||
|
||||
self.engine.set_raw(key, &value_bytes).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn clean_user_level(&self, user_id: &str) -> Result<()> {
|
||||
let key = user_id.as_bytes();
|
||||
let mut value = if let Some(value_bytes) = self.engine.get_raw(key).await? {
|
||||
serde_json::from_slice::<db::user_state::UserState>(&value_bytes)?
|
||||
} else {
|
||||
db::user_state::UserState::new()
|
||||
};
|
||||
value.level = db::user_state::UserLevel::Bronze;
|
||||
let value_bytes = serde_json::to_vec(&value)?;
|
||||
|
||||
self.engine.set_raw(key, &value_bytes).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn reset_all_user_daily_state(&self) -> Result<()> {
|
||||
let mut keys = self.engine.get_all_keys().await?;
|
||||
for key in keys.drain(..) {
|
||||
if let Some(value_bytes) = self.engine.get_raw(&key).await? {
|
||||
let mut value: db::user_state::UserState = serde_json::from_slice(&value_bytes)?;
|
||||
value.reset_daily();
|
||||
let new_value_bytes = serde_json::to_vec(&value)?;
|
||||
self.engine.set_raw(&key, &new_value_bytes).await?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn get_all_user_state(&self) -> Result<Vec<(String, db::user_state::UserState)>> {
|
||||
let mut result = Vec::new();
|
||||
let mut keys = self.engine.get_all_keys().await?;
|
||||
for key in keys.drain(..) {
|
||||
if let Some(value_bytes) = self.engine.get_raw(&key).await? {
|
||||
let value: db::user_state::UserState = serde_json::from_slice(&value_bytes)?;
|
||||
result.push((String::from_utf8(key)?, value));
|
||||
}
|
||||
}
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
pub async fn is_exist(&self, user_id: &str) -> Result<bool> {
|
||||
let re = self.engine.get_raw(user_id.as_bytes()).await?;
|
||||
match re {
|
||||
Some(user) => {
|
||||
let user = serde_json::from_slice::<db::user_state::UserState>(&user)?;
|
||||
match user.is_checkin_today {
|
||||
true => {
|
||||
return Ok(true);
|
||||
}
|
||||
false => {
|
||||
return Ok(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
None => {
|
||||
return Ok(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn get_last_checkin_time(&self, user_id: &str) -> Result<Option<u64>> {
|
||||
let key = user_id.as_bytes();
|
||||
if let Some(value_bytes) = self.engine.get_raw(key).await? {
|
||||
let value: db::user_state::UserState = serde_json::from_slice(&value_bytes)?;
|
||||
Ok(Some(value.checkin_unix_mills))
|
||||
} else {
|
||||
Ok(None)
|
||||
}
|
||||
}
|
||||
|
||||
//TODO:补全其他方法,比如统计……
|
||||
}
|
||||
@@ -10,6 +10,7 @@ pub trait StorageEngine: Sized + Send + Sync {
|
||||
async fn get_raw(&self, key: &[u8]) -> Result<Option<Vec<u8>>>;
|
||||
async fn set_raw(&self, key: &[u8], value: &[u8]) -> Result<()>;
|
||||
async fn delete_raw(&self, key: &[u8]) -> Result<()>;
|
||||
async fn get_all_keys(&self) -> Result<Vec<Vec<u8>>>;
|
||||
}
|
||||
|
||||
//上层语义化存储实现
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
use crate::db::user_state::UserState;
|
||||
|
||||
//fn temple_filter(state: UserState) -> bool {}
|
||||
|
||||
// 过滤掉超级用户,其他用户都不过滤
|
||||
pub fn super_filter(state: &UserState) -> bool {
|
||||
if state.level == crate::db::user_state::UserLevel::Super {
|
||||
return true;
|
||||
}
|
||||
false
|
||||
}
|
||||
@@ -1,2 +1,5 @@
|
||||
pub mod crud_handler;
|
||||
pub mod define;
|
||||
pub mod filter;
|
||||
pub mod sled_db;
|
||||
pub mod user_state;
|
||||
+36
-5
@@ -1,16 +1,34 @@
|
||||
use std::path::Path;
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
sync::OnceLock,
|
||||
};
|
||||
|
||||
use super::define::StorageEngine;
|
||||
use anyhow::Result;
|
||||
use async_trait::async_trait;
|
||||
|
||||
use dashmap::DashMap;
|
||||
pub static SLED_DB_POOL: OnceLock<DashMap<PathBuf, sled::Db>> = OnceLock::new();
|
||||
pub fn get_sled_db(path: &Path) -> Result<sled::Db> {
|
||||
let pool = SLED_DB_POOL.get_or_init(|| DashMap::new());
|
||||
if let Some(db) = pool.get(path) {
|
||||
Ok(db.clone())
|
||||
} else {
|
||||
let db = sled::open(path)?;
|
||||
pool.insert(path.to_path_buf(), db.clone());
|
||||
Ok(db)
|
||||
}
|
||||
}
|
||||
pub fn get_pool() -> &'static DashMap<PathBuf, sled::Db> {
|
||||
SLED_DB_POOL.get_or_init(|| DashMap::new())
|
||||
}
|
||||
pub struct SledDB {
|
||||
pub sled_db: sled::Db,
|
||||
}
|
||||
|
||||
impl SledDB {
|
||||
pub fn new(path: &Path) -> Result<Self> {
|
||||
let db = sled::open(path)?;
|
||||
let db = get_sled_db(path)?;
|
||||
|
||||
Ok(Self { sled_db: db })
|
||||
}
|
||||
}
|
||||
@@ -18,7 +36,11 @@ impl SledDB {
|
||||
#[async_trait]
|
||||
impl StorageEngine for SledDB {
|
||||
async fn open(path: &Path) -> Result<Self> {
|
||||
Self::new(path)
|
||||
let entry = get_pool().entry(path.to_path_buf());
|
||||
let sled_db = entry
|
||||
.or_insert_with(|| sled::open(path).expect("Failed to open sled database"))
|
||||
.clone();
|
||||
Ok(SledDB { sled_db })
|
||||
}
|
||||
|
||||
async fn set_raw(&self, key: &[u8], value: &[u8]) -> Result<()> {
|
||||
@@ -37,8 +59,17 @@ impl StorageEngine for SledDB {
|
||||
self.sled_db.flush()?;
|
||||
Ok(())
|
||||
}
|
||||
async fn get_all_keys(&self) -> Result<Vec<Vec<u8>>> {
|
||||
let keys = self
|
||||
.sled_db
|
||||
.iter()
|
||||
.keys()
|
||||
.filter_map(|res| res.ok())
|
||||
.map(|k| k.to_vec())
|
||||
.collect();
|
||||
Ok(keys)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//INFO: AI写的集成测试
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
use chrono::Datelike;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Default, Deserialize, Serialize)]
|
||||
pub struct UserState {
|
||||
pub is_checkin_today: bool,
|
||||
pub level: UserLevel,
|
||||
pub checkin_unix_mills: u64,
|
||||
pub checkin_times_in_month: usize,
|
||||
pub checkin_days: Vec<u32>, //每月在哪天签到了
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub enum UserLevel {
|
||||
Super = 0, //表示不受限制的用户,直接享受最高权限,主要用于管理员账号
|
||||
Bronze = 1,
|
||||
Silver = 2,
|
||||
Gold = 3,
|
||||
Platinum = 4,
|
||||
Diamond = 5,
|
||||
}
|
||||
impl Default for UserLevel {
|
||||
fn default() -> Self {
|
||||
UserLevel::Silver
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
key:用户id
|
||||
value:UserState的json字符串
|
||||
|
||||
|
||||
*/
|
||||
|
||||
impl UserLevel {
|
||||
pub fn to_str(&self) -> &'static str {
|
||||
match self {
|
||||
UserLevel::Super => "Super",
|
||||
UserLevel::Bronze => "Bronze",
|
||||
UserLevel::Silver => "Silver",
|
||||
UserLevel::Gold => "Gold",
|
||||
UserLevel::Platinum => "Platinum",
|
||||
UserLevel::Diamond => "Diamond",
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_str(s: &str) -> Option<Self> {
|
||||
match s {
|
||||
"Super" => Some(UserLevel::Super),
|
||||
"Bronze" => Some(UserLevel::Bronze),
|
||||
"Silver" => Some(UserLevel::Silver),
|
||||
"Gold" => Some(UserLevel::Gold),
|
||||
"Platinum" => Some(UserLevel::Platinum),
|
||||
"Diamond" => Some(UserLevel::Diamond),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl UserState {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
is_checkin_today: false,
|
||||
checkin_unix_mills: 0 as u64,
|
||||
checkin_times_in_month: 0,
|
||||
checkin_days: Vec::new(),
|
||||
level: UserLevel::Silver,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn checkin(&mut self) {
|
||||
self.is_checkin_today = true;
|
||||
let unix_time = chrono::Utc::now().timestamp_millis() as u64;
|
||||
|
||||
self.checkin_unix_mills = unix_time;
|
||||
self.checkin_times_in_month += 1;
|
||||
let day = chrono::Utc::now().day();
|
||||
if !self.checkin_days.contains(&day) {
|
||||
self.checkin_days.push(day);
|
||||
}
|
||||
if self.level == UserLevel::Super {
|
||||
return;
|
||||
}
|
||||
match self.checkin_times_in_month {
|
||||
0..=7 => self.level = UserLevel::Bronze,
|
||||
8..=14 => self.level = UserLevel::Silver,
|
||||
15..=29 => self.level = UserLevel::Gold,
|
||||
30..=44 => self.level = UserLevel::Platinum,
|
||||
_ => self.level = UserLevel::Diamond,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn reset_daily(&mut self) {
|
||||
self.is_checkin_today = false;
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
use crate::config::get_config;
|
||||
use crate::config::Config;
|
||||
use anyhow::{Ok, Result};
|
||||
pub async fn init() -> Result<()> {
|
||||
let _ = get_config();//初始化日志系统
|
||||
Config::get_all(); //初始化配置
|
||||
env_logger::init(); //初始化日志
|
||||
Ok(())
|
||||
}
|
||||
+1
-1
@@ -2,4 +2,4 @@ pub mod api;
|
||||
pub mod config;
|
||||
pub mod db;
|
||||
pub mod init;
|
||||
pub mod sender;
|
||||
pub mod bot;
|
||||
+34
-2
@@ -1,8 +1,40 @@
|
||||
use anyhow::Ok;
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use anyhow::anyhow;
|
||||
use daily_bot::bot::{
|
||||
bot_handler::CommandHandler,
|
||||
define::{AttendanceHandler, Bot, MessageEnum},
|
||||
matrix::MatrixBot,
|
||||
};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
daily_bot::init::init().await?;
|
||||
daily_bot::init::init().await?; // 执行初始化逻辑,主要是加载配置文件,创建数据库连接池等。
|
||||
|
||||
let cfg = daily_bot::config::Config::get_all();
|
||||
let matrix_cfg = cfg
|
||||
.matrix
|
||||
.as_ref()
|
||||
.ok_or_else(|| anyhow!("Matrix config not found"))?;
|
||||
|
||||
let bot = MatrixBot::new(matrix_cfg.username.as_ref(), &matrix_cfg.password).await?;
|
||||
bot.start().await?;
|
||||
bot.join_rooms().await?;
|
||||
|
||||
let bot: Arc<dyn Bot + Send + Sync> = Arc::new(bot);
|
||||
let command_handler = CommandHandler::new(Arc::clone(&bot));
|
||||
let command_handle = command_handler.handle_commands().await?;
|
||||
let bot_clone = Arc::clone(&bot);
|
||||
let schedule_handler = daily_bot::bot::schedule::ScheduleHandler::new().await;
|
||||
schedule_handler
|
||||
.add_daily_statistics_and_report_schedule(bot_clone, "* * 3 * * *")
|
||||
.await?;
|
||||
log::info!("Bot is running. Press Ctrl+C to stop.");
|
||||
tokio::signal::ctrl_c().await?; // 等待 Ctrl+C 信号以优雅地关闭应用程序。
|
||||
|
||||
let stop_tx = CommandHandler::global_sender();
|
||||
let _ = stop_tx.send(MessageEnum::StopMessage).await;
|
||||
let _ = tokio::time::timeout(Duration::from_secs(5), command_handle).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
use anyhow::Result;
|
||||
use async_trait::async_trait;
|
||||
|
||||
#[async_trait]
|
||||
pub trait Sender {
|
||||
async fn send(&self, message: OutboundMessage) -> Result<String>;
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
pub trait Receiver {
|
||||
// Pull user inputs from upstream and return a cursor for incremental sync.
|
||||
async fn poll_inputs(&self, cursor: Option<&str>, limit: usize) -> Result<InputBatch>;
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct OutboundMessage {
|
||||
pub channel_id: String,
|
||||
pub text: String,
|
||||
pub reply_to_event_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct InboundMessage {
|
||||
pub event_id: String,
|
||||
pub channel_id: String,
|
||||
pub user_id: String,
|
||||
pub text: String,
|
||||
pub timestamp_ms: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct InputBatch {
|
||||
pub messages: Vec<InboundMessage>,
|
||||
pub next_cursor: Option<String>,
|
||||
}
|
||||
Whitespace-only changes.
@@ -1,2 +0,0 @@
|
||||
pub mod define;
|
||||
pub mod matrix;
|
||||
Reference in new issue
Block a user