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/aienux/blob/main/docs/design/tools/make-screens.mjs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. 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 `aienux / docs / design / tools / make-screens.mjs` 129 lines · 11948 bytes Raw Blame History 1 // make-screens.mjs -- writes the plain first-run mockups (every screen except 04 and 05b) into the current directory. 2 // cd docs/design/screens && node ../tools/make-screens.mjs 3 import { writeFileSync } from "node:fs"; 4 const page = (file, title, tag, cls, body) => writeFileSync(file, ` 5 6
7 8 9${text}
`; 23 const btns = (top, items) => ``; 24 const choices = (top, items) => `Use my own drivers for the graphics, network and storage
61Set your screen to 144 times a second
62Run the AI on your graphics card
63Build drivers for the 2 parts I can't drive yet
64I won't touch your other drives, and you can undo any of this.
651 of 4
70 ${says("Use my own drivers for the graphics, network and storage?", 640, 120, ' data-wrap="900"')} 71 ${btns(740, [["Yes", "06b-show-each.html", true], ["Skip", "06b-show-each.html"]])}`); 72 73 page("07a-games.html", "Screen 7a: making games smoother", "7a · play games smoothly (example values; every number measured on this machine)", "sky", ` 74 ${says("Making games smoother.", 590, 0)} 75 ${found(652, [["Screen", "set to 144 times a second", ""], ["Graphics", "using my driver", ""], ["Processor", "keeping the fast cores free for the game", ""], ["Measured here", "118 frames a second in my test scene (before: 97)", ""]])} 76I can't tune this graphics card's clock speed yet. I'm building a driver that can.
77 ${btns(900, [["Next", "07b-ai-fit.html", true]])}`); 78 79 page("07b-ai-fit.html", "Screen 7b: finding the best way to run an AI", "7b · run an AI model here (fit from the model's measured size, not a table)", "sky", ` 80 ${says("Finding the best way to run an AI here.", 590, 0)} 81Your graphics card has 12 GB of its own memory. Models up to about 14 billion parameters fit on it. The 30 billion one fits if I share it with main memory, but it runs slower.
82 ${btns(800, [["Next", "07c-one-found.html", true]])}`); 83 84 page("07c-one-found.html", "Screen 7c: one model found", "7c · which AI: exactly one found (lit choice is taken after 10 s, and Allen says so)", "sky", ` 85 ${says("I found Qwen 30B on this computer. I'll use it.", 640, 0)} 86 ${btns(720, [["Use it", "09-ready.html", true], ["Choose another", "07c-several.html"]])} 87I'll go with this in 10 seconds
`); 88 89 page("07c-several.html", "Screen 7c: several found", "7c · which AI: several found (best fit first and lit)", "sky", ` 90 ${says("I found three. The first one fits this computer best.", 600, 0)} 91 ${choices(660, [["Qwen 30B", "Runs on your graphics card", "09-ready.html", true], ["Llama 8B", "Runs on your graphics card, quicker, shorter answers", "09-ready.html"], ["Qwen 27B on the Spark", "On the Spark next door, fast", "09-ready.html"], ["Connect my own", "Claude, ChatGPT or another service", "07c-connect.html"]])}`); 92 93 page("07c-none.html", "Screen 7c: none found", "7c · which AI: none found", "sky", ` 94 ${says("I didn't find an AI model on this computer.", 620, 0)} 95 ${choices(690, [["Get one for me", "The 30B model, an 18 GB download", "09-ready.html", true], ["Connect my own", "Claude, ChatGPT or another service", "07c-connect.html"]])} 96Not now
`); 97 98 page("07c-connect.html", "Screen 7c: connect my own", "7c · connect my own: which service", "sky", ` 99 ${says("Which service?", 620, 0)} 100 ${btns(690, [["Claude", "07c-key.html", true], ["ChatGPT", "07c-key.html"], ["Another service", "07c-key.html"]])}`); 101 102 page("07c-key.html", "Screen 7c: paste a key", "7c · paste your key (checking it with one short request)", "sky", ` 103 ${says("Paste your key for Claude. I'll keep it sealed on this computer and won't show it again.", 620, 0, ' data-wrap="900"')} 104Checking the key
105 ${bar('********************************', true)}`); 106 107 page("07c-key-failed.html", "Screen 7c: the key did not work", "7c · the key did not work", "sky", ` 108 ${says("That key didn't work. Claude said the key isn't valid. Try again?", 620, 0, ' data-wrap="900"')} 109 ${btns(720, [["Try again", "07c-key.html", true], ["Use a different service", "07c-connect.html"]])}`); 110 111 page("08-hardware.html", "Screen 8: setting up your hardware", "8 · setting up your hardware (six state words, nothing else)", "sky", ` 112 ${says("Setting up your hardware.", 590, 0)} 113 ${found(652, [["Graphics (AMD Radeon Pro 580)", "ready, my driver", "state"], ["Network (Broadcom)", "ready, my driver", "state"], ["Wi-Fi (Broadcom BCM4360)", "building a driver for it", "state"], ["Webcam", "ready, the maker's driver", "state"]])} 114Building a driver can take a while. You can keep using the computer.
115 ${bar('Speak to Allen')}`); 116 117 page("08b-turn-on.html", "Screen 8: the second consent", "8 · the second consent (only when a built driver is ready)", "sky", ` 118 ${says("I built a driver for your Wi-Fi and tested it without touching the real one. Turn it on?", 620, 0, ' data-wrap="900"')} 119 ${btns(740, [["Turn it on", "09-ready.html", true], ["Not now", "09-ready.html"]])}`); 120 121 page("08c-put-back.html", "Screen 8: it failed, the old one is back", "8 · a built driver failed on the real device: Allen undoes it by himself", "sky", ` 122 ${says("That didn't work on the real Wi-Fi. I've put the old driver back, and I'll keep working on it.", 640, 0, ' data-wrap="900"')} 123 ${bar('Speak to Allen')}`); 124 125 page("09-ready.html", "Screen 9: Allen is ready", "9 · Allen is ready", "sky", ` 126 ${says("Allen is ready.", 600, 0)} 127Games will use your screen at 144 times a second. Your AI is Qwen 30B, on your graphics card. I'm still building a driver for your Wi-Fi and I'll tell you when it's ready.
128 ${says("Ask me anything, or tell me what you'd like to do.", 800, 900)} 129 ${bar('Speak to Allen', true)}`);