From 6e1a3e0f9fba0f452f8ace7de03dad23b1905e1e Mon Sep 17 00:00:00 2001 From: MarcusK00 Date: Wed, 18 Nov 2026 23:38:18 +0100 Subject: [PATCH 1/2] feat: add loop diff/term generators and 3 dual-theme README showcase demos --- AGENTS.md | 2 + README.md | 130 ++-- assets/demos/architecture-flow-dark.webp | Bin 0 -> 655752 bytes assets/demos/architecture-flow-light.webp | Bin 0 -> 704884 bytes assets/demos/benchmark-compare-dark.webp | Bin 0 -> 541918 bytes assets/demos/benchmark-compare-light.webp | Bin 0 -> 554866 bytes assets/demos/cli-terminal-dark.webp | Bin 0 -> 796870 bytes assets/demos/cli-terminal-light.webp | Bin 0 -> 883408 bytes docs/tool.md | 6 +- examples/architecture-flow/scene.html | 211 +++++++ examples/architecture-flow/showcase.json | 41 ++ examples/benchmark-compare/scene.html | 172 +++++ examples/benchmark-compare/showcase.json | 34 + examples/cli-terminal/scene.html | 163 +++++ examples/cli-terminal/showcase.json | 44 ++ skills/loop-studio/SKILL.md | 8 +- tool/bin/loop.js | 52 +- tool/index.js | 1 + tool/lib/generators.js | 723 ++++++++++++++++++++++ tool/test/run-evals.js | 57 +- 20 files changed, 1599 insertions(+), 45 deletions(-) create mode 100644 assets/demos/architecture-flow-dark.webp create mode 100644 assets/demos/architecture-flow-light.webp create mode 100644 assets/demos/benchmark-compare-dark.webp create mode 100644 assets/demos/benchmark-compare-light.webp create mode 100644 assets/demos/cli-terminal-dark.webp create mode 100644 assets/demos/cli-terminal-light.webp create mode 100644 examples/architecture-flow/scene.html create mode 100644 examples/architecture-flow/showcase.json create mode 100644 examples/benchmark-compare/scene.html create mode 100644 examples/benchmark-compare/showcase.json create mode 100644 examples/cli-terminal/scene.html create mode 100644 examples/cli-terminal/showcase.json create mode 100644 tool/lib/generators.js diff --git a/AGENTS.md b/AGENTS.md index 8f12157..99aa862 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,6 +7,8 @@ | Command | Purpose | | :--- | :--- | | `loop new [--template html\|code-diff\|shader]` | Scaffold a clean `scene.html` / `shader.frag` starter with `showcase.json` / `brief.json` | +| `loop diff [--range \| --staged \| --file ]` | Generate a dual-theme PR code-diff animation directly from real `git diff` output | +| `loop term --cmd "" [--label ""]` | Record real CLI command output into a dual-theme animated terminal showcase | | `loop sheet ` | Render a numbered contact sheet (`sheet.png`) | | `loop story ` | Render Frame `0` + step midpoints into `storyboard.png` for cold reading | | `loop seam ` | Measure wrap-seam RMS delta, duplicate frames, and flicker (works on projects or external videos via `ffmpeg`) | diff --git a/README.md b/README.md index f7a59d2..b34977e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

Loop Studio

- Deterministic HTML/WebGL2 browser capture, dual-theme dark/light README & PR motion, and doc-drift auditing for coding agents. + Turn real git diffs, CLI output, HTML/SVG diagrams, and WebGL2 shaders into verified, dual-theme dark/light README & PR animations.

@@ -17,7 +17,7 @@

- Switch GitHub between Dark and Light mode to see the <picture> embed adapt automatically — rendered from plain HTML/CSS/SVG (examples/ui-showcase), 240 frames @ 24 fps, seamScore: 1.04, 699 KB dark / 752 KB light. + Switch GitHub between Dark and Light mode to watch every <picture> embed below adapt automatically — rendered from plain HTML/CSS/SVG (examples/ui-showcase), 240 frames @ 24 fps, seamScore: 1.04, 699 KB dark / 752 KB light.

--- @@ -26,19 +26,20 @@ GitHub READMEs and PR descriptions strip JavaScript, CSS animations, and Lottie embeds—only animated images (`WebP` / `GIF`) or uploaded `