mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 07:19:19 +01:00
* feat(deck): presentations as data — @bitbaum/deckkit, and a deck in every investor room George: "generate a beautiful presentation, remember the tools and package them — people should generate whatever presentation they want and change it." Built from first principles and from a study of evig's hand-written decks (public/presentations/*): good design language, but only a developer could edit them, the engine was copied into every deck and drifted, the PDF was a raster, numbers were typed, nothing linked to one slide. packages/deckkit (@bitbaum/deckkit 0.1.0, workspace package): - A deck is data: 9 layouts (cover, statement, points, numbers, chart, compare, columns, image, closing), stable slide ids, notes, sources. - normalizeDeck: anything stored → a deck that renders; https-only links; enforced LIMITS keep slides short. - generateDeck: drafts the investor arc from a source — nothing invented; bindDeck fills `bind: facts | pace | roadmap` slides from live data. - /react: Slide (one frame, identical at any size via container units) and DeckPresenter (keys, swipe, #3 deep links, notes on S, print to PDF). - styles.css: evig's design language as --dk-* tokens, dark + light. - README: the writing rules (claim titles, one accent, no fabrication). OrangeCat: - project_rooms.deck (migration, expand-only). - /projects/<id>/room/deck: generate a first draft, edit every slide (layout, words, figures, order), theme + accent, present with notes. - /room/<token>/deck: the reader's presenter, live-bound; counts as a deck open by the one rule (countsAsOpen). "Open the deck" goes there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(deckkit): linear text scans, not backtracking patterns, over slide text CodeQL js/polynomial-redos flagged the sentence splitter and the "Lead: rest" parser: user text through /[^.!?]+[.!?]+(?=\s|$)/ runs in polynomial time on a crafted string. Replaced with plain linear scans (sentences, squash, an indexOf for the lead, a loop for trailing punctuation); a test feeds 50k-character hostile strings and requires under 500ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>