editorbrain 0.56.0 → 0.58.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.
@@ -14,8 +14,19 @@ workflow and the user's review mode.
14
14
  saved styles by ID or name. If the ID is unknown, match the name in
15
15
  `list_style_packs`. Save a style only when the user asks (`Guardar como mi
16
16
  estilo`); the style's «Guarda estos documentos» refers to that.
17
+ Older web demos: an ID `showcase-<x>` is an alias (`aliases` in
18
+ `sourceStyles`; `list_style_packs` with `sourceId: showcase-<x>` returns the
19
+ full style). Also check `.editorbrain/styles/<alias>/`: a copy saved there is a
20
+ 4-file stub (style.json with empty tokens, style.md, effects.md, music.md),
21
+ not the full guide. Use the full style's guides and pinned code, keep the
22
+ user's own edits from the stub as preferences, tell the user the full guide
23
+ exists (the web can save it as `.editorbrain/styles/<id>/`) and never
24
+ overwrite or delete the stub.
17
25
  2. Code: `list_style_packs` with `sourceId: <id>`, then `get_style_source` with
18
- that exact `sourceVersion` and `sourceSha256`; verify bytes and SHA-256.
26
+ that exact `sourceVersion` and `sourceSha256` and `detail: summary`; verify
27
+ bytes and SHA-256. Read the guides one at a time with `get_style_source`
28
+ and `path` (each path in `documentPaths`, style.md first): no link is issued.
29
+ `legacy: true` only marks a former web demo turned full style; it is current.
19
30
  Version check: if the saved copy's resources.json pins an older version than
20
31
  `sourceVersion` (it appears in `previousVersions`), tell the user a newer
21
32
  version exists and keep using the saved pin until they ask to update. Never
@@ -34,11 +45,12 @@ workflow and the user's review mode.
34
45
  a voice or images instead of a clip (e.g. a sourced data series, a voice or
35
46
  a script to voice). Tell the user what to bring; ask only for what is missing.
36
47
  `ratio` says the composed format: `tall` 9:16, `wide` 16:9.
37
- 5. Fonts, SFX and demo media ship inside the implementation; never download
48
+ 5. Fonts, SFX and demo media ship inside the implementation (HyperFrames: except
49
+ GSAP, which its README fetches and verifies); never download
38
50
  them separately or save them as documents. A brand font that is not in the
39
51
  package comes from the brand's own font files (saved brand resources or the
40
52
  user): ask for it; never substitute another font silently.
41
- 6. MCP only, no CLI: there is no PROJECT-BINDING.md (only `styles prepare`
53
+ 6. MCP only, no CLI (motion scenes): there is no PROJECT-BINDING.md (only `styles prepare`
42
54
  writes it). Read the code with `inspect_source_package`: `lib/project-binding.js`
43
55
  is the brand/font guard and `lib/runtime.js` the adapted runtime; the style's
44
56
  «Código y recursos» section says what to bind. A host with files and a shell
@@ -46,6 +58,16 @@ workflow and the user's review mode.
46
58
  brand in the params, or install the CLI from the setup guide for `styles
47
59
  prepare`. Never claim a guarded copy you did not make.
48
60
 
61
+ HyperFrames styles (`engine: hyperframes` in `sourceStyles`): the code is a
62
+ HyperFrames project (`index.html` + `compositions/`), not a motion scene. There
63
+ is no `tools/render.mjs`, `lib/runtime.js` or `lib/project-binding.js`, and
64
+ `styles prepare` does not apply. Verify and extract the archive into a new
65
+ folder; follow its README «Render» section on a host with files (it fetches GSAP
66
+ with `npm pack` and checks its sha256, then `npm install`, `npm run check` and the
67
+ pinned HyperFrames render). Bind the brand in the compositions (colors,
68
+ `@font-face`, copy, timing). With MCP only, `inspect_source_package` reads it
69
+ unadapted. Step 6 above and the numbered steps below are for motion scenes.
70
+
49
71
  Remote chat without local extraction: read [editing through MCP](cloud-production.md#read-the-exact-style-or-motion-implementation).
50
72
  Use `inspect_source_package` for the same pinned implementation and guarded
51
73
  runtime. Inspection neither stores files nor executes code; use only an available,
@@ -69,9 +91,9 @@ steps below describe the local alternative; both obey the same adaptation rules.
69
91
  selected public guides. Verify byte count and SHA-256; save pins, never the URL.
70
92
  The CLI streams and verifies bytes and refuses overwrite; it does not extract,
71
93
  execute or install anything. Read returned documents if not already saved;
72
- preserve customized guides. Creator/Studio access is checked on both issue
73
- and download. Credits do not unlock premium styles. If denied, show the billing
74
- link and an available free/custom style; do not try old versions to bypass it.
94
+ preserve customized guides. Catalog styles are free on every plan, including
95
+ Free; issue and download only check the member's team permission. If denied,
96
+ explain that permission; do not try old versions to bypass it.
75
97
  4. Prepare a fresh working copy explicitly:
76
98
  ```sh
77
99
  editorbrain styles prepare <id> --style-version <version> --file source.tar.gz --out .editorbrain-local/<project>/styles-src/<id> --dir <workspace>
@@ -25,7 +25,8 @@ permissions and review; this specialty adds no stages.
25
25
  ## What a format owns and what it never owns
26
26
 
27
27
  The format owns beat functions, sync anchors, recurring grammar, fit criteria and
28
- structure-specific review. Resolve colors, fonts, logos, captions, audio, copy,
28
+ structure-specific review. Resolve colors, fonts, logos, captions (the brand's caption style from the
29
+ [caption library](../editorbrain/references/caption-styles.md) when one is set), audio, copy,
29
30
  language, output and safe areas from the user's context. Authentic footage,
30
31
  products, screenshots and logos retain their appearance.
31
32
 
@@ -90,7 +90,7 @@ Map these roles to the user's tokens and `design.md`, never to a reference's or
90
90
  |---|---|
91
91
  | Hook headline lockup | Dominant and accent styles, legibility treatment |
92
92
  | Item marker | Numeral and item name; persistent or entering per item |
93
- | Captions | The brand's caption rules |
93
+ | Captions | The brand's caption rules or its pinned caption style (caption library) |
94
94
  | Tags on real captures | Source or explanation labels |
95
95
  | Overlay cards | Numbers, badges, stamps, logo tiles |
96
96
  | Grade of illustrative stills | Consistent across the video |
@@ -91,7 +91,7 @@ Map these roles to the user's tokens and `design.md`; never to a reference's or
91
91
  | Keyword emphasis | |
92
92
  | Result graphics | Main object, secondary object, success state |
93
93
  | Background for chapter and result beats | Footage, solid, texture or the brand's ground |
94
- | Captions | The brand's caption rules |
94
+ | Captions | The brand's caption rules or its pinned caption style (caption library) |
95
95
 
96
96
  ## Failure modes seen in practice
97
97
 
@@ -52,6 +52,9 @@ Let this message determine objects, composition and choreography. Brand graphics
52
52
  use resolved roles; authentic footage, skin, screenshots and logos retain their
53
53
  identity. Reference settings are starting points, not customer requirements.
54
54
  Timing changes require updating affected captions, movement and sound cues.
55
+ Subtitles come from the caption library (`editorbrain captions`, see
56
+ [caption styles](../editorbrain/references/caption-styles.md)); do not rebuild a
57
+ library caption style as a custom motion scene.
55
58
 
56
59
  ## Review and preserve
57
60
 
@@ -82,7 +82,15 @@ listened, write that the sound character was not reviewed and leave the choice
82
82
  to the user's audio preferences. Never name or describe the reference's track
83
83
  as something to reuse.
84
84
 
85
- **Captions.** Always describe the caption behavior in `effects.md` and as
85
+ **Captions.** First compare the observed captions with the caption style
86
+ library (`editorbrain captions list` / `list_caption_styles`, see
87
+ [caption styles](../../editorbrain/references/caption-styles.md)). When one is
88
+ close, save the user's own caption style from it with `captions save <id> --from
89
+ <catalogId>@<version>` plus the observed differences (case, size, position,
90
+ colors, an OFL font or the user's licensed font) and name it after what it does.
91
+ Never copy the reference's font files, colors as brand or its caption text.
92
+
93
+ Always describe the caption behavior in `effects.md` and as
86
94
  tokens such as `caption.words_per_card` and `caption.position_y`: that is what
87
95
  any engine can follow. Add a `captions.json` preset only when both of these
88
96
  hold, following [captions](../../editorbrain/references/captions.md) and its