call image gen

This commit is contained in:
Hanashi 2026-08-03 21:27:56 -04:00
parent 818203916a
commit d4c48b7505
783 changed files with 623 additions and 187 deletions

58
Cargo.lock generated
View File

@ -205,41 +205,12 @@ dependencies = [
"workspace-build-acceleration",
]
[[package]]
name = "artcraft_router"
version = "0.0.1"
dependencies = [
"anyhow",
"artcraft_client",
"enums",
"fal_client",
"gmicloud_client",
"grok_api_client",
"log",
"reqwest 0.12.23",
"seedance2pro_client",
"serde",
"serde_derive",
"serde_json",
"strum",
"test_data",
"test_utils",
"tokens",
"tokio",
"url_utils",
"uuid 1.22.0",
"workspace-build-acceleration",
"worldlabs_api_client",
"wreq",
]
[[package]]
name = "artcraftx"
version = "0.0.1"
dependencies = [
"anyhow",
"artcraft_client",
"artcraft_router",
"base64 0.22.1",
"build_metadata",
"bytes",
@ -268,6 +239,7 @@ dependencies = [
"primitives",
"rand 0.9.2",
"reqwest 0.12.23",
"router",
"serde",
"serde_derive",
"serde_json",
@ -5492,6 +5464,34 @@ dependencies = [
"syn 1.0.109",
]
[[package]]
name = "router"
version = "0.0.1"
dependencies = [
"anyhow",
"artcraft_client",
"enums",
"fal_client",
"gmicloud_client",
"grok_api_client",
"log",
"reqwest 0.12.23",
"seedance2pro_client",
"serde",
"serde_derive",
"serde_json",
"strum",
"test_data",
"test_utils",
"tokens",
"tokio",
"url_utils",
"uuid 1.22.0",
"workspace-build-acceleration",
"worldlabs_api_client",
"wreq",
]
[[package]]
name = "rsa"
version = "0.9.6"

View File

@ -7,13 +7,13 @@ members = [
# API clients for external services
# These might be custom implementations or wrappers over other client libraries.
"crates/api_clients/artcraft_client",
"crates/api_clients/artcraft_router",
"crates/api_clients/fal_client",
"crates/api_clients/gmicloud_client",
"crates/api_clients/grok_api_client",
"crates/api_clients/grok_consumer_client",
"crates/api_clients/midjourney_client",
"crates/api_clients/openai_sora_client",
"crates/api_clients/router",
"crates/api_clients/seedance2pro_client",
"crates/api_clients/worldlabs_api_client",
"crates/api_clients/worldlabs_consumer_client",
@ -84,7 +84,6 @@ workspace-build-acceleration = { path = "crates/workspace-build-acceleration" }
# Setting paths here ensures we don't need to do so in every crate's Cargo.toml
# It makes refactoring much easier.
artcraft_client = { path = "crates/api_clients/artcraft_client" }
artcraft_router = { path = "crates/api_clients/artcraft_router" }
build_metadata = { path = "crates/lib/build_metadata" }
cloudflare_errors = { path = "crates/lib/cloudflare_errors" }
cloudflare_mitigation = { path = "crates/lib/cloudflare_mitigation" }
@ -106,6 +105,7 @@ midjourney_client = { path = "crates/api_clients/midjourney_client" }
mimetypes = { path = "crates/lib/files/mimetypes" }
openai_sora_client = { path = "crates/api_clients/openai_sora_client" }
primitives = { path = "crates/lib/data/primitives" }
router = { path = "crates/api_clients/router" }
seedance2pro_client = { path = "crates/api_clients/seedance2pro_client" }
sqlite_database = { path = "crates/sqlite_database" }
test_data = { path = "crates/testing/test_data" }

View File

@ -48,7 +48,7 @@ helpers go in the parent `mod tests` so sub-modules can `use super::*`.
## Key Crates
- `artcraftx` (desktop) — Tauri desktop app
- `artcraft_router` — provider routing for image/video generation (Artcraft, Fal, Seedance2Pro)
- `router` — provider routing for image/video generation (Artcraft, Fal, Seedance2Pro)
- `artcraft_client` — HTTP client for the Artcraft/Storyteller API, including the API type definitions (`artcraft_client::api_defs`)
- `seedance2pro_client` — HTTP client for the Kinovi/Seedance2Pro video generation service
- `enums` — enum variants stored as strings

View File

@ -1,5 +1,5 @@
[package]
name = "artcraft_router"
name = "router"
edition = "2024"
version = "0.0.1"
publish = false
@ -8,7 +8,7 @@ publish = false
normal = ["workspace-build-acceleration"]
[lib]
name = "artcraft_router"
name = "router"
path = "src/lib.rs"
[dependencies]

Some files were not shown because too many files have changed in this diff Show More