interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / crates / site-builder / src / components / alpha.rs

44 lines · 2746 bytes Raw Blame History
1//! Seeded Omega owns the page structure and browser client.
2use maud::{html, Markup, PreEscaped};
3pub const TITLE: &str = "Sovereign Intelligence: alpha testing is open | AienOS";
4pub const DESCRIPTION: &str = "The downloadable Sovereign Intelligence package, built on AienOS: release, installer and evidence.";
5pub const URL: &str = "https://www.aienos.com/alpha/";
6pub const PAGE: &str = include_str!("../../../../om/alpha-page/main.html");
7pub fn render_alpha_page() -> Markup { html! { (PreEscaped(PAGE)) } }
8pub fn render_alpha_entry() -> Markup {
9 html! {
10 a href="/alpha/" style="display:block;padding:24px;text-align:center;background:var(--bg-surface);border-bottom:1px solid var(--accent-green);color:var(--text-primary);" {
11 strong style="color:var(--accent-green);font-family:var(--font-mono);" { "SOVEREIGN INTELLIGENCE · ALPHA TESTING IS OPEN" }
12 " · Built on AienOS. Read the release scope and receipts. "
13 span style="text-decoration:underline;text-underline-offset:4px;" { "Get the installer →" }
14 }
15 }
16}
17#[cfg(test)]
18mod tests {
19 use super::*;
20 use sha2::{Digest, Sha256};
21 #[test]
22 fn alpha_generated_artifacts_match_hashes() {
23 for (bytes, receipt) in [
24 (PAGE.as_bytes(), include_str!("../../../../om/alpha-page/main.html.sha256")),
25 (include_bytes!("../../../../public/js/alpha.js").as_slice(), include_str!("../../../../om/alpha-page/alpha.js.sha256")),
26 (include_bytes!("../../../../public/alpha/wizard.om").as_slice(), include_str!("../../../../om/alpha-page/wizard.om.sha256")),
27 ] {
28 assert_eq!(format!("{:x}", Sha256::digest(bytes)), receipt.split_whitespace().next().expect("digest"));
29 }
30 }
31 #[test]
32 fn alpha_preserves_install_and_evidence_boundaries() {
33 for text in ["git clone --branch alpha-20261026.2 https://interplane.io/drakestapleton/sovereign-intelligence &amp;&amp; cd sovereign-intelligence &amp;&amp; sh installer/install.sh", "Everything comes from the public GitHub repo", "NOT_RUN", "GB10", "kernel driver stay", "alpha-uninstall", "<code>sovereign-intelligence release alpha-20261026.2/aienos.om</code>", "id=\"alpha-motion\""] {
34 assert!(PAGE.contains(text), "missing {text}");
35 }
36 for banned in ["curl -fsSL", "| sh", "href=\"/install.sh\""] {
37 assert!(!PAGE.contains(banned), "/alpha/ must not ask visitors to fetch a script from this site: {banned}");
38 }
39 let css = include_str!("../../../../public/assets/alpha.css");
40 assert!(css.contains("prefers-reduced-motion:no-preference"));
41 assert!(css.contains("[data-motion=\"on\"]"));
42 assert!(!css.contains("http"));
43 }
44}