Major Changes: - Unified AI content rendering across all collection types (chat, lang, comment) - Fixed PDS endpoint detection and usage based on handle configuration - Removed hardcoded 'yui.syui.ai' references and used environment variables - Fixed OAuth app 400 errors by adding null checks for API calls - Improved AI DID resolution to use correct ai.syui.ai account - Fixed avatar and profile link generation for correct PDS routing - Enhanced network configuration mapping for different PDS types OAuth App Improvements: - Consolidated renderAIContent() function for all AI collections - Fixed generateProfileUrl() to use PDS-specific web URLs - Removed duplicate AI content rendering code - Added proper error handling for API calls Technical Fixes: - Updated stream.rs to use correct AI DID defaults - Improved CORS handling for Ollama localhost connections - Enhanced PDS detection logic for handle-based routing - Cleaned up production code (removed console.log statements) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
81 lines
2.1 KiB
TOML
81 lines
2.1 KiB
TOML
[package]
|
|
name = "ailog"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
authors = ["syui"]
|
|
description = "A static blog generator with AI features"
|
|
license = "MIT"
|
|
|
|
[[bin]]
|
|
name = "ailog"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
pulldown-cmark = "0.11"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
tokio = { version = "1.40", features = ["rt-multi-thread", "macros", "fs", "net", "io-util", "sync", "time", "process", "signal"] }
|
|
anyhow = "1.0"
|
|
toml = "0.8"
|
|
chrono = "0.4"
|
|
tera = "1.20"
|
|
walkdir = "2.5"
|
|
gray_matter = "0.2"
|
|
fs_extra = "1.3"
|
|
colored = "2.1"
|
|
serde_yaml = "0.9"
|
|
syntect = "5.2"
|
|
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
|
|
rand = "0.8"
|
|
sha2 = "0.10"
|
|
base64 = "0.22"
|
|
uuid = { version = "1.11", features = ["v4"] }
|
|
urlencoding = "2.1"
|
|
axum = "0.7"
|
|
tower = "0.5"
|
|
tower-http = { version = "0.5", features = ["cors", "fs"] }
|
|
hyper = { version = "1.0", features = ["full"] }
|
|
tower-sessions = "0.12"
|
|
jsonwebtoken = "9.2"
|
|
cookie = "0.18"
|
|
# Documentation generation dependencies
|
|
syn = { version = "2.0", features = ["full", "parsing", "visit"] }
|
|
quote = "1.0"
|
|
ignore = "0.4"
|
|
git2 = { version = "0.18", features = ["vendored-openssl", "vendored-libgit2", "ssh"], default-features = false }
|
|
regex = "1.0"
|
|
# ATProto and stream monitoring dependencies
|
|
tokio-tungstenite = { version = "0.21", features = ["rustls-tls-webpki-roots", "connect"], default-features = false }
|
|
futures-util = "0.3"
|
|
tungstenite = { version = "0.21", features = ["rustls-tls-webpki-roots"], default-features = false }
|
|
rpassword = "7.3"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.14"
|
|
|
|
[profile.dev]
|
|
# Speed up development builds
|
|
opt-level = 0
|
|
debug = true
|
|
debug-assertions = true
|
|
overflow-checks = true
|
|
lto = false
|
|
panic = 'unwind'
|
|
incremental = true
|
|
codegen-units = 256
|
|
|
|
[profile.release]
|
|
# Optimize release builds for speed and size
|
|
opt-level = 3
|
|
debug = false
|
|
debug-assertions = false
|
|
overflow-checks = false
|
|
lto = true
|
|
panic = 'abort'
|
|
incremental = false
|
|
codegen-units = 1
|
|
|
|
[profile.dev.package."*"]
|
|
# Optimize dependencies in dev builds
|
|
opt-level = 3 |