slides-studio-mcp 0.1.0 → 0.1.1
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/guidance/design.md
CHANGED
|
@@ -12,7 +12,7 @@ Read this before creating or editing slides. Use it as a compact quality bar, th
|
|
|
12
12
|
- Use plain or outlined text for supporting copy. Use no more than two text treatments on one slide.
|
|
13
13
|
- Choose size by role rather than one universal value: titles `92–124`, subtitles `68–84`, body copy `54–68`, captions `44–52`. These are ranges, not fixed presets; render and adjust within them.
|
|
14
14
|
- Do not shrink dense copy below the body range to make it fit. Shorten it or split it across slides. Aim for roughly 3–7 body lines on a slide.
|
|
15
|
-
- Keep important content inside roughly `x: 0.06..0.86` and `y: 0.
|
|
15
|
+
- Keep important content inside roughly `x: 0.06..0.86` and `y: 0.14..0.78` when the TikTok overlay matters. Treat `y: 0.14` as a hard minimum for titles and prefer starting titles around `y: 0.16` so large or multiline headings remain comfortably below the top navigation. The right and bottom edges are occupied by interface controls and captions.
|
|
16
16
|
- Give text boxes generous width while composing. Per-line backgrounds include protected edge padding; if content or size changes, render again and use `fit_text_boxes` when the box itself should hug the content.
|
|
17
17
|
- Use short lines. Two to four lines for a headline is usually stronger than one dense paragraph.
|
|
18
18
|
- Keep strong contrast between copy and the image. Use black boxed backgrounds with white text or white boxed backgrounds with near-black text.
|
package/package.json
CHANGED
|
@@ -46,7 +46,7 @@ With only one agent and one editor, the server can create an implicit session fo
|
|
|
46
46
|
|
|
47
47
|
Inspect the assigned editor before editing and keep the returned IDs and revision. Work on the assigned project and slide. Pass `expectedRevision` for sensitive mutations. If `STALE_PROJECT` is returned, the browser has reloaded the canonical IndexedDB copy; inspect again and retry with current IDs. Prefer `apply_operations` for compact related changes while preserving logical order.
|
|
48
48
|
|
|
49
|
-
Use readable role-based type ranges: title `92–124`, subtitle `68–84`, body `54–68`, caption `44–52`. Do not solve dense copy by dropping below the body range; shorten it or split it across slides. `add_text` and `update_text` automatically preserve width and fit height around every wrapped line with safe padding, so do not waste calls on render-fit-render loops. For highlighted text, prefer `style: "boxed"` with `backgroundShape: "lines"`. Use `backgroundShape: "full"` only for a deliberate card. Call `fit_text_boxes` with `mode: "both"` only when you intentionally want the width to shrink too.
|
|
49
|
+
Use readable role-based type ranges: title `92–124`, subtitle `68–84`, body `54–68`, caption `44–52`. Place titles no closer to the top edge than `y: 0.14` and prefer `y: 0.16` so large or multiline headings clear TikTok's top navigation comfortably. Do not solve dense copy by dropping below the body range; shorten it or split it across slides. `add_text` and `update_text` automatically preserve width and fit height around every wrapped line with safe padding, so do not waste calls on render-fit-render loops. For highlighted text, prefer `style: "boxed"` with `backgroundShape: "lines"`. Use `backgroundShape: "full"` only for a deliberate card. Call `fit_text_boxes` with `mode: "both"` only when you intentionally want the width to shrink too.
|
|
50
50
|
|
|
51
51
|
After each meaningful composition or after a short batch, call `render_slide` and inspect the returned image. Fix clipping, spacing, contrast, unsafe TikTok-overlay placement, and weak hierarchy before claiming the slide is finished. Use `export_slide` or `export_project` only when local files are requested; do not overwrite existing files unless authorized.
|
|
52
52
|
|