Repository navigation
Separate cracktro’s reusable runtime from presentation code - #78566
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
@copilot extract a runtime.d.ts file which is checked by typescript so that future agents are more efficient |
There was a problem hiding this comment.
Reviewed the current diff, focusing on changed lines. I found no actionable correctness, regression, performance, or maintainability issues that warrant an inline comment. Static review only; tests were not run per review instructions. The specialist pass was unavailable because its background agent could not be resolved, so this conclusion is based on the independent review.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~10 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
🟡 Changes recommended
Group-keyed configuration mistakes inherited properties for configured values, causing valid IDs such as constructor to crash decks that omit bands.
4 open issues
What changed in this PR
Separates the cracktro player into a reusable runtime and talk-specific presentation code, preserving standalone classic-script loading.
Changes:
- Introduces
CracktroDeck.create(config)for stage setup, navigation, band headers, search, slide map, and animated backgrounds. - Keeps presentation content, styles, themes, prompts, and synth in
deck.js, with defaults for omitted runtime configuration. - Adds independent-deck regression coverage and documents the runtime boundary.
| File | Description |
|---|---|
docs/tests/talk.spec.ts |
Adds runtime-only deck coverage and checks both script assets. |
docs/README.md |
Explains runtime reuse and standalone loading. |
docs/public/cracktro/runtime.js |
Implements the reusable deck runtime and configuration defaults. |
docs/public/cracktro/index.html |
Loads the runtime before the presentation. |
docs/public/cracktro/deck.js |
Delegates playback to the runtime while retaining presentation code. |
.github/skills/cracktro/SKILL.md |
Updates file ownership, API guidance, and validation instructions. |
.github/skills/cracktro/mechanics.md |
Documents the split between presentation and runtime mechanics. |
Review effort: Max (adaptive)
| const { width: W = 1920, height: H = 1080, css = "", bands: BANDS = {}, solo: SOLO = {}, prototypes: PROTO = {}, last = null } = config; | ||
| const sfx = config.sound || SILENT; | ||
| const services = { h, letters, resetIndex, sound: sfx, current: () => slides[cur] }; | ||
| const slides = typeof config.slides === "function" ? config.slides(services) : [...(config.slides || [])]; | ||
| if (!slides.length) throw new Error("CracktroDeck.create: no slides"); | ||
| const THEME = {}; | ||
| for (const s of slides) THEME[s.group] ??= { ...DEFAULT_THEME, ...config.themes?.[s.group] }; |
| | `---------- animated background ----------` | Canvas background and grid driven by the current band's `THEME`. | | ||
|
|
||
| The stage is a fixed 1920x1080 frame (`W`/`H`), scaled to fit the window. | ||
| | `---------- styles ----------` | Deck CSS string. Slide classes use prefixes (`atk-`, `mra-`, `eph-`, `bh-` band headers, ...); check a new prefix is unused. | |
| - **Band themes:** `THEME` (the `// ---------- band themes ----------` block, before bands) is the single source of each band's look and sound; slides never set `sound`, `palette` or `red`. An entry is `{ base, pal, grid: [r,g,b,minorA,majorA], ang, cell, accent, red?, light?, music, prog }`: background fill, four glow colours, grid colour and alphas, grid angle, minor cell size (major lines every 5 cells), header colours, the red security wash (`go()` covers entry with it), the `MUSIC` key played on entering every slide of the band, and per-step semitone shifts (`prog[step % length]`) so the band's music varies along it. Current bands: intro and platform share GitHub brand green 15°, security dark red wash 45°, mindset and trust are soft grey (#c8d1da) concept slides with no grid (`light: true` sets `body.light`, which darkens slide text and the nav chrome; `go()` stages any light/dark switch: the old slide fades out, the background swaps, then the new slide enters), process blueprint blue 0°, cost gold -45°, engineering purple 30°, enterprise metallic grey -30° (wide cells), cao (Central Agentic Ops, research prototype) deep teal 60°, data violet 0° (fine cells), finale neutral. Other bands use a distinct hue and orientation; the background, grid angle and cell size ease between bands. Keep body text #e6edf3 ≥ 7:1 and muted #8b949e ≥ 4:1 against the brightest glow overlap. | ||
| - **Transitions:** derived from `group`. Siblings in a band use a reveal-style horizontal push (`slide-in`/`slide-out`); `show()` sets `--dx` to `100%` going forward, `-100%` going back, and `0%` on first load. Crossing into another band slides up (`up-in`/`up-out`) going forward and down (`down-in`/`down-out`) going back. All use the same 0.8 s curve. Every slide needs a `group`; never add per-slide transition overrides. The old slide keeps the `.leaving` class until a timeout clears it. | ||
| - **Audio isolation:** `master` is a persistent gain that feeds the compressor and delay. `out` is a per-slide bus. `show()` calls `sfx.cut()`, which fades the current bus and replaces it, so long themes cannot leak into the next slide. Any new sound must connect to `out`, or to `master` if it must persist across slides (as techno does). | ||
| - **Audio isolation:** `sfx` methods: `slide, band, step, cut, techno, pop, key, compile, review, notify, omen, route, mr, toggle, unlock`. `master` is a persistent gain that feeds the compressor and delay. `out` is a per-slide bus. `show()` calls `sfx.cut()`, which fades the current bus and replaces it, so long themes cannot leak into the next slide. Any new sound must connect to `out`, or to `master` if it must persist across slides (as techno does). |
| .wash.on { opacity: 1; } | ||
| .wash::after { content: ""; position: absolute; inset: 0; | ||
| background: radial-gradient(ellipse 55% 60% at 50% 58%, transparent 30%, #1c0204b0 70%, #050000f0 100%); } | ||
| .wash.on::after { animation: omen 7s ease-in-out infinite; } |
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Visual regression check: docs previewCaptured the built docs at `(localhost/redacted) inside the sandbox.
Comparison: no baseline is provisioned for this workflow, so no visual diff was performed. Status is unavailable, not unchanged. Accessibility (partial)
CleanupBrowser closed. Preview server stopped.
|
|
🎉 This pull request is included in a new release. Release: |


The cracktro player was coupled to talk-specific slides and animations. This refactor introduces a reusable runtime without changing the presentation.
runtime.js, exposed throughCracktroDeck.create(config).deck.js; pass them explicitly to the runtime.