oficina / slides Public

Slides: scenes, scene blocks and clip blocks in the document

Scenes and clips task 2. A deck-level scenes map (name, author, code,
states, words, data, stills) with add_scene, set_scene and remove_scene
in the core, the fixtures and Go, plus the scene and clip block types.
Refusals: code and still refs as 64 hex digits, at least one state,
state ids used once, data up to 2 MiB of canonical JSON, a scene block
naming a scene and states the deck has with from not after to, a clip's
play one of press, loop, once. A removed scene or state leaves the
blocks that name it as they were.

A scene's version (R1) is computed, not stored: SHA-256 over the code,
canonical JSON of the data and the sorted words, with hand-written
vectors the core, the browser and Go agree on. deck.Presses takes the
deck's scenes: a scene block's states after from up to to are presses
like an each list (R2), a clip on a press takes one (R3), with vectors.

The server sets a scene's author from the acting principal: the ops
path stamps the batch, live sync appends a stamp row after the poster's
and puts back an author changed on its own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 53286533ba96055450dd2b66576e45623d7227c2 parent ea92e73
48 files changed, +3,095 −122
  • core/src/lib.rs +2 −0
  • core/src/ops.rs +284 −4
  • core/src/scene.rs +561 −0
  • core/src/schema.rs +8 −2
  • core/src/view.rs +69 −0
  • core/tests/scenes.rs +434 −0
  • docs/api.md +87 −3
  • fixtures/data/scenes.json +27 −0
  • fixtures/moves.mjs +4 −4
  • fixtures/ops-apply.mjs +3 −0
  • fixtures/ops-model.mjs +13 −4
  • fixtures/ops-parse.mjs +12 −0
  • fixtures/presses.mjs +43 −13
  • fixtures/presses.test.mjs +1 −1
  • fixtures/scene-version.mjs +55 −0
  • fixtures/scenes.mjs +285 −0
  • fixtures/scenes.test.mjs +268 −0
  • fixtures/vectors/presses.json +10 −1
  • fixtures/vectors/scene-version.json +46 −0
  • fixtures/vectors/scenes.view.json +179 −0
  • fixtures/vectors/scenes.yjs binary
  • fixtures/view.mjs +11 −1
  • fixtures/view.test.mjs +31 −0
  • fixtures/ydoc.mjs +4 −2
  • internal/slides/api.go +4 −0
  • internal/slides/core/testdata/slides_core.wasm binary
  • internal/slides/core/testdata/slides_core.wasm.stamp +2 −2
  • internal/slides/credits/assets.json +3 −3
  • internal/slides/deck/deck.go +4 −0
  • internal/slides/deck/presses.go +51 −12
  • internal/slides/deck/presses_test.go +7 −6
  • internal/slides/deck/scenes.go +195 −0
  • internal/slides/deck/scenes_test.go +79 −0
  • internal/slides/deck/talk.go +3 −3
  • internal/slides/decks.go +6 −0
  • internal/slides/editor.go +2 −2
  • internal/slides/live.go +60 −28
  • internal/slides/presenter_window.go +1 −1
  • internal/slides/presenting_position.go +3 −3
  • internal/slides/presenting_talk.go +1 −1
  • internal/slides/render/render.go +1 −1
  • internal/slides/render/reveal.go +4 −3
  • internal/slides/scene_author.go +102 −0
  • internal/slides/static/editor.86c1decabecf914e.js +18 −0
  • internal/slides/static/editor.b84fc015e0f3efec.js +0 −18
  • internal/slides/static/presenter.2f6958aa6804100e.js +0 −4
  • internal/slides/static/presenter.898ea955958ffad6.js +4 −0
  • internal/slidestest/scenes_test.go +108 −0
core/src/lib.rs

Loading diff…

core/src/ops.rs

Loading diff…

core/src/scene.rs

Loading diff…

core/src/schema.rs

Loading diff…

core/src/view.rs

Loading diff…

core/tests/scenes.rs

Loading diff…

docs/api.md

Loading diff…

fixtures/data/scenes.json

Loading diff…

fixtures/moves.mjs

Loading diff…

fixtures/ops-apply.mjs

Loading diff…

fixtures/ops-model.mjs

Loading diff…

fixtures/ops-parse.mjs

Loading diff…

fixtures/presses.mjs

Loading diff…

fixtures/presses.test.mjs

Loading diff…

fixtures/scene-version.mjs

Loading diff…

fixtures/scenes.mjs

Loading diff…

fixtures/scenes.test.mjs

Loading diff…

fixtures/vectors/presses.json

Loading diff…

fixtures/vectors/scene-version.json

Loading diff…

fixtures/vectors/scenes.view.json

Loading diff…

fixtures/vectors/scenes.yjs

Loading diff…

fixtures/view.mjs

Loading diff…

fixtures/view.test.mjs

Loading diff…

fixtures/ydoc.mjs

Loading diff…

internal/slides/api.go

Loading diff…

internal/slides/core/testdata/slides_core.wasm

Loading diff…

internal/slides/core/testdata/slides_core.wasm.stamp

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/deck/deck.go

Loading diff…

internal/slides/deck/presses.go

Loading diff…

internal/slides/deck/presses_test.go

Loading diff…

internal/slides/deck/scenes.go

Loading diff…

internal/slides/deck/scenes_test.go

Loading diff…

internal/slides/deck/talk.go

Loading diff…

internal/slides/decks.go

Loading diff…

internal/slides/editor.go

Loading diff…

internal/slides/live.go

Loading diff…

internal/slides/presenter_window.go

Loading diff…

internal/slides/presenting_position.go

Loading diff…

internal/slides/presenting_talk.go

Loading diff…

internal/slides/render/render.go

Loading diff…

internal/slides/render/reveal.go

Loading diff…

internal/slides/scene_author.go

Loading diff…

internal/slides/static/editor.86c1decabecf914e.js

Loading diff…

internal/slides/static/editor.b84fc015e0f3efec.js

Loading diff…

internal/slides/static/presenter.2f6958aa6804100e.js

Loading diff…

internal/slides/static/presenter.898ea955958ffad6.js

Loading diff…

internal/slidestest/scenes_test.go

Loading diff…