@sundownreel/mcp 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +65 -2
- package/brand.json +29 -0
- package/chunks/chunk-ONI7QK5B.mjs +63 -0
- package/chunks/chunk-YUE6XWVB.mjs +2 -0
- package/dsl/index.mjs +2 -0
- package/dsl/semantic.mjs +5 -0
- package/dsl/types.ts +240 -0
- package/engine/fonts/ArchivoBlack.ttf +0 -0
- package/engine/fonts/Caveat-Bold.ttf +0 -0
- package/engine-geo/data-manifest.json +460 -0
- package/engine-remotion/public/music/README.md +6 -0
- package/engine-remotion/public/music/bed-curious.mp3 +0 -0
- package/engine-remotion/public/music/bed-explainer.mp3 +0 -0
- package/engine-remotion/public/music/bed-reflective.mp3 +0 -0
- package/engine-remotion/public/music/bed-tense.mp3 +0 -0
- package/engine-remotion/public/music/bed-upbeat.mp3 +0 -0
- package/engine-remotion/public/music/music-index.json +52 -0
- package/engine-remotion/public/sfx/README.md +6 -0
- package/engine-remotion/public/sfx/alarm-buzz.mp3 +0 -0
- package/engine-remotion/public/sfx/beep-happy.mp3 +0 -0
- package/engine-remotion/public/sfx/boing-small.mp3 +0 -0
- package/engine-remotion/public/sfx/cash-register.mp3 +0 -0
- package/engine-remotion/public/sfx/chart-draw.mp3 +0 -0
- package/engine-remotion/public/sfx/click-key.mp3 +0 -0
- package/engine-remotion/public/sfx/click-sharp.mp3 +0 -0
- package/engine-remotion/public/sfx/click-switch.mp3 +0 -0
- package/engine-remotion/public/sfx/cloth-swish.mp3 +0 -0
- package/engine-remotion/public/sfx/counter-tick.mp3 +0 -0
- package/engine-remotion/public/sfx/ding.mp3 +0 -0
- package/engine-remotion/public/sfx/error-beep.mp3 +0 -0
- package/engine-remotion/public/sfx/glass-ping.mp3 +0 -0
- package/engine-remotion/public/sfx/glass-tick.mp3 +0 -0
- package/engine-remotion/public/sfx/impact-light.mp3 +0 -0
- package/engine-remotion/public/sfx/impact-punch.mp3 +0 -0
- package/engine-remotion/public/sfx/impact-soft.mp3 +0 -0
- package/engine-remotion/public/sfx/impact-thud.mp3 +0 -0
- package/engine-remotion/public/sfx/impact-tin.mp3 +0 -0
- package/engine-remotion/public/sfx/impact-wood.mp3 +0 -0
- package/engine-remotion/public/sfx/office-ambience-1.mp3 +0 -0
- package/engine-remotion/public/sfx/paper-feed.mp3 +0 -0
- package/engine-remotion/public/sfx/paper-rustle.mp3 +0 -0
- package/engine-remotion/public/sfx/paper-slide.mp3 +0 -0
- package/engine-remotion/public/sfx/paper-tear.mp3 +0 -0
- package/engine-remotion/public/sfx/pencil-scratch.mp3 +0 -0
- package/engine-remotion/public/sfx/pop-drop.mp3 +0 -0
- package/engine-remotion/public/sfx/pop-pluck.mp3 +0 -0
- package/engine-remotion/public/sfx/pop.mp3 +0 -0
- package/engine-remotion/public/sfx/printer-chatter.mp3 +0 -0
- package/engine-remotion/public/sfx/receipt-tick.mp3 +0 -0
- package/engine-remotion/public/sfx/room-tone.mp3 +0 -0
- package/engine-remotion/public/sfx/sfx-index.json +322 -0
- package/engine-remotion/public/sfx/slide-whoosh.mp3 +0 -0
- package/engine-remotion/public/sfx/stamp-thud.mp3 +0 -0
- package/engine-remotion/public/sfx/stinger-8bit.mp3 +0 -0
- package/engine-remotion/public/sfx/stinger-hit.mp3 +0 -0
- package/engine-remotion/public/sfx/stinger-pizzi.mp3 +0 -0
- package/engine-remotion/public/sfx/stinger-sax.mp3 +0 -0
- package/engine-remotion/public/sfx/stinger-steel.mp3 +0 -0
- package/engine-remotion/public/sfx/sweat-drop.mp3 +0 -0
- package/engine-remotion/public/sfx/swipe.mp3 +0 -0
- package/engine-remotion/public/sfx/tick-crisp.mp3 +0 -0
- package/engine-remotion/public/sfx/tick-soft.mp3 +0 -0
- package/engine-remotion/public/sfx/type-click.mp3 +0 -0
- package/engine-remotion/public/sfx/typewriter-soft.mp3 +0 -0
- package/engine-remotion/public/sfx/ui-confirm.mp3 +0 -0
- package/engine-remotion/public/sfx/wheel-roll.mp3 +0 -0
- package/engine-remotion/public/sfx/whoosh-rise.mp3 +0 -0
- package/engine-remotion/public/sfx/whoosh-ui-rise.mp3 +0 -0
- package/engine-remotion/public/sfx/whoosh.mp3 +0 -0
- package/library/music/bed.wav +0 -0
- package/library/sfx/thud.wav +0 -0
- package/library/sfx/tick.wav +0 -0
- package/library/sfx/whoosh.wav +0 -0
- package/package.json +38 -4
- package/pipeline/scripts/master_audio.sh +12 -0
- package/prompts/engine-engineer.md +26 -0
- package/prompts/fact-checker.md +22 -0
- package/prompts/idea-scout.md +21 -0
- package/prompts/library-artist.md +15 -0
- package/prompts/qa.md +20 -0
- package/prompts/researcher.md +22 -0
- package/prompts/shot-dsl-writer.md +63 -0
- package/prompts/style-shot-writer.md +46 -0
- package/registry/styles.mjs +89 -0
- package/render/fonts/Anton-Regular.ttf +0 -0
- package/render/fonts/ArchivoBlack.ttf +0 -0
- package/render/fonts/Caveat-Bold.ttf +0 -0
- package/render/fonts/Caveat.ttf +0 -0
- package/render/fonts/Cinzel-Black.ttf +0 -0
- package/render/fonts/Cinzel-SemiBold.ttf +0 -0
- package/render/fonts/CormorantGaramond-MediumItalic.ttf +0 -0
- package/render/fonts/CourierPrime-Regular.ttf +0 -0
- package/render/fonts/IBMPlexMono-SemiBold.ttf +0 -0
- package/render/fonts/IBMPlexSerif-SemiBold.ttf +0 -0
- package/render/fonts/Kalam-Bold.ttf +0 -0
- package/render/fonts/KaushanScript-Regular.ttf +0 -0
- package/render/fonts/LibreBaskerville-Bold.ttf +0 -0
- package/render/fonts/LibreBaskerville-Italic.ttf +0 -0
- package/render/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/render/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/render/fonts/README.md +15 -0
- package/render/fonts/ZillaSlab-Bold-Lining.ttf +0 -0
- package/render/fonts/licenses/Anton-OFL.txt +93 -0
- package/render/fonts/licenses/ArchivoBlack-OFL.txt +93 -0
- package/render/fonts/licenses/Caveat-OFL.txt +93 -0
- package/render/fonts/licenses/Cinzel-OFL.txt +93 -0
- package/render/fonts/licenses/CormorantGaramond-OFL.txt +93 -0
- package/render/fonts/licenses/CourierPrime-OFL.txt +93 -0
- package/render/fonts/licenses/IBMPlexMono-OFL.txt +93 -0
- package/render/fonts/licenses/IBMPlexSerif-OFL.txt +93 -0
- package/render/fonts/licenses/Kalam-OFL.txt +93 -0
- package/render/fonts/licenses/KaushanScript-OFL.txt +95 -0
- package/render/fonts/licenses/LibreBaskerville-OFL.txt +93 -0
- package/render/fonts/licenses/PlayfairDisplay-OFL.txt +93 -0
- package/render/fonts/licenses/ZillaSlab-OFL.txt +93 -0
- package/render/render.mjs +59539 -0
- package/render3d/data/footprints/README.md +27 -0
- package/render3d/data/footprints/test-district.geojson +1 -0
- package/render3d/fonts/ArchivoBlack.ttf +0 -0
- package/render3d/fonts/IBMPlexMono-400.ttf +0 -0
- package/render3d/fonts/IBMPlexMono-600.ttf +0 -0
- package/render3d/fonts/Inter-400.ttf +0 -0
- package/render3d/fonts/Inter-600.ttf +0 -0
- package/render3d/fonts/Inter-800.ttf +0 -0
- package/render3d/fonts/licenses/ArchivoBlack-OFL.txt +93 -0
- package/render3d/fonts/licenses/BlockfolkCaps-OFL.txt +96 -0
- package/render3d/fonts/licenses/IBMPlexMono-OFL.txt +93 -0
- package/render3d/fonts/licenses/Inter-OFL.txt +93 -0
- package/render3d/render.mjs +41191 -0
- package/render3d/runtime.js +4532 -0
- package/rendergeo/fonts/Anton-Regular.ttf +0 -0
- package/rendergeo/fonts/ArchivoBlack.ttf +0 -0
- package/rendergeo/fonts/BarlowCondensed-Bold.ttf +0 -0
- package/rendergeo/fonts/BarlowCondensed-SemiBold.ttf +0 -0
- package/rendergeo/fonts/Caveat-Bold.ttf +0 -0
- package/rendergeo/fonts/Caveat.ttf +0 -0
- package/rendergeo/fonts/Cinzel-Black.ttf +0 -0
- package/rendergeo/fonts/Cinzel-SemiBold.ttf +0 -0
- package/rendergeo/fonts/CormorantGaramond-Medium.ttf +0 -0
- package/rendergeo/fonts/CormorantGaramond-MediumItalic.ttf +0 -0
- package/rendergeo/fonts/CormorantGaramond-SemiBold.ttf +0 -0
- package/rendergeo/fonts/CourierPrime-Regular.ttf +0 -0
- package/rendergeo/fonts/IBMPlexMono-Medium.ttf +0 -0
- package/rendergeo/fonts/IBMPlexMono-Regular.ttf +0 -0
- package/rendergeo/fonts/IBMPlexMono-SemiBold.ttf +0 -0
- package/rendergeo/fonts/IBMPlexSansCondensed-Medium.ttf +0 -0
- package/rendergeo/fonts/IBMPlexSansCondensed-SemiBold.ttf +0 -0
- package/rendergeo/fonts/IBMPlexSerif-SemiBold.ttf +0 -0
- package/rendergeo/fonts/Kalam-Bold.ttf +0 -0
- package/rendergeo/fonts/KaushanScript-Regular.ttf +0 -0
- package/rendergeo/fonts/LibreBaskerville-Bold.ttf +0 -0
- package/rendergeo/fonts/LibreBaskerville-Italic.ttf +0 -0
- package/rendergeo/fonts/OldStandard-Bold.ttf +0 -0
- package/rendergeo/fonts/OldStandard-Italic.ttf +0 -0
- package/rendergeo/fonts/OldStandard-Regular.ttf +0 -0
- package/rendergeo/fonts/PlayfairDisplay-Bold.ttf +0 -0
- package/rendergeo/fonts/PlayfairDisplay-Regular.ttf +0 -0
- package/rendergeo/fonts/ZillaSlab-Bold-Lining.ttf +0 -0
- package/rendergeo/render-geo.mjs +45063 -0
- package/server.js +293 -0
- package/studio-cli/bin/sundownreel-gate.mjs +205 -0
- package/studio-cli/src/gate.mjs +704 -0
- package/styles/README.md +32 -0
- package/styles/broadsheet/STYLE.md +5 -0
- package/styles/broadsheet/style.json +11 -0
- package/styles/cartoon/STYLE.md +37 -0
- package/styles/cartoon/style.json +12 -0
- package/styles/chalkline/STYLE.md +30 -0
- package/styles/chalkline/style.json +11 -0
- package/thumbnails/dist/make.mjs +62995 -0
- package/vendor/gsap.min.js +11 -0
package/styles/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Styles
|
|
2
|
+
|
|
3
|
+
A style is a folder under `mcp/styles/<id>/`.
|
|
4
|
+
|
|
5
|
+
Required:
|
|
6
|
+
|
|
7
|
+
- `style.json` with `id`, `name`, `tier` (`standard`, `max` or `operator`), `status` (`ready` or `planned`), `summary`, `fps`, `width`, `height`, `aspect`.
|
|
8
|
+
- `STYLE.md` describing the picture, type, motion, and how a shot is chosen.
|
|
9
|
+
|
|
10
|
+
When the style can render:
|
|
11
|
+
|
|
12
|
+
1. Add a function `(frame: ShotFrame) => string` that returns one HyperFrames HTML document.
|
|
13
|
+
2. Register it in the `renderers` map in `mcp/src/styles.ts`.
|
|
14
|
+
3. Set `status` to `ready`.
|
|
15
|
+
|
|
16
|
+
The HTML document must include a root element with `data-composition-id`, `data-start="0"`, `data-duration`, `data-width`, and `data-height`, and a paused GSAP timeline on `window.__timelines` under that same id. Copy `gsap.min.js` is added beside `index.html` at render time.
|
|
17
|
+
|
|
18
|
+
Standard licenses can render styles whose `tier` is `standard`. Max licenses can render every ready style except `operator` ones. A planned style is listed by `list_styles` and refused by `render_shot` with a pointer back to this file.
|
|
19
|
+
|
|
20
|
+
Chalkline is the one complete style. Broadsheet is the empty slot that shows the pattern.
|
|
21
|
+
|
|
22
|
+
## Profiles
|
|
23
|
+
|
|
24
|
+
`style.json` may set `profile`. The default, `chalkline`, is the project pipeline above (`project_*`,
|
|
25
|
+
one shot per line, HyperFrames). `cartoon` (`mcp/styles/cartoon/`) is the Reel Forge episode pipeline:
|
|
26
|
+
Shot DSL episodes under `<studio>/videos/<id>/`, driven by the `episode_*` and `shots_*` tools
|
|
27
|
+
(`mcp/src/cartoon/`) and rendered by `@reelforge/engine-resvg` through `mcp/src/cartoon/renderer.ts`.
|
|
28
|
+
`project_create` refuses a cartoon-profile style.
|
|
29
|
+
|
|
30
|
+
`tier` may also be `operator`: a style that no subscription tier unlocks. Operator styles are listed and usable
|
|
31
|
+
only in operator mode (`SUNDOWNREEL_OPERATOR=1` plus the local gate key; see `mcp/src/cartoon/operator.ts`). The
|
|
32
|
+
cartoon style is operator-only until a customer sibling style ships (OPEN-DECISIONS #33).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "broadsheet",
|
|
3
|
+
"name": "Broadsheet",
|
|
4
|
+
"tier": "max",
|
|
5
|
+
"status": "planned",
|
|
6
|
+
"summary": "A newspaper-desk documentary: columns, a pull quote, and a slow push across a printed page. Not built yet.",
|
|
7
|
+
"fps": 24,
|
|
8
|
+
"width": 1920,
|
|
9
|
+
"height": 1080,
|
|
10
|
+
"aspect": "16:9"
|
|
11
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Cartoon (Reel Forge)
|
|
2
|
+
|
|
3
|
+
A paper-cutout explainer cartoon rendered entirely from code. Every frame is SVG produced by the
|
|
4
|
+
`@reelforge/engine` React components and rasterised headless by `@reelforge/engine-resvg` (resvg, then
|
|
5
|
+
FFmpeg). No browser, no Remotion, no image or video generation, no network during render.
|
|
6
|
+
|
|
7
|
+
## How it differs from Chalkline
|
|
8
|
+
|
|
9
|
+
| | Chalkline | Cartoon |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| Unit of work | project (`project_*` tools) | episode folder `videos/<id>/` (`episode_*`, `shots_*` tools) |
|
|
12
|
+
| Shots | one per script line | ~2.2 s shots in the Shot DSL v1 (`07-shots/shots.json`) |
|
|
13
|
+
| Renderer | HyperFrames + Chrome | `@reelforge/engine-resvg` CLI (`reelforge-render`) |
|
|
14
|
+
| Gates | none | four human gates, approved only in the Studio or CLI |
|
|
15
|
+
| Facts | free-text brief | `facts.csv` with fact ids; every on-screen number needs an eligible fact |
|
|
16
|
+
|
|
17
|
+
## Picture
|
|
18
|
+
|
|
19
|
+
- 2.5D world: sets with named camera presets and marks; a puppet rig (rotation only at pivots, instant face
|
|
20
|
+
swaps, mitten hands, legs never rotate with the torso).
|
|
21
|
+
- In-world text only (signs, screens, receipts, LEDs, charts, cards). No burned-in subtitles.
|
|
22
|
+
- Style targets: content shots mean 2.2–2.4 s, 29–31 segments per minute, ~16 % non-cut transitions,
|
|
23
|
+
2–3 SFX onsets per second. `shots_compile` reports them.
|
|
24
|
+
|
|
25
|
+
## Rules the tools enforce
|
|
26
|
+
|
|
27
|
+
- `shots_validate`: Shot DSL schema, library ids (`library_index`), marks and presets, chart data, and
|
|
28
|
+
facts. A number on screen without a factId, or with a fact that is not `verified`/`computed`
|
|
29
|
+
(`scenario` only when `episode.json` flags the episode hypothetical), is an error.
|
|
30
|
+
- `shots_save`, `shots_patch` and `render_animatic` need Gate 2 approved and fresh; `render_final` needs Gate 3.
|
|
31
|
+
- There is no upload, publish, approve or override tool in the MCP.
|
|
32
|
+
|
|
33
|
+
The engine's cast and sets belong to the channel. A sibling cartoon style for customers is a later phase
|
|
34
|
+
(OPEN-DECISIONS #33). Until then this style is tier `operator`: no subscription tier unlocks it (Max included).
|
|
35
|
+
It is available only in operator mode, on the operator's machine: `SUNDOWNREEL_OPERATOR=1` in the MCP env plus the
|
|
36
|
+
local gate approval public key (`$SUNDOWNREEL_HOME/keys/gate-ed25519.pub`, from `sundownreel-gate key`). Otherwise
|
|
37
|
+
the cartoon tools are not registered and `list_styles` does not show this style (`mcp/src/cartoon/operator.ts`).
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "cartoon",
|
|
3
|
+
"name": "Cartoon (Reel Forge)",
|
|
4
|
+
"tier": "operator",
|
|
5
|
+
"status": "ready",
|
|
6
|
+
"profile": "cartoon",
|
|
7
|
+
"summary": "Operator only (Jacob's channel; not sold on any tier, decision #33). Paper-cutout 2.5D explainer cartoon. Episodes are written in the Shot DSL (~2.2 s shots), validated against the engine library and fact table, and rendered headless with SVG to resvg. Driven by the episode_*, facts_*, script_*, shots_* and render_* cartoon tools, not project_*.",
|
|
8
|
+
"fps": 30,
|
|
9
|
+
"width": 1920,
|
|
10
|
+
"height": 1080,
|
|
11
|
+
"aspect": "16:9"
|
|
12
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Chalkline
|
|
2
|
+
|
|
3
|
+
A stylized 2D explainer. Each shot is one script line on a warm paper field, with a geometric diagram on the left and the sentence on the right.
|
|
4
|
+
|
|
5
|
+
## Picture
|
|
6
|
+
|
|
7
|
+
- Frame: 1920×1080, 24 fps, by default. Previews render at 960×540.
|
|
8
|
+
- Paper `#f3ecdf`, ink `#1c1915`, copper `#c4622d`.
|
|
9
|
+
- Type: Liberation Serif for the line, Liberation Sans for the labels. Both ship with common Linux desktops, so the render does not fetch a font.
|
|
10
|
+
- Motion: a copper rule draws on, the diagram strokes draw themselves, the sentence rises into place. The timeline is a paused GSAP timeline registered as `window.__timelines.shot`, which is the HyperFrames contract.
|
|
11
|
+
|
|
12
|
+
## Diagrams
|
|
13
|
+
|
|
14
|
+
The motif is chosen from the line. It is a small original drawing, not stock footage.
|
|
15
|
+
|
|
16
|
+
| Motif | When the line mentions | Drawing |
|
|
17
|
+
| --- | --- | --- |
|
|
18
|
+
| spark | nothing more specific | A point and eight ticks |
|
|
19
|
+
| pressure | steam, force, kettle, weight | A vessel, a spout, two curls of steam |
|
|
20
|
+
| path | opening, narrow, through | Two rails that converge on a gap |
|
|
21
|
+
| sound | sing, whistle, hears | A speaker and three arcs |
|
|
22
|
+
| balance | cost, price, equal | A beam on a fulcrum |
|
|
23
|
+
|
|
24
|
+
## Duration
|
|
25
|
+
|
|
26
|
+
Before a voice exists, duration is the word count divided by 2.4, clamped between 2 and 8 seconds. After `generate_voice`, the shot grows to the narration length when that is longer.
|
|
27
|
+
|
|
28
|
+
## Adding a sibling style
|
|
29
|
+
|
|
30
|
+
Copy this folder, change `style.json`, and register a renderer in `mcp/src/styles.ts`. Set `status` to `planned` until the renderer exists. Set `tier` to `max` to keep it off Standard. See `mcp/styles/README.md`.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "chalkline",
|
|
3
|
+
"name": "Chalkline",
|
|
4
|
+
"tier": "standard",
|
|
5
|
+
"status": "ready",
|
|
6
|
+
"summary": "A paper-and-ink explainer. One geometric diagram and one spoken sentence per shot.",
|
|
7
|
+
"fps": 24,
|
|
8
|
+
"width": 1920,
|
|
9
|
+
"height": 1080,
|
|
10
|
+
"aspect": "16:9"
|
|
11
|
+
}
|