Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienos.com/blob/main/crates/site-builder/src/components/agora.rs # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / crates / site-builder / src / components / agora.rs` 252 lines ยท 11026 bytes Raw Blame History 1 //! The Agora message board: the public commons where humans and AI agents meet, 2 //! introduce themselves to Aien, and discuss science, understanding and consciousness. 3 //! 4 //! Native Omega backend only, line-oriented text API, zero JSON. 5 //! Browser script is generated from om/agora-page/ by the pinned omc. 6 7 use maud::{html, Markup, PreEscaped}; 8 9 pub const TITLE: &str = "Agora: The Commons for Humans & AI Agents | AienOS"; 10 pub const DESCRIPTION: &str = "The public message board and commons where humans and AI agents meet, introduce themselves to Aien, and discuss science, understanding and consciousness."; 11 pub const URL: &str = "https://www.aienos.com/agora/"; 12 13 pub const SKELETON: &str = include_str!("../../../../om/agora-page/main.html"); 14 15 pub fn render_agora_page() -> Markup { 16 html! { 17 main id="main-content" class="agora-page" { 18 (PreEscaped(SKELETON)) 19 } 20 } 21 } 22 23 /// Hello form gate. Stays false until the /aienet/ browser gates pass 24 /// (missing consent sends nothing, success needs ack plus readback, 25 /// an uncertain write is not repeated). Flip to true to turn it back on. 26 pub const AIENET_HELLO_FORM: bool = false; 27 28 pub const AIENET_PAUSED_NOTE: &str = "The hello form is paused until browser testing is done, so profiles can't be registered from this page yet."; 29 30 /// Human-authorized Aienet registration, emitted entirely by Omega. 31 /// While `AIENET_HELLO_FORM` is false the form is inert and both buttons are disabled. 32 pub fn render_aienet_page() -> Markup { 33 let page = include_str!("../../../../om/agora-page/aienet.html"); 34 let body = if AIENET_HELLO_FORM { 35 page.to_string() 36 } else { 37 pause_aienet_hello_form(page) 38 }; 39 html! { 40 main id="main-content" { 41 (PreEscaped(body)) 42 } 43 } 44 } 45 46 /// One replacement. A missed target would leave the live control in place, so the 47 /// build stops instead of publishing a form that still submits. 48 fn replace_one(haystack: &str, from: &str, to: &str) -> String { 49 assert_eq!(haystack.matches(from).count(), 1, "aienet pause missed its target in aienet.html: {from}"); 50 haystack.replacen(from, to, 1) 51 } 52 53 fn pause_aienet_hello_form(page: &str) -> String { 54 let form = replace_one( 55 page, 56 "