Update the web console server, screens, help, prefs and loop setup, with matching page and logic suites

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-02 12:00:12 -08:00
1 parent 2468027a5a
commit 8e34bf1005
119 files changed
+9957 -3728

No files matched your search

+122 -2
View File
@@ -40,6 +40,8 @@ export const SERVABLE = new Set([
"boot.js",
"chat.js",
"help.js",
"tabs.js",
"prefs.js",
"starters.js",
"workspace.js",
"meter.js",
@@ -60,12 +62,15 @@ export const SERVABLE = new Set([
"favicon.png",
"screens/core.js",
"screens/ending.js",
"screens/loop-setup.js",
"screens/docs.js",
"screens/cards.js",
"screens/starting.js",
"screens/dashboard.js",
"screens/git-host.js",
"screens/looks.js",
"screens/agents-view.js",
"screens/prefs-dialog.js",
"screens/cleanup.js",
"screens/help-dialog.js",
"screens/workspace.js",
@@ -78,7 +83,119 @@ export const SERVABLE = new Set([
"activities/golf-holes.js",
"activities/golf-draw.js",
"activities/golf-decor.js",
"activities/golf-kit.js",
"activities/golf-paint.js",
"activities/golf-looks.js",
"activities/golf-course-pirate.js",
"activities/golf-course-cave.js",
"activities/golf-course-dino.js",
"activities/golf-course-candy.js",
"activities/golf-course-space.js",
"activities/golf-course-frost.js",
"activities/golf-look-dino.js",
"activities/golf-look-candy.js",
"activities/golf-look-space.js",
"activities/golf-look-frost.js",
"activities/trails.js",
"activities/bugs.js",
"activities/drive.js",
"activities/stack.js",
"activities/bumper.js",
"activities/bumper-draw.js",
"activities/rapids.js",
"activities/rapids-draw.js",
"activities/fuse.js",
"activities/fuse-draw.js",
"activities/hop.js",
"activities/hop-draw.js",
"activities/bounce.js",
"activities/bounce-draw.js",
"activities/bounce-roads.js",
"activities/bounce-road.js",
"activities/bounce-rivals.js",
"activities/bounce-scenery.js",
"activities/bounce-cars.js",
"activities/ghoul.js",
"activities/ghoul-draw.js",
"activities/ghoul-rooms.js",
"activities/ghoul-bones.js",
"activities/ghoul-bones-draw.js",
"activities/ghoul-graveyard.js",
"activities/ghoul-graveyard-draw.js",
"activities/ghoul-grounds.js",
"activities/ghoul-grounds-draw.js",
"activities/ghoul-chapel.js",
"activities/ghoul-chapel-draw.js",
"activities/ghoul-sanatorium.js",
"activities/ghoul-sanatorium-draw.js",
"activities/ghoul-village.js",
"activities/ghoul-village-draw.js",
"activities/ghoul-village-world.js",
"activities/ghoul-village-wolf.js",
"activities/ghoul-mine.js",
"activities/ghoul-mine-draw.js",
"activities/ghoul-mine-world.js",
"activities/ghoul-mine-tommy.js",
"activities/ghoul-cart.js",
"activities/ghoul-cart-draw.js",
"activities/ghoul-sled.js",
"activities/ghoul-sled-draw.js",
"activities/ghoul-carnival.js",
"activities/ghoul-carnival-draw.js",
"activities/ghoul-carnival-world.js",
"activities/ghoul-frozen.js",
"activities/ghoul-frozen-draw.js",
"activities/ghoul-frozen-world.js",
"activities/ghoul-flare.js",
"activities/ghoul-picker-draw.js",
"activities/ghoul-powers.js",
"activities/ghoul-arms.js",
"activities/ghoul-arms-draw.js",
"activities/ghoul-rockets.js",
"activities/ghoul-rockets-draw.js",
"activities/ghoul-pans.js",
"activities/ghoul-run.js",
"activities/ghoul-dice.js",
"activities/ghoul-dice-draw.js",
"activities/ghoul-gameover-draw.js",
"activities/ghoul-bonus.js",
"activities/ghoul-bonus-draw.js",
"activities/ghoul-monsters-draw.js",
"activities/pills.js",
"activities/snake-sfx.js",
"activities/golf-sfx.js",
"activities/trails-sfx.js",
"activities/bugs-sfx.js",
"activities/drive-sfx.js",
"activities/stack-sfx.js",
"activities/bumper-sfx.js",
"activities/rapids-sfx.js",
"activities/fuse-sfx.js",
"activities/hop-sfx.js",
"activities/bounce-sfx.js",
"activities/ghoul-sfx.js",
"activities/ghoul-sfx-graveyard.js",
"activities/ghoul-sfx-grounds.js",
"activities/ghoul-sfx-chapel.js",
"activities/ghoul-sfx-sanatorium.js",
"activities/ghoul-sfx-village.js",
"activities/ghoul-sfx-mine.js",
"activities/ghoul-sfx-carnival.js",
"activities/ghoul-sfx-frozen.js",
"activities/ghoul-sfx-sled.js",
"activities/ghoul-ride-core.js",
"activities/ghoul-ride-scenes.js",
"activities/ghoul-ride.js",
"activities/ghoul-ride-gfx.js",
"activities/ghoul-ride-draw-kinds.js",
"activities/ghoul-ride-draw-sets.js",
"activities/ghoul-ride-draw-hud.js",
"activities/ghoul-ride-draw.js",
"activities/ghoul-ride-voices.js",
"activities/ghoul-sfx-ride.js",
"activities/ghoul-sfx-arms.js",
"tones.js",
"music.js",
"notepad-tabs.js",
"net.js",
"notepad.js",
@@ -95,7 +212,7 @@ export const SERVABLE = new Set([
// Layers first, then one file per screen, then responsive and print last so
// its overrides still come after everything they override. The files are not
// on SERVABLE: they reach the page only through /app.css.
export const CSS_ORDER = ["tokens.css", "shell.css", "planny.css", "pieces.css", "dashboard.css", "poses.css", "docs.css", "ask.css", "ending.css", "help.css", "looks.css", "notepad.css", "activities.css", "git.css", "responsive.css"];
export const CSS_ORDER = ["tokens.css", "shell.css", "planny.css", "pieces.css", "dashboard.css", "poses.css", "docs.css", "ask.css", "ending.css", "help.css", "looks.css", "prefs.css", "notepad.css", "activities.css", "git.css", "responsive.css"];
// The files joined with one newline between them (each file's own last newline
// is that one), as the server serves them before the accent rules. The test
@@ -117,10 +234,13 @@ export function joinedStyles() {
// other means (preload hints, the inline boot state) rather than by caching.
const assets = new Map();
// `npm run play` sets this so an edit to a page file shows on the next reload.
const FRESH = process.env.PLAN2CODE_CONSOLE_DEV === "1";
export const etagOf = (body) => `"${crypto.createHash("sha1").update(body).digest("base64url").slice(0, 20)}"`;
export function asset(rel) {
let a = assets.get(rel);
let a = FRESH ? undefined : assets.get(rel);
if (!a) {
let body = rel === "app.css" ? joinedStyles() : fs.readFileSync(path.join(PUBLIC_DIR, rel));
if (rel === "app.css") body = Buffer.concat([body, Buffer.from(accentCss())]);