@cliangdev/conductor 0.42.1 → 0.44.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/assets/claude/agents/conductor-marketing-art-director.md +4 -0
- package/assets/claude/skills/conductor-marketing-create/SKILL.md +14 -6
- package/assets/claude/skills/conductor-marketing-create/references/brand-kit-setup.md +32 -1
- package/assets/claude/skills/conductor-marketing-create/references/direct.md +9 -4
- package/assets/claude/skills/conductor-marketing-create/references/slideshow-formats.md +52 -5
- package/assets/claude/skills/conductor-marketing-create/references/team-run.md +22 -8
- package/assets/cli-manifest.json +11 -3
- package/dist/lib/slideshow/compose.d.ts +8 -0
- package/dist/lib/slideshow/compose.d.ts.map +1 -1
- package/dist/lib/slideshow/compose.js +10 -3
- package/dist/lib/slideshow/compose.js.map +1 -1
- package/dist/lib/slideshow/css.d.ts +7 -2
- package/dist/lib/slideshow/css.d.ts.map +1 -1
- package/dist/lib/slideshow/css.js +25 -11
- package/dist/lib/slideshow/css.js.map +1 -1
- package/dist/lib/slideshow/html.d.ts +2 -1
- package/dist/lib/slideshow/html.d.ts.map +1 -1
- package/dist/lib/slideshow/html.js +33 -8
- package/dist/lib/slideshow/html.js.map +1 -1
- package/dist/lib/slideshow/index.d.ts +1 -0
- package/dist/lib/slideshow/index.d.ts.map +1 -1
- package/dist/lib/slideshow/index.js +1 -0
- package/dist/lib/slideshow/index.js.map +1 -1
- package/dist/lib/slideshow/spec.d.ts +3 -0
- package/dist/lib/slideshow/spec.d.ts.map +1 -1
- package/dist/lib/slideshow/spec.js +3 -0
- package/dist/lib/slideshow/spec.js.map +1 -1
- package/dist/lib/slideshow/style.d.ts +108 -0
- package/dist/lib/slideshow/style.d.ts.map +1 -0
- package/dist/lib/slideshow/style.js +200 -0
- package/dist/lib/slideshow/style.js.map +1 -0
- package/dist/lib/slug.d.ts +13 -0
- package/dist/lib/slug.d.ts.map +1 -0
- package/dist/lib/slug.js +26 -0
- package/dist/lib/slug.js.map +1 -0
- package/dist/mcp/index.d.ts +615 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +58 -5
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools/creative-drafts.d.ts +0 -1
- package/dist/mcp/tools/creative-drafts.d.ts.map +1 -1
- package/dist/mcp/tools/creative-drafts.js +1 -4
- package/dist/mcp/tools/creative-drafts.js.map +1 -1
- package/dist/mcp/tools/creative-images.d.ts.map +1 -1
- package/dist/mcp/tools/creative-images.js +2 -1
- package/dist/mcp/tools/creative-images.js.map +1 -1
- package/dist/mcp/tools/creatives.d.ts +25 -0
- package/dist/mcp/tools/creatives.d.ts.map +1 -1
- package/dist/mcp/tools/creatives.js +98 -6
- package/dist/mcp/tools/creatives.js.map +1 -1
- package/dist/mcp/tools/slideshow.d.ts +12 -1
- package/dist/mcp/tools/slideshow.d.ts.map +1 -1
- package/dist/mcp/tools/slideshow.js +59 -3
- package/dist/mcp/tools/slideshow.js.map +1 -1
- package/package.json +1 -1
|
@@ -56,6 +56,10 @@ and nothing else; the orchestrator passes it to `compose_slideshow`. Rules:
|
|
|
56
56
|
text sits between y 16 and 75. No logo, badge or offer on any slide. No invented numbers.
|
|
57
57
|
- In `direction.md`, the Publish assets section still lists the cover frame (card 1), alt text for
|
|
58
58
|
every slide in order, and the sound. Alt text describes each slide for someone who cannot see it.
|
|
59
|
+
- If the run chose a slideshow look, the object may also carry a top-level `style` (the fields in
|
|
60
|
+
`references/slideshow-formats.md`, "Style") and the orchestrator is given `brandKitId`; write colours
|
|
61
|
+
and sizes only from that choice, never invent a look. The orchestrator passes `brandKitId`/`style` to
|
|
62
|
+
`compose_slideshow` and the resolved style as `slideStyle` on the preview. Absent: native.
|
|
59
63
|
- Do not use `creative-spec.json` for it, and do not write layout, theme or headline fields.
|
|
60
64
|
|
|
61
65
|
## creative-spec.json (RENDER only; STILL and MOTION)
|
|
@@ -15,9 +15,17 @@ do not post it.
|
|
|
15
15
|
|
|
16
16
|
## Rules that hold in both modes
|
|
17
17
|
|
|
18
|
-
- **Brand kit first.**
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
- **Brand kit first.** A workspace may have several kits. If the person named a brand or kit, call
|
|
19
|
+
`get_brand_kit` with that `kitId`. Otherwise call it with no `kitId`; if the response has a
|
|
20
|
+
non-empty `otherKits`, ask once with `AskUserQuestion` which kit to use: the default first, labelled
|
|
21
|
+
as the default, then up to 3 others (up to 4 options; "Other" covers the rest by name). Pass the
|
|
22
|
+
chosen kit's id as `brandKitId` on every `preview_creative_draft` and `create_creative` call for
|
|
23
|
+
the run (the default kit needs none), and take the Knowledge page and copy rules from that same kit. If the chosen kit's
|
|
24
|
+
`configured` is `false` the brand has never been set up: follow `references/brand-kit-setup.md`
|
|
25
|
+
and offer setup before making anything. Copy and visuals come from the Brand Kit and its Knowledge
|
|
26
|
+
page, not from invention. For slideshows the *style source* (native, or a kit's `slideshowStyle`)
|
|
27
|
+
is a separate choice: that kit's id goes only to `compose_slideshow`, never onto the Creative
|
|
28
|
+
unless it is also the brand kit (`references/slideshow-formats.md`, "Style").
|
|
21
29
|
- **Draft first, save after approval.** `preview_creative_draft` renders on this machine and writes
|
|
22
30
|
nothing to Conductor. Only after the person has seen the draft and approved it does
|
|
23
31
|
`commit_creative_draft` upload the media, save the Creative and run the full render. Never commit
|
|
@@ -29,7 +37,7 @@ do not post it.
|
|
|
29
37
|
|
|
30
38
|
| The person has | Mode | Read |
|
|
31
39
|
|---|---|---|
|
|
32
|
-
| A headline, photo, clip or finished images, an existing Creative to vary,
|
|
40
|
+
| A headline, photo, clip or finished images, an existing Creative to vary, wants the brand set up, or wants a kit style made from slides they like ("Make a kit style from slides") | **Direct** | `references/direct.md` |
|
|
33
41
|
| A goal or topic ("a post about X for Y") and wants the idea chosen for them | **Team** (honours `--quick`: two ideators, no finalist renders) | `references/team-run.md` |
|
|
34
42
|
|
|
35
43
|
Infer the mode from the request. A concrete headline, photo, clip or existing Creative (including a
|
|
@@ -43,14 +51,14 @@ preview, check and commit steps (S6 reads `references/direct.md`).
|
|
|
43
51
|
|
|
44
52
|
- `references/direct.md`: the Direct flow (read the brand, angle, headline, photo, preview, critique, commit), sequences, video, finished images, short videos, music, cleanup.
|
|
45
53
|
- `references/team-run.md`: the Team flow (run folder, stages S0 to S6, FILM ideas, final message, failure handling).
|
|
46
|
-
- `references/brand-kit-setup.md`: check the Brand Kit and set it up from a website, a brand doc or direct answers.
|
|
54
|
+
- `references/brand-kit-setup.md`: check the Brand Kit and set it up from a website, a brand doc or direct answers; "Make a kit style from slides" (Direct mode) turns slides the person likes into a slideshow style on a new or existing kit.
|
|
47
55
|
- `references/hooks.md`: writing and scoring headline candidates.
|
|
48
56
|
- `references/voice.md`: making every line read like a person posted it, with the self-check every
|
|
49
57
|
hook, card and caption passes (both modes).
|
|
50
58
|
- `references/layout-guide.md`: choosing a layout, resolution and safe zones.
|
|
51
59
|
- `references/design-critique.md`: the six-criterion score applied to every draft before it is shown.
|
|
52
60
|
- `references/realism-check.md`: the check every generated or library photo passes.
|
|
53
|
-
- `references/slideshow-formats.md`: native slideshow spec, archetypes and text rules for organic posts.
|
|
61
|
+
- `references/slideshow-formats.md`: native slideshow spec, style (native default, kit style, one-off style), archetypes and text rules for organic posts.
|
|
54
62
|
- `references/rubric.md`: the judging rubric the creative director uses (Team).
|
|
55
63
|
- `references/capabilities.md`: what Conductor can render, and what needs filming (Team).
|
|
56
64
|
- `references/platform-specs.md`: per-platform formats, lengths and limits (Team).
|
|
@@ -5,7 +5,10 @@ Brand Kit has been set up, and offer to set it up if not.
|
|
|
5
5
|
|
|
6
6
|
## Step 1 — Check the brand
|
|
7
7
|
|
|
8
|
-
Call `get_brand_kit` (
|
|
8
|
+
Call `get_brand_kit` for the kit chosen under SKILL.md "Brand kit first" (`kitId` if the person
|
|
9
|
+
named a brand or already chose one; otherwise no `kitId`, which returns the default and any
|
|
10
|
+
`otherKits`). Setup applies to that kit only: pass its `kitId` to `update_brand_kit` and
|
|
11
|
+
`upload_brand_image`.
|
|
9
12
|
|
|
10
13
|
**If `configured` is `false`**, this workspace has no brand set up yet — offer to fix that before
|
|
11
14
|
making anything:
|
|
@@ -40,3 +43,31 @@ making anything:
|
|
|
40
43
|
a trial offer or similar in the caption instead. Verify with `get_brand_kit` —
|
|
41
44
|
`configured` should now read `true`.
|
|
42
45
|
- **Skip for now**: proceed; the skill below will render against the default kit as given.
|
|
46
|
+
|
|
47
|
+
A kit can also carry a slideshow style (the look of organic slideshows); it is optional, and native is
|
|
48
|
+
the default. `update_brand_kit` sets it (`slideshowStyle`, fields in `references/slideshow-formats.md`).
|
|
49
|
+
|
|
50
|
+
## Make a kit style from slides
|
|
51
|
+
|
|
52
|
+
Triggers: "I like these slides", "I like this look", "make a kit (style) from it". Never change the
|
|
53
|
+
default kit, and never delete anything.
|
|
54
|
+
|
|
55
|
+
1. **Identify the slides and read their style.**
|
|
56
|
+
- A Creative (display id such as `12a`): `get_creative` and read `slideStyle`. A CAROUSEL with a
|
|
57
|
+
null `slideStyle` was made before styles were recorded: treat it as the native defaults and say so.
|
|
58
|
+
- A local slideshow folder (`.conductor/slideshows/*/spec.json`): read the spec's top-level `resolvedStyle`
|
|
59
|
+
(the full look that was composed; the spec's own `style` is only the partial input). A folder
|
|
60
|
+
with neither `resolvedStyle` nor `style` was made before styles were recorded: treat it as the
|
|
61
|
+
native defaults and say so (the same as a Creative with a null `slideStyle`).
|
|
62
|
+
- Images designed elsewhere: look at them, sample the colours (text box, text, outline, accent),
|
|
63
|
+
and ask the person for the font name (and a Google Fonts link if it is one). Compose one sample
|
|
64
|
+
slide with `compose_slideshow` and that inline `style`, show it, and continue only once they
|
|
65
|
+
say it matches.
|
|
66
|
+
2. **Ask once** (`AskUserQuestion`): a new kit, or add it to an existing kit.
|
|
67
|
+
- **New kit:** ask for a name. Offer `copyFrom` the current kit so copy rules, voice, tokens and
|
|
68
|
+
font carry over; call `create_brand_kit({name, slideshowStyle, copyFrom?})`. Logos are not
|
|
69
|
+
copied: offer `upload_brand_image` for the new kit's slots.
|
|
70
|
+
- **Existing kit:** `get_brand_kit({kitId})` first. If it already has a `slideshowStyle`, say it
|
|
71
|
+
will be replaced and show the old one, then `update_brand_kit({kitId, slideshowStyle})`.
|
|
72
|
+
3. **Verify** with `get_brand_kit({kitId})`: `slideshowStyle` matches what was sent. Report the kit
|
|
73
|
+
name and how to use it (pick it at the kit question, or pass `brandKitId` to `compose_slideshow`).
|
|
@@ -36,6 +36,9 @@ only what the choice needs: one or two follow-up questions, not a form.
|
|
|
36
36
|
slides with `compose_slideshow`, then post them as a CAROUSEL Creative. Read
|
|
37
37
|
`references/slideshow-formats.md` first; it covers the spec, archetypes, text rules and the flow.
|
|
38
38
|
No logo, badge or offer goes on the slides, and the brand layouts below do not apply.
|
|
39
|
+
Style is native unless the person asks for a kit's look or a kit has a slideshow style; the
|
|
40
|
+
"Style" section there says how to offer it once and pass it through. The brand kit (the
|
|
41
|
+
Creative's `brandKitId`) and the style source (`compose_slideshow`'s `brandKitId`) are separate.
|
|
39
42
|
- **An ad** (a paid placement, or art that must carry the brand lockup and CTA): use the brand
|
|
40
43
|
layouts (STILL) as described below.
|
|
41
44
|
- **A video**, a **clip** or **finished images**: see their sections below.
|
|
@@ -44,8 +47,10 @@ only what the choice needs: one or two follow-up questions, not a form.
|
|
|
44
47
|
|
|
45
48
|
### 1. Read the brand
|
|
46
49
|
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
Pick the kit as in SKILL.md "Brand kit first": `get_brand_kit` with `kitId` if the person named a
|
|
51
|
+
brand; otherwise with no `kitId`, and if `otherKits` is non-empty ask once which kit to use. Remember
|
|
52
|
+
the chosen kit's id and pass it as `brandKitId` on every `preview_creative_draft` and
|
|
53
|
+
`create_creative` call. The kit gives you the colour tokens, font, logo/wordmark/badge
|
|
49
54
|
URLs, the CTA claim, the copy rules (each a regex, a message, and which fields it applies to), the
|
|
50
55
|
approved lines, the enabled placements, and `knowledgePagePath` — the wiki page holding this
|
|
51
56
|
brand's positioning, message hierarchy, approved verbatim lines and voice in prose. Read that page
|
|
@@ -337,10 +342,10 @@ thing).
|
|
|
337
342
|
result, so retry only the ones with an `error`. Find an already uploaded set with
|
|
338
343
|
`list_creative_media({labelPrefix: "01-import"})` rather than uploading again. `label`, `source`
|
|
339
344
|
and `licence` can't exceed 200 characters.
|
|
340
|
-
2. Local files: `preview_creative_draft({kind: "CAROUSEL", caption, slidePaths: {"4x5": [path, ...]}})`
|
|
345
|
+
2. Local files: `preview_creative_draft({kind: "CAROUSEL", brandKitId, caption, slidePaths: {"4x5": [path, ...]}})`
|
|
341
346
|
returns a contact sheet per placement (slides in order), readiness and any violations; look at it
|
|
342
347
|
with the person, then `commit_creative_draft` (it uploads in order and requests the render).
|
|
343
|
-
Media already in the library: `create_creative({kind: "CAROUSEL", slides: {"4x5": [mediaId, ...]}, slideAltText, caption})`
|
|
348
|
+
Media already in the library: `create_creative({kind: "CAROUSEL", brandKitId, slides: {"4x5": [mediaId, ...]}, slideAltText, caption})`
|
|
344
349
|
and then `render_creative` (instant, server-side).
|
|
345
350
|
3. Placements. `slides` is a list per placement key (`4x5`, `9x16`, `1x1`); `default` is the
|
|
346
351
|
fallback for a placement with no list of its own. Each image must match its placement's aspect
|
|
@@ -4,8 +4,8 @@ For organic posts: a native-looking photo slideshow (TikTok photo post, Instagra
|
|
|
4
4
|
promotes an app or product by being worth watching first. Build it with `compose_slideshow`, then
|
|
5
5
|
post it as a CAROUSEL Creative. Ads use the brand layouts (STILL) instead; this is not the ad path.
|
|
6
6
|
|
|
7
|
-
Branding is light: no logo, badge or offer on the slides
|
|
8
|
-
opener.
|
|
7
|
+
Branding is light: no logo, badge or offer on the slides, and the product appears as the payoff, not
|
|
8
|
+
the opener. The look of the text (font, colours, sizes) is separate and optional: see Style.
|
|
9
9
|
|
|
10
10
|
## Post anatomy
|
|
11
11
|
|
|
@@ -103,6 +103,49 @@ photo full-bleed at 9:16 uses 675x1200 source pixels, a 1.6x upscale. Check ever
|
|
|
103
103
|
the largest size in that aspect (`aspect: "9:16"`), use a different photo, or use a slide type that
|
|
104
104
|
shows the photo framed at or below native size (such as `grid` or `stack`).
|
|
105
105
|
|
|
106
|
+
## Style
|
|
107
|
+
|
|
108
|
+
The native look (TikTok Sans, white and black text boxes, a pink callout accent) is the default and
|
|
109
|
+
needs no setup. A slideshow can instead take the look of a Brand Kit's `slideshowStyle`, or a one-off
|
|
110
|
+
inline `style`, or both (the kit's style first, the inline fields on top).
|
|
111
|
+
|
|
112
|
+
Two separate choices, never conflated:
|
|
113
|
+
|
|
114
|
+
- **The brand kit** (SKILL.md "Brand kit first": the kit question, or the default) is the Creative's
|
|
115
|
+
`brandKitId`. Pass it on every `preview_creative_draft` / `create_creative` call whenever it is not
|
|
116
|
+
the default kit. Choosing "native look" never changes it.
|
|
117
|
+
- **The style source** is either native or a kit whose `slideshowStyle` is used. That kit's id goes
|
|
118
|
+
only to `compose_slideshow`'s `brandKitId`. A kit used only for its look never becomes the
|
|
119
|
+
Creative's brand kit unless it is also the brand kit.
|
|
120
|
+
|
|
121
|
+
- **When to offer the choice.** Ask once, never twice in a run, when the person asks for a kit's look
|
|
122
|
+
or when a kit with a slideshow style exists (`get_brand_kit`'s `slideshowStyle` is set, or an
|
|
123
|
+
`otherKits[]` entry has `hasSlideshowStyle: true`). Options: "Native look" first, then each styled
|
|
124
|
+
kit (up to 4 options in all). No styled kit and no request: do not ask, use native.
|
|
125
|
+
- **Team mode.** One question before S0 covers whatever choice exists, and there is never more than
|
|
126
|
+
one (a single `AskUserQuestion` call; it may carry the kit part and the look part together):
|
|
127
|
+
several kits and none named: which kit and, if any kit has a slideshow style, native vs that look;
|
|
128
|
+
a single kit that has a `slideshowStyle`: native vs the kit's look; nothing to choose: no question.
|
|
129
|
+
Store the answers in `run.json` (`brandKitId`, and `slideshowStyle: {"styleKitId": "<id>" | null,
|
|
130
|
+
"style": {...} | null}`, where a null `styleKitId` is native) and reuse them on resume.
|
|
131
|
+
- **Compose.** Pass `brandKitId` (the style source kit only; a kit with no slideshow style is refused
|
|
132
|
+
with a clear error: fall back to native or set one with `update_brand_kit`) and/or `style` (`fontFamily` as a name or a comma list such as `Inter, sans-serif`, `fontUrl` for an https
|
|
133
|
+
Google Fonts stylesheet, `boxBg`, `boxInk`, `darkBg`, `darkInk`, `strokeInk` (outlined text and sub text, white by default), `outline`, `accent` as `#RRGGBB`,
|
|
134
|
+
`defaultText` of `box|dark|stroke`, `textSize` 24-120, `subSize` 16-96). In `style` (and in a
|
|
135
|
+
spec's own `style`) a field you leave out inherits from the layer below; a field set to `null`
|
|
136
|
+
resets that field to the native value (`fontFamily: null` is the bundled TikTok Sans with no
|
|
137
|
+
`fontUrl`). Notes, week, receipt,
|
|
138
|
+
placard and messages slides keep their system-UI fonts by design. A custom font that fails to load,
|
|
139
|
+
or a `fontFamily` that is not installed when there is no `fontUrl`, is a blocking `font` check naming the family.
|
|
140
|
+
- **Record it.** The result's `style` and the output `spec.json`'s `resolvedStyle` are the full object,
|
|
141
|
+
native defaults included (the spec's own `style` is kept as you wrote it). Layers: native, then
|
|
142
|
+
the kit (`brandKitId`), then the spec's `style`, then the inline `style`; re-composing an output
|
|
143
|
+
`spec.json` ignores `resolvedStyle`. Pass it as `slideStyle` on `preview_creative_draft` / `create_creative`
|
|
144
|
+
so every composed slideshow has a style that can later become a kit style
|
|
145
|
+
(`references/brand-kit-setup.md`, "Make a kit style from slides"). A saved Creative keeps its `slideStyle`
|
|
146
|
+
unless `update_creative` (or a draft over `baseCreativeId`) changes the slides without sending a
|
|
147
|
+
`slideStyle`, which clears it; send the new `style` with the new slides, or `slideStyle: null` to clear it.
|
|
148
|
+
|
|
106
149
|
## Honesty and brand
|
|
107
150
|
|
|
108
151
|
- No logo, badge or offer on the slides. The offer, if any, goes in the caption.
|
|
@@ -125,10 +168,14 @@ Captions on TikTok and Instagram cannot hold clickable links, so do not rely on
|
|
|
125
168
|
|
|
126
169
|
## Flow
|
|
127
170
|
|
|
128
|
-
1. Write the spec (`slideshow-spec.json`); call `compose_slideshow({specPath})
|
|
171
|
+
1. Write the spec (`slideshow-spec.json`); call `compose_slideshow({specPath})`, adding the *style
|
|
172
|
+
source* kit as `brandKitId` (only when the look comes from a kit) and/or `style` per Style above.
|
|
173
|
+
Omit `brandKitId` for the native look.
|
|
129
174
|
2. If `passed` is false, fix every `error` check and compose again. Warnings are advisory.
|
|
130
|
-
3. `preview_creative_draft({kind: "CAROUSEL", slidePaths, caption, slideAltText})`
|
|
131
|
-
returned `slidePaths` (`9x16` for TikTok, `4x5` for Instagram).
|
|
175
|
+
3. `preview_creative_draft({kind: "CAROUSEL", brandKitId: <the Creative's brand kit>, slidePaths, slideStyle, caption, slideAltText})`
|
|
176
|
+
using the returned `slidePaths` and `style` (as `slideStyle`) (`9x16` for TikTok, `4x5` for Instagram).
|
|
177
|
+
The `brandKitId` here is the *brand kit*, not the style source: pass it whenever it is not the
|
|
178
|
+
default kit, and leave it out for the default, whatever the look. Look at the contact sheet and show
|
|
132
179
|
it.
|
|
133
180
|
With music (`audio: {source: "track", trackId}`, a library track from
|
|
134
181
|
`list_creative_media({kind: "AUDIO"})`; a new file is uploaded there first with its source and
|
|
@@ -22,12 +22,18 @@ Each exists because of a known failure mode (sources are in `references/rubric.m
|
|
|
22
22
|
writes reasoning before scores, compares finalists pairwise in both orders, and argues against its
|
|
23
23
|
own leader.
|
|
24
24
|
- **One gate.** The person is asked only at the final draft preview. Do not stop to ask which idea.
|
|
25
|
-
|
|
25
|
+
Two exceptions: S5b's disclosure question, asked only when disclosure cannot be inferred; and the
|
|
26
|
+
pre-S0 question, at most one before S0, covering whatever choice exists: several kits and none
|
|
27
|
+
named, which kit (SKILL.md "Brand kit first") and, if any kit has a slideshow style, native vs that
|
|
28
|
+
look; a single kit that has a slideshow style, native vs the kit's look; nothing to choose, no
|
|
29
|
+
question (`references/slideshow-formats.md`, "Style"). A resumed run reuses the `brandKitId` and
|
|
30
|
+
`slideshowStyle` stored in `run.json`; the brand kit and the style source are separate answers.
|
|
26
31
|
- **A run never creates a Post.** It ends at a committed Creative (or a shoot script).
|
|
27
32
|
- **Organic posts default to a slideshow.** A `RENDER` idea for an organic post (not an ad) is a
|
|
28
33
|
native-looking slideshow built by `compose_slideshow` and posted as a CAROUSEL; see
|
|
29
34
|
`references/slideshow-formats.md`. STILL and MOTION stay for ideas that really are one still, an
|
|
30
|
-
ad, or a motion piece. A slideshow never carries a logo, badge or offer
|
|
35
|
+
ad, or a motion piece. A slideshow never carries a logo, badge or offer; its text look is native
|
|
36
|
+
unless the run's choice names a kit style or an inline `style`.
|
|
31
37
|
- **Rejected copy stays rejected.** A CTA or offer line on a card or in a caption is opt-in per
|
|
32
38
|
request, never a default. That means a sales line: the kit's `ctaClaim`, a trial, price, plan or
|
|
33
39
|
discount. Naming the app so it can be searched is not one. Approved lines in the knowledge pages are allowed, not required. When the
|
|
@@ -72,6 +78,8 @@ shoot/ shoot-script.md (FILM winner only)
|
|
|
72
78
|
"S3b": "pending", "S3c": "pending", "S4": "pending", "S5": "pending", "S5b": "pending",
|
|
73
79
|
"S6": "pending"},
|
|
74
80
|
"idMap": {"I1": {"angle": "story/emotion", "file": "ideas/angle-1.md", "n": 3}},
|
|
81
|
+
"brandKitId": null,
|
|
82
|
+
"slideshowStyle": {"styleKitId": null, "style": null},
|
|
75
83
|
"finalists": [], "winner": null, "tag": null, "runnerUps": [],
|
|
76
84
|
"tags": {"hookType": null, "angle": null, "format": null},
|
|
77
85
|
"drafts": {"finalist-I3": "<absolute dir>", "final": "<absolute dir>"},
|
|
@@ -85,7 +93,8 @@ linked to IDs; it is never shown to the director.
|
|
|
85
93
|
**Resume check (first thing).** Glob `.conductor/content-runs/*/run.json`. If one has a stage that is
|
|
86
94
|
not `done` or `skipped` and no `creativeId` or `shootDoc`, ask with `AskUserQuestion` whether to
|
|
87
95
|
**Resume** that run (name it and its last finished stage) or **Start a new run**. On resume, skip
|
|
88
|
-
done stages and continue from the first pending one
|
|
96
|
+
done stages and continue from the first pending one, using the `brandKitId` and
|
|
97
|
+
`slideshowStyle` already in `run.json`; never ask the pre-S0 question again for a run that has them stored.
|
|
89
98
|
|
|
90
99
|
## Delegation prompt template
|
|
91
100
|
|
|
@@ -113,7 +122,10 @@ has failed the stage: retry once with a one-line reminder, then tell the person.
|
|
|
113
122
|
|
|
114
123
|
Write `request.md` (the request verbatim, `--quick` if given, the platform if stated). Then:
|
|
115
124
|
|
|
116
|
-
1.
|
|
125
|
+
1. Resolve the kit (SKILL.md "Brand kit first": the named kit, else the one pre-S0 question from
|
|
126
|
+
"One gate" when there is a choice to make), store its id in `run.json` as `brandKitId` (and the
|
|
127
|
+
look as `slideshowStyle.styleKitId`, null = native), and write `get_brand_kit({kitId})` ->
|
|
128
|
+
`context/brand-kit.json`. Use that kit's `knowledgePagePath` and copy rules below. If `configured` is false and the person already
|
|
117
129
|
skipped setup in the command, note that in the brief's constraints.
|
|
118
130
|
2. Knowledge, for `context/knowledge.md`: `read_knowledge_pages` for the kit's `knowledgePagePath`
|
|
119
131
|
and `marketing/what-works.md`; `search_knowledge` for persona/audience, campaign and positioning
|
|
@@ -195,7 +207,7 @@ Draft each finalist the judge named (up to three).
|
|
|
195
207
|
A slideshow finalist has no cheap draft: judge it from its idea text (archetype and slide-by-slide
|
|
196
208
|
text) unless its slides can be composed from photos already on hand. In that case write its spec to
|
|
197
209
|
`<run>/drafts/finalist-<id>/slideshow-spec.json`, call `compose_slideshow` with `draftDir` set to
|
|
198
|
-
that folder and judge from the first slide and the `checks`. For every other `RENDER` finalist, call `preview_creative_draft` with that idea's draft spec (map the
|
|
210
|
+
that folder, passing `slideshowStyle.styleKitId` as `brandKitId` and/or `slideshowStyle.style` as `style` (as at S6), and judge from the first slide and the `checks`. For every other `RENDER` finalist, call `preview_creative_draft` (with `brandKitId` from `run.json`) with that idea's draft spec (map the
|
|
199
211
|
draft-spec block to the tool's fields) and `draftDir` set to `<run>/drafts/finalist-<id>`. Use
|
|
200
212
|
`full: false`. Record each draft dir in `run.json`. For a finalist whose draft spec carries an
|
|
201
213
|
`imagePrompt`, write the prompt by the prompt-writing rules in `references/realism-check.md` and
|
|
@@ -319,13 +331,15 @@ does not apply is answered "not applicable".
|
|
|
319
331
|
Resolution gate first: confirm S5's gate passed for every photo in the spec. A photo above 1.0x at
|
|
320
332
|
any placement is fixed now, not shown.
|
|
321
333
|
|
|
322
|
-
1. `preview_creative_draft` with the fields from `creative-spec.json`, `full: false`, and no
|
|
334
|
+
1. `preview_creative_draft` with the fields from `creative-spec.json`, `brandKitId` from `run.json`, `full: false`, and no
|
|
323
335
|
`draftDir` (the default location is cleaned up automatically after the commit). Record the
|
|
324
336
|
returned `draftDir` as `drafts.final`. Local files (`photoPath`, `clipPath`, `audioPath`) go in
|
|
325
337
|
as given in the spec.
|
|
326
338
|
**Slideshow winner:** `compose_slideshow({specPath})` on `slideshow-spec.json`; while `passed` is
|
|
327
|
-
false, fix the spec and compose again.
|
|
328
|
-
|
|
339
|
+
false, fix the spec and compose again. Pass `slideshowStyle.styleKitId` as `compose_slideshow`'s `brandKitId` (omit for native) and/or `slideshowStyle.style` as `style`
|
|
340
|
+
(layers: native, then the kit, then the spec's own top-level `style`, then the inline `style`); keep the
|
|
341
|
+
result's `style`. Then
|
|
342
|
+
`preview_creative_draft({kind: "CAROUSEL", brandKitId: <run.json brandKitId, the Creative's brand kit>, slidePaths, slideStyle: style, caption, slideAltText})` with the returned `slidePaths` (`9x16` for TikTok, `4x5` for Instagram),
|
|
329
343
|
the caption from `publish-pack.json` and the alt text from `direction.md`. Record the preview's
|
|
330
344
|
`draftDir` as `drafts.final`.
|
|
331
345
|
**Music:** a slideshow or clip with music uses `audio` on the Creative, and a track from
|
package/assets/cli-manifest.json
CHANGED
|
@@ -778,14 +778,22 @@
|
|
|
778
778
|
},
|
|
779
779
|
{
|
|
780
780
|
"name": "get_brand_kit",
|
|
781
|
-
"description": "Read a workspace Brand Kit: colour tokens, font, logo/wordmark/badge URLs, CTA claim, copy rules, approved lines, enabled placements, and the Knowledge page path holding its prose context. Carries configured: false plus a nextStep when the kit has never been edited.",
|
|
781
|
+
"description": "Read a workspace Brand Kit: colour tokens, font, logo/wordmark/badge URLs, CTA claim, copy rules, approved lines, enabled placements, slideshow style, and the Knowledge page path holding its prose context. Carries configured: false plus a nextStep when the kit has never been edited. Without kitId and with several kits, also carries otherKits ([{id, name, configured, hasSlideshowStyle}]); pass the chosen id as brandKitId on preview_creative_draft / create_creative.",
|
|
782
782
|
"category": "marketing"
|
|
783
783
|
},
|
|
784
784
|
{
|
|
785
785
|
"name": "update_brand_kit",
|
|
786
|
-
"description": "Patch a workspace Brand Kit's name, tokens, font, CTA claim, copy rules, approved lines or
|
|
786
|
+
"description": "Patch a workspace Brand Kit's name, tokens, font, CTA claim, copy rules, approved lines, enabled placements or slideshow style. tokens merges onto the existing set; every other field is set-replace.",
|
|
787
787
|
"category": "marketing"
|
|
788
788
|
},
|
|
789
|
+
{
|
|
790
|
+
"name": "create_brand_kit",
|
|
791
|
+
"description": "Create an additional Brand Kit (never the default). copyFrom starts from another kit's tokens, font, CTA claim, copy rules, approved lines and placements; images are not copied. slideshowStyle sets the look of composed slideshows.",
|
|
792
|
+
"category": "marketing",
|
|
793
|
+
"requiredParams": [
|
|
794
|
+
"name"
|
|
795
|
+
]
|
|
796
|
+
},
|
|
789
797
|
{
|
|
790
798
|
"name": "upload_brand_image",
|
|
791
799
|
"description": "Upload a logo mark, wordmark or badge into a Brand Kit image slot from a local file or a public URL, in one call.",
|
|
@@ -878,7 +886,7 @@
|
|
|
878
886
|
},
|
|
879
887
|
{
|
|
880
888
|
"name": "compose_slideshow",
|
|
881
|
-
"description": "Compose
|
|
889
|
+
"description": "Compose organic slideshow slides (TikTok/Reels style) from a spec on this machine, with layout checks. Native look by default; brandKitId applies a kit's slideshow style and style overrides on top. Returns the resolved style to pass as slideStyle to preview_creative_draft as a CAROUSEL.",
|
|
882
890
|
"category": "marketing"
|
|
883
891
|
},
|
|
884
892
|
{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type BrowserFactory } from '../creative-browser.js';
|
|
2
|
+
import { type ResolvedSlideshowStyle, type SlideshowStyle } from './style.js';
|
|
2
3
|
import { type SlideRatio, type SlideshowSpec } from './spec.js';
|
|
3
4
|
export interface SlideshowCheck {
|
|
4
5
|
slide: number;
|
|
@@ -13,6 +14,11 @@ export interface ComposeOptions {
|
|
|
13
14
|
specDir?: string;
|
|
14
15
|
/** Tests: supply a browser instead of discovering one. */
|
|
15
16
|
browserFactory?: BrowserFactory;
|
|
17
|
+
/** A Brand Kit's slideshowStyle (the layer under the spec's own `style`); `kitLabel` names it in errors. */
|
|
18
|
+
kitStyle?: unknown;
|
|
19
|
+
kitLabel?: string;
|
|
20
|
+
/** An inline style over the spec's own `style` and the kit's. Resolved and validated once, here. */
|
|
21
|
+
style?: SlideshowStyle | null;
|
|
16
22
|
log?: (message: string) => void;
|
|
17
23
|
}
|
|
18
24
|
export interface ComposeResult {
|
|
@@ -28,6 +34,8 @@ export interface ComposeResult {
|
|
|
28
34
|
};
|
|
29
35
|
specPath: string;
|
|
30
36
|
outDir: string;
|
|
37
|
+
/** The full style the slides were composed with (spec.json carries it as `resolvedStyle`). */
|
|
38
|
+
style: ResolvedSlideshowStyle;
|
|
31
39
|
}
|
|
32
40
|
/** Bundled TikTok Sans lives in <package>/assets/fonts; this file is at src/lib/slideshow or dist/lib/slideshow. */
|
|
33
41
|
export declare function fontsDir(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../../src/lib/slideshow/compose.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGhF,OAAO,EAA0C,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAA;AAEvG,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,UAAU,CAAA;IACjB,IAAI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,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CA0E/H"}
|
|
@@ -4,6 +4,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
|
4
4
|
import { findBrowserFactory } from '../creative-browser.js';
|
|
5
5
|
import { readProvenanceSidecar, writeProvenanceSidecar } from '../provenance-sidecar.js';
|
|
6
6
|
import { buildSlideHtml, FRAME_H, FRAME_W } from './html.js';
|
|
7
|
+
import { resolveStyleLayers } from './style.js';
|
|
7
8
|
import { assertValidSlideshowSpec, SLIDE_RATIOS } from './spec.js';
|
|
8
9
|
/** Bundled TikTok Sans lives in <package>/assets/fonts; this file is at src/lib/slideshow or dist/lib/slideshow. */
|
|
9
10
|
export function fontsDir() {
|
|
@@ -93,7 +94,13 @@ export async function composeSlideshow(specInput, outDir, options = {}) {
|
|
|
93
94
|
if (ratios.length === 0)
|
|
94
95
|
throw new Error('ratios must name at least one of 9x16, 4x5');
|
|
95
96
|
const specDir = resolve(options.specDir ?? process.cwd());
|
|
96
|
-
|
|
97
|
+
// native < kit < the spec's own style < inline, resolved and validated once (throws SlideshowStyleError).
|
|
98
|
+
const style = resolveStyleLayers({ kit: options.kitStyle, kitLabel: options.kitLabel, spec: specInput.style, inline: options.style });
|
|
99
|
+
// spec.json keeps the input `style` as given and records the outcome beside it as `resolvedStyle`; an
|
|
100
|
+
// earlier output's `resolvedStyle` is dropped here, the only place that happens.
|
|
101
|
+
const { resolvedStyle: _ignored, ...input } = specInput;
|
|
102
|
+
void _ignored;
|
|
103
|
+
const resolved = { ...resolveSpecImages(input, specDir), resolvedStyle: style };
|
|
97
104
|
const htmlSpec = mapImages(resolved, (v) => toUrl(v));
|
|
98
105
|
const out = resolve(outDir);
|
|
99
106
|
await mkdir(out, { recursive: true });
|
|
@@ -130,7 +137,7 @@ export async function composeSlideshow(specInput, outDir, options = {}) {
|
|
|
130
137
|
for (let i = 0; i < htmlSpec.slides.length; i++) {
|
|
131
138
|
const nn = String(i + 1).padStart(2, '0');
|
|
132
139
|
const htmlFile = join(out, `.slide-${ratio}-${nn}.html`);
|
|
133
|
-
await writeFile(htmlFile, buildSlideHtml(htmlSpec, i, ratio, assetBase));
|
|
140
|
+
await writeFile(htmlFile, buildSlideHtml(htmlSpec, i, ratio, assetBase, style));
|
|
134
141
|
try {
|
|
135
142
|
await page.goto(pathToFileURL(htmlFile).href);
|
|
136
143
|
await page.waitForFunction('window.__READY === true', null, { timeout: 30000 });
|
|
@@ -155,6 +162,6 @@ export async function composeSlideshow(specInput, outDir, options = {}) {
|
|
|
155
162
|
finally {
|
|
156
163
|
await browser.close();
|
|
157
164
|
}
|
|
158
|
-
return { slidePaths, checks, passed: !checks.some((c) => c.severity === 'error'), provenance, specPath, outDir: out };
|
|
165
|
+
return { slidePaths, checks, passed: !checks.some((c) => c.severity === 'error'), provenance, specPath, outDir: out, style };
|
|
159
166
|
}
|
|
160
167
|
//# sourceMappingURL=compose.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../../../src/lib/slideshow/compose.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACvD,OAAO,EAAE,kBAAkB,EAAuB,MAAM,wBAAwB,CAAA;AAChF,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAA0B,MAAM,0BAA0B,CAAA;AAChH,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAuC,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"compose.js","sourceRoot":"","sources":["../../../src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,CAAA;YAC7E,CAAC;YACD,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK,CAAA;QAC3B,CAAC;IACH,CAAC;YAAS,CAAC;QACT,MAAM,OAAO,CAAC,KAAK,EAAE,CAAA;IACvB,CAAC;IACD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,OAAO,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,CAAA;AAC9H,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { type ResolvedSlideshowStyle } from './style.js';
|
|
2
|
+
/**
|
|
3
|
+
* Slide stylesheet. `assetBase` is the URL (ending in "/") of the folder holding the bundled TikTok Sans TTFs;
|
|
4
|
+
* `style` restyles the native text and callouts (default: the native look). Slide types that imitate a system
|
|
5
|
+
* UI (notes, week, receipt, placard, messages) keep their own fonts.
|
|
6
|
+
*/
|
|
7
|
+
export declare function slideCss(assetBase: string, style?: ResolvedSlideshowStyle): string;
|
|
3
8
|
//# sourceMappingURL=css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/lib/slideshow/css.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/lib/slideshow/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAA;AASrF;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,GAAE,sBAAqC,GAAG,MAAM,CAuGhG"}
|
|
@@ -1,22 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { NATIVE_STYLE, fontFamilyCss } from './style.js';
|
|
2
|
+
/** #rrggbb as the shortest CSS hex (so the native look stays byte-identical to the original sheet). */
|
|
3
|
+
const hex = (c) => c.replace(/^#([0-9a-f])\1([0-9a-f])\2([0-9a-f])\3$/i, '#$1$2$3').toLowerCase();
|
|
4
|
+
const rgba = (c, a) => {
|
|
5
|
+
const n = parseInt(c.slice(1), 16);
|
|
6
|
+
return `rgba(${n >> 16},${(n >> 8) & 255},${n & 255},${a})`;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Slide stylesheet. `assetBase` is the URL (ending in "/") of the folder holding the bundled TikTok Sans TTFs;
|
|
10
|
+
* `style` restyles the native text and callouts (default: the native look). Slide types that imitate a system
|
|
11
|
+
* UI (notes, week, receipt, placard, messages) keep their own fonts.
|
|
12
|
+
*/
|
|
13
|
+
export function slideCss(assetBase, style = NATIVE_STYLE) {
|
|
14
|
+
const bg = hex(style.boxBg), ink = hex(style.boxInk), dbg = hex(style.darkBg), dink = hex(style.darkInk), sink = hex(style.strokeInk);
|
|
15
|
+
const line = hex(style.outline), accent = hex(style.accent), line8 = rgba(style.outline, '.8');
|
|
16
|
+
const face = style.fontFamily ? fontFamilyCss(style.fontFamily) : '"TT"';
|
|
3
17
|
return String.raw `
|
|
4
18
|
@font-face{font-family:"TT";font-weight:600;src:url(${assetBase}tiktok-sans-600.ttf)}
|
|
5
19
|
@font-face{font-family:"TT";font-weight:700;src:url(${assetBase}tiktok-sans-700.ttf)}
|
|
6
20
|
@font-face{font-family:"TT";font-weight:800;src:url(${assetBase}tiktok-sans-800.ttf)}
|
|
7
21
|
*{box-sizing:border-box;margin:0;padding:0}
|
|
8
22
|
html,body{width:1080px;height:var(--H);overflow:hidden;background:#111}
|
|
9
|
-
#s{position:relative;width:1080px;height:var(--H);overflow:hidden;font-family
|
|
23
|
+
#s{position:relative;width:1080px;height:var(--H);overflow:hidden;font-family:${face},-apple-system,"Helvetica Neue",sans-serif}
|
|
10
24
|
.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
|
|
11
25
|
.dim{position:absolute;inset:0;background:rgba(0,0,0,.28)}
|
|
12
26
|
.blur{filter:blur(28px) brightness(.55) saturate(1.1);transform:scale(1.15)}
|
|
13
27
|
/* native TikTok text */
|
|
14
28
|
.txt{position:absolute;left:70px;right:150px;display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;z-index:5}
|
|
15
29
|
.txt.full{right:70px}
|
|
16
|
-
.box{display:inline;font-weight:700;font-size:var(--fs
|
|
17
|
-
.box.dark{background
|
|
18
|
-
.stroke{font-weight:800;font-size:var(--fs
|
|
19
|
-
.sub{font-weight:700;font-size:var(--ss
|
|
30
|
+
.box{display:inline;font-weight:700;font-size:var(--fs,${style.textSize}px);line-height:1.34;color:${ink};background:${bg};padding:4px 18px;border-radius:14px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
31
|
+
.box.dark{background:${dbg};color:${dink}}
|
|
32
|
+
.stroke{font-weight:800;font-size:var(--fs,${style.textSize}px);line-height:1.22;color:${sink};-webkit-text-stroke:0;text-shadow:0 0 3px ${line},0 0 3px ${line},0 0 4px ${line},0 2px 6px ${line8}}
|
|
33
|
+
.sub{font-weight:700;font-size:var(--ss,${style.subSize}px);line-height:1.25;color:${sink};text-shadow:0 0 3px ${line},0 0 3px ${line},0 2px 6px ${line8}}
|
|
20
34
|
/* phone with a real screenshot */
|
|
21
35
|
.phone{position:absolute;left:50%;width:var(--pw,640px);transform:translateX(-50%) rotate(var(--rot,0deg));border-radius:72px;background:#0b0b0c;padding:16px;box-shadow:0 40px 90px rgba(0,0,0,.55),0 0 0 3px #2a2a2e;z-index:3}
|
|
22
36
|
.phone .scr{border-radius:58px;overflow:hidden;position:relative;background:#fff}
|
|
@@ -24,9 +38,9 @@ html,body{width:1080px;height:var(--H);overflow:hidden;background:#111}
|
|
|
24
38
|
.phone .crop{overflow:hidden}
|
|
25
39
|
/* screenshot callouts: x/y are % of the screenshot box */
|
|
26
40
|
.callouts{position:absolute;left:16px;right:16px;top:16px;bottom:16px;z-index:6;pointer-events:none}
|
|
27
|
-
.callouts .dot{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background
|
|
28
|
-
.callouts .ln{position:absolute;width:6px;margin-left:-3px;background
|
|
29
|
-
.callouts .pill{position:absolute;width:max-content;max-width:560px;text-align:center;font-weight:700;font-size:42px;line-height:1.25;color
|
|
41
|
+
.callouts .dot{position:absolute;width:30px;height:30px;margin:-15px 0 0 -15px;border-radius:50%;background:${accent};border:5px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.5)}
|
|
42
|
+
.callouts .ln{position:absolute;width:6px;margin-left:-3px;background:${accent};box-shadow:0 0 0 2px #fff,0 2px 8px rgba(0,0,0,.4)}
|
|
43
|
+
.callouts .pill{position:absolute;width:max-content;max-width:560px;text-align:center;font-weight:700;font-size:42px;line-height:1.25;color:${ink};background:${bg};padding:6px 20px;border-radius:14px;box-shadow:0 6px 22px rgba(0,0,0,.45)}
|
|
30
44
|
/* iOS Notes */
|
|
31
45
|
.notes{position:absolute;inset:0;background:#fffefa;color:#1c1c1e;font-family:-apple-system,"SF Pro Text","Helvetica Neue",sans-serif;padding:0 70px}
|
|
32
46
|
.notes .bar{display:flex;align-items:center;justify-content:space-between;color:#d9a400;font-size:52px;height:120px;margin-top:var(--top,120px)}
|
|
@@ -61,7 +75,7 @@ html,body{width:1080px;height:var(--H);overflow:hidden;background:#111}
|
|
|
61
75
|
.stack .lbl{position:absolute;left:40px;top:var(--lt,30px);z-index:5;max-width:760px}
|
|
62
76
|
.stack .lbl .box{font-size:44px}
|
|
63
77
|
/* tier list */
|
|
64
|
-
.tier{position:absolute;left:0;right:0;top:var(--top,250px);font-family
|
|
78
|
+
.tier{position:absolute;left:0;right:0;top:var(--top,250px);font-family:${face},sans-serif}
|
|
65
79
|
.tier h2{color:#fff;font-weight:800;font-size:46px;line-height:1.2;text-align:center;padding:0 80px 26px}
|
|
66
80
|
.tier .row{display:flex;min-height:150px;border-top:4px solid #000}
|
|
67
81
|
.tier .row:last-child{border-bottom:4px solid #000}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.js","sourceRoot":"","sources":["../../../src/lib/slideshow/css.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"css.js","sourceRoot":"","sources":["../../../src/lib/slideshow/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAA+B,MAAM,YAAY,CAAA;AAErF,uGAAuG;AACvG,MAAM,GAAG,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,0CAA0C,EAAE,SAAS,CAAC,CAAC,WAAW,EAAE,CAAA;AACjH,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE;IAC5C,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAClC,OAAO,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;AAC7D,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,SAAiB,EAAE,QAAgC,YAAY;IACtF,MAAM,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACrI,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC9F,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;IACxE,OAAO,MAAM,CAAC,GAAG,CAAA;sDACmC,SAAS;sDACT,SAAS;sDACT,SAAS;;;gFAGiB,IAAI;;;;;;;yDAO3B,KAAK,CAAC,QAAQ,8BAA8B,GAAG,eAAe,EAAE;uBAClG,GAAG,UAAU,IAAI;6CACK,KAAK,CAAC,QAAQ,8BAA8B,IAAI,8CAA8C,IAAI,YAAY,IAAI,YAAY,IAAI,cAAc,KAAK;0CACxJ,KAAK,CAAC,OAAO,8BAA8B,IAAI,wBAAwB,IAAI,YAAY,IAAI,cAAc,KAAK;;;;;;;;8GAQ1C,MAAM;wEAC5C,MAAM;8IACgE,GAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAmCxF,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqC7E,CAAA;AACD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ResolvedSlideshowStyle } from './style.js';
|
|
1
2
|
import type { SlideRatio, SlideshowSpec } from './spec.js';
|
|
2
3
|
export declare const FRAME_W = 1080;
|
|
3
4
|
export declare const FRAME_H: Record<SlideRatio, number>;
|
|
@@ -16,5 +17,5 @@ export declare function yPx(y: number, ratio: SlideRatio): number;
|
|
|
16
17
|
* The full HTML document for one slide. Pure: image sources are used as given (the composer resolves them
|
|
17
18
|
* to file URLs first); `assetBase` is the URL, ending in "/", of the folder holding the bundled fonts.
|
|
18
19
|
*/
|
|
19
|
-
export declare function buildSlideHtml(spec: SlideshowSpec, index: number, ratio: SlideRatio, assetBase: string): string;
|
|
20
|
+
export declare function buildSlideHtml(spec: SlideshowSpec, index: number, ratio: SlideRatio, assetBase: string, style?: ResolvedSlideshowStyle): string;
|
|
20
21
|
//# sourceMappingURL=html.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/lib/slideshow/html.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAa,MAAM,WAAW,CAAA;AAErE,eAAO,MAAM,OAAO,OAAO,CAAA;AAC3B,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAiC,CAAA;AAChF,yDAAyD;AACzD,eAAO,MAAM,IAAI;;;;CAAiD,CAAA;AAElE,eAAO,MAAM,GAAG,GAAI,GAAG,OAAO,KAAG,MACoF,CAAA;AAErH;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,CAExD;
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/lib/slideshow/html.ts"],"names":[],"mappings":"AACA,OAAO,EAA2D,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACjH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAa,MAAM,WAAW,CAAA;AAErE,eAAO,MAAM,OAAO,OAAO,CAAA;AAC3B,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAiC,CAAA;AAChF,yDAAyD;AACzD,eAAO,MAAM,IAAI;;;;CAAiD,CAAA;AAElE,eAAO,MAAM,GAAG,GAAI,GAAG,OAAO,KAAG,MACoF,CAAA;AAErH;;GAEG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,CAExD;AA4MD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,sBAA0D,GAChE,MAAM,CAeR"}
|