mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 12:44:11 -10:00
One call: the state, the questions by id, and stills (JPEG), videos (MP4) and sounds (MP3) cut with raea's FFmpeg to clef's limits (480 px H.264 at a small bitrate, mono 16 kHz MP3, JPEG at most 1,600 px; ffprobe says first what a file holds). It goes the first way that answers: the raea app's host (/host/ask, which adds its sign-in), an agent key (RAEA_AGENT_KEY with RAEA_API, for pipelines and servers), the person's own Cloudflare account; with none it says how to get one. No plan or no ask scope hands on to the next way; a spent pool stops unless the person has their own keys. Unchanged questions on unchanged media come from a cache by request hash; RAEA_CLEF_REPLAY gives recorded answers to tests. raea judge asks through it (Question::from_wire reads its rubric's clef-native questions), so apps/judge's own clef.rs is gone and the judge pays from the plan when the app is signed in. docs/settings.md lists the new settings.
19 lines
614 B
TOML
19 lines
614 B
TOML
[package]
|
|
name = "raea-io-clef"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "FSL-1.1-ALv2"
|
|
publish = false
|
|
description = "The decision model (clef-omni) called one way: the call, the media cut to its limits, the route (the person's raea plan first) and the cache"
|
|
|
|
[dependencies]
|
|
raea-core-ask = { path = "../../core/ask" }
|
|
raea-io-home = { path = "../home" }
|
|
# raea's own FFmpeg (fetched on Windows) and the H.264 encoder this machine has
|
|
raea-io-assets = { path = "../assets" }
|
|
raea-io-ffmpeg = { path = "../ffmpeg" }
|
|
serde_json = "1"
|
|
ureq = { version = "2", features = ["json"] }
|
|
base64 = "0.22"
|
|
sha2 = "0.10"
|