@cliangdev/conductor 0.50.0 → 0.52.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 +2 -1
- package/assets/claude/skills/conductor-marketing-create/SKILL.md +14 -4
- package/assets/claude/skills/conductor-marketing-create/references/capabilities.md +21 -4
- package/assets/claude/skills/conductor-marketing-create/references/compliance-checklist.md +5 -0
- package/assets/claude/skills/conductor-marketing-create/references/direct.md +86 -6
- package/assets/claude/skills/conductor-marketing-create/references/platform-specs.md +15 -4
- package/assets/claude/skills/conductor-marketing-create/references/realism-check.md +18 -0
- package/assets/claude/skills/conductor-marketing-create/references/shotlist-template.md +2 -2
- package/assets/claude/skills/conductor-marketing-create/references/slideshow-formats.md +2 -1
- package/assets/claude/skills/conductor-marketing-create/references/team-run.md +9 -4
- package/assets/cli-manifest.json +12 -4
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +113 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/doctor.d.ts +5 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +41 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/creative/assertions.js +30 -3
- package/dist/creative/frame.js +2 -2
- package/dist/creative/job/media.mjs +2 -2
- package/dist/creative/job/render.mjs +3 -0
- package/dist/creative/placements.js +2 -2
- package/dist/creative/placements.json +3 -3
- package/dist/creative/render.js +20 -8
- package/dist/lib/config.d.ts +14 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/creative-render.d.ts +14 -1
- package/dist/lib/creative-render.d.ts.map +1 -1
- package/dist/lib/creative-render.js +3 -1
- package/dist/lib/creative-render.js.map +1 -1
- package/dist/lib/gemini-omni.d.ts +37 -0
- package/dist/lib/gemini-omni.d.ts.map +1 -0
- package/dist/lib/gemini-omni.js +133 -0
- package/dist/lib/gemini-omni.js.map +1 -0
- package/dist/lib/mp4-probe.d.ts +4 -0
- package/dist/lib/mp4-probe.d.ts.map +1 -1
- package/dist/lib/mp4-probe.js +70 -7
- package/dist/lib/mp4-probe.js.map +1 -1
- package/dist/lib/provenance-sidecar.d.ts +11 -0
- package/dist/lib/provenance-sidecar.d.ts.map +1 -1
- package/dist/lib/provenance-sidecar.js.map +1 -1
- package/dist/lib/safe-zone/check.d.ts +31 -0
- package/dist/lib/safe-zone/check.d.ts.map +1 -0
- package/dist/lib/safe-zone/check.js +267 -0
- package/dist/lib/safe-zone/check.js.map +1 -0
- package/dist/lib/safe-zone/frames.d.ts +35 -0
- package/dist/lib/safe-zone/frames.d.ts.map +1 -0
- package/dist/lib/safe-zone/frames.js +132 -0
- package/dist/lib/safe-zone/frames.js.map +1 -0
- package/dist/lib/safe-zone/ocr.d.ts +42 -0
- package/dist/lib/safe-zone/ocr.d.ts.map +1 -0
- package/dist/lib/safe-zone/ocr.js +139 -0
- package/dist/lib/safe-zone/ocr.js.map +1 -0
- package/dist/lib/safe-zone/overlay.d.ts +59 -0
- package/dist/lib/safe-zone/overlay.d.ts.map +1 -0
- package/dist/lib/safe-zone/overlay.js +283 -0
- package/dist/lib/safe-zone/overlay.js.map +1 -0
- package/dist/lib/safe-zone/zones.d.ts +46 -0
- package/dist/lib/safe-zone/zones.d.ts.map +1 -0
- package/dist/lib/safe-zone/zones.js +84 -0
- package/dist/lib/safe-zone/zones.js.map +1 -0
- package/dist/lib/slideshow/compose.d.ts +2 -0
- package/dist/lib/slideshow/compose.d.ts.map +1 -1
- package/dist/lib/slideshow/compose.js +1 -1
- package/dist/lib/slideshow/compose.js.map +1 -1
- package/dist/lib/slideshow/css.d.ts +2 -0
- package/dist/lib/slideshow/css.d.ts.map +1 -1
- package/dist/lib/slideshow/css.js +9 -5
- package/dist/lib/slideshow/css.js.map +1 -1
- package/dist/lib/slideshow/html.d.ts +12 -3
- package/dist/lib/slideshow/html.d.ts.map +1 -1
- package/dist/lib/slideshow/html.js +16 -10
- package/dist/lib/slideshow/html.js.map +1 -1
- package/dist/lib/slideshow/spec-transport.d.ts.map +1 -1
- package/dist/lib/slideshow/spec-transport.js +4 -2
- package/dist/lib/slideshow/spec-transport.js.map +1 -1
- package/dist/lib/slideshow/spec.d.ts +8 -0
- package/dist/lib/slideshow/spec.d.ts.map +1 -1
- package/dist/lib/slideshow/spec.js +6 -0
- package/dist/lib/slideshow/spec.js.map +1 -1
- package/dist/lib/slideshow-pacing.d.ts +46 -0
- package/dist/lib/slideshow-pacing.d.ts.map +1 -0
- package/dist/lib/slideshow-pacing.js +98 -0
- package/dist/lib/slideshow-pacing.js.map +1 -0
- package/dist/lib/vertex-veo.d.ts +38 -0
- package/dist/lib/vertex-veo.d.ts.map +1 -0
- package/dist/lib/vertex-veo.js +212 -0
- package/dist/lib/vertex-veo.js.map +1 -0
- package/dist/lib/video-common.d.ts +141 -0
- package/dist/lib/video-common.d.ts.map +1 -0
- package/dist/lib/video-common.js +219 -0
- package/dist/lib/video-common.js.map +1 -0
- package/dist/lib/video-generation.d.ts +44 -0
- package/dist/lib/video-generation.d.ts.map +1 -0
- package/dist/lib/video-generation.js +132 -0
- package/dist/lib/video-generation.js.map +1 -0
- package/dist/lib/video-spend.d.ts +9 -0
- package/dist/lib/video-spend.d.ts.map +1 -0
- package/dist/lib/video-spend.js +44 -0
- package/dist/lib/video-spend.js.map +1 -0
- package/dist/mcp/index.d.ts +1404 -6
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +70 -10
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools/creative-drafts.d.ts +16 -2
- package/dist/mcp/tools/creative-drafts.d.ts.map +1 -1
- package/dist/mcp/tools/creative-drafts.js +237 -31
- package/dist/mcp/tools/creative-drafts.js.map +1 -1
- package/dist/mcp/tools/creative-images.d.ts +5 -0
- package/dist/mcp/tools/creative-images.d.ts.map +1 -1
- package/dist/mcp/tools/creative-images.js +13 -9
- package/dist/mcp/tools/creative-images.js.map +1 -1
- package/dist/mcp/tools/creative-videos.d.ts +59 -0
- package/dist/mcp/tools/creative-videos.d.ts.map +1 -0
- package/dist/mcp/tools/creative-videos.js +83 -0
- package/dist/mcp/tools/creative-videos.js.map +1 -0
- package/dist/mcp/tools/creatives.d.ts +12 -3
- package/dist/mcp/tools/creatives.d.ts.map +1 -1
- package/dist/mcp/tools/creatives.js +235 -17
- package/dist/mcp/tools/creatives.js.map +1 -1
- package/dist/mcp/tools/safe-zone-pixels.d.ts +165 -0
- package/dist/mcp/tools/safe-zone-pixels.d.ts.map +1 -0
- package/dist/mcp/tools/safe-zone-pixels.js +300 -0
- package/dist/mcp/tools/safe-zone-pixels.js.map +1 -0
- package/dist/mcp/tools/slideshow-render.d.ts.map +1 -1
- package/dist/mcp/tools/slideshow-render.js +3 -1
- package/dist/mcp/tools/slideshow-render.js.map +1 -1
- package/package.json +4 -2
|
@@ -23,7 +23,8 @@ send to the draft renderer, so it has to be valid on the first try.
|
|
|
23
23
|
|
|
24
24
|
Follow the shot-list template: shot list table (time, visual, on-screen text, VO or audio, asset),
|
|
25
25
|
safe zones, sound, and the mapping to the Creative's fields. Keep text out of the platform's UI
|
|
26
|
-
(
|
|
26
|
+
(9:16 at 1080x1920: text at y >= 290, above y=1490, out of the right 15% column; see
|
|
27
|
+
`references/platform-specs.md`). For a `FILM` idea, include capture settings and
|
|
27
28
|
the ready-to-paste text. Pick the layout per
|
|
28
29
|
`references/layout-guide.md`: `bleed` by default when 9:16 is enabled, `card` when the photo must stay
|
|
29
30
|
readable or a face would sit under the copy. Never `stacked` or `split` when 9:16 is enabled. Build the
|
|
@@ -49,7 +49,7 @@ preview, check and commit steps (S6 reads `references/direct.md`).
|
|
|
49
49
|
|
|
50
50
|
## References
|
|
51
51
|
|
|
52
|
-
- `references/direct.md`: the Direct flow (read the brand, angle, headline, photo, preview, critique, commit), sequences, video, finished images, short videos, music, cleanup.
|
|
52
|
+
- `references/direct.md`: the Direct flow (read the brand, angle, headline, photo, preview, critique, commit), sequences, video, finished images, short videos, video from a generated still (only when motion is asked for), music, cleanup.
|
|
53
53
|
- `references/team-run.md`: the Team flow (run folder, stages S0 to S6, FILM ideas, final message, failure handling).
|
|
54
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.
|
|
55
55
|
- `references/hooks.md`: writing and scoring headline candidates.
|
|
@@ -57,7 +57,7 @@ preview, check and commit steps (S6 reads `references/direct.md`).
|
|
|
57
57
|
hook, card and caption passes (both modes).
|
|
58
58
|
- `references/layout-guide.md`: choosing a layout, resolution and safe zones.
|
|
59
59
|
- `references/design-critique.md`: the six-criterion score applied to every draft before it is shown.
|
|
60
|
-
- `references/realism-check.md`: the check every generated or library photo passes.
|
|
60
|
+
- `references/realism-check.md`: the check every generated or library photo passes, and the video and audio tells for generated clips.
|
|
61
61
|
- `references/slideshow-formats.md`: native slideshow spec, style (native default, kit style, one-off style), archetypes and text rules for organic posts.
|
|
62
62
|
- `references/rubric.md`: the judging rubric the creative director uses (Team).
|
|
63
63
|
- `references/capabilities.md`: what Conductor can render, and what needs filming (Team).
|
|
@@ -74,14 +74,24 @@ Automated checks are real but incomplete. These are the ones worth looking for b
|
|
|
74
74
|
check, because none of them read pixels for meaning. Open and look at every photo.
|
|
75
75
|
- **A generated image depicting a product, result or claim that is not real** (a made-up app screen,
|
|
76
76
|
a before/after, an invented package) passes every check. Only looking catches it.
|
|
77
|
-
- **
|
|
78
|
-
|
|
77
|
+
- **Finished images and clips are pixels the layout engine did not place.** CAROUSEL slides, CLIP
|
|
78
|
+
media and anything rendered outside Conductor (HTML, ffmpeg, Veo or another generator) can carry
|
|
79
|
+
text under the platform UI. `preview_creative_draft` now reads their text with OCR in the UI zones
|
|
80
|
+
and returns `safeZoneText` checks, but OCR misses stylised or low-contrast text, so still look at
|
|
81
|
+
slide 1 and the first frames of each video on the UI overlay sheet. At 1080x1920: nothing above
|
|
82
|
+
y=290, nothing below y=1490 (keep long-caption posts above about y=1250), nothing in the right 15%
|
|
83
|
+
column (see `references/platform-specs.md`). A `safeZoneUnchecked` check means OCR could not run
|
|
84
|
+
and it did NOT look: check by eye. `checks: []` means it looked and found nothing.
|
|
85
|
+
- **A structurally valid render is not necessarily a good one.** The layout checks cover spill, the
|
|
86
|
+
top and bottom safe zones, fonts and contrast, never whether the headline reads at a glance or the copy sits on a face. The
|
|
79
87
|
design critique exists for this gap.
|
|
80
88
|
- **A Brand Kit with no copy rules, or no accent-phrase requirement, never fails a save on that
|
|
81
89
|
account.** That is permissive by design, which makes the model the only check on brand voice until
|
|
82
90
|
someone configures rules.
|
|
83
91
|
- **A draft is not a saved Creative.** A Creative or media id does not exist until
|
|
84
92
|
`commit_creative_draft` runs; do not hand a draft's folder to `attach_creative_to_post` or a Post.
|
|
93
|
+
`attach_creative_to_post` also refuses a Creative whose finished pixels have a blocking safe-zone
|
|
94
|
+
error; fix the media, and use `ignoreSafeZone: true` only when the person has looked and accepts it.
|
|
85
95
|
- **A stale write is refused, not overwritten.** `update_creative` requires the current `version`; a
|
|
86
96
|
409 names the conflict. Reread with `get_creative` and reapply, do not retry blind.
|
|
87
97
|
- **Rejected copy stays rejected.** Copy rules with ids starting `banned-` are lines or visuals the
|
|
@@ -28,9 +28,16 @@ needs changing until it fits.
|
|
|
28
28
|
when the slides already exist as image files or library media. Slides are ordered per placement
|
|
29
29
|
(`slides`, with `default` as the fallback) and each must match its placement's aspect. Reels,
|
|
30
30
|
Stories and YouTube cannot take its photos. With a library music track (`audio.source` `track`)
|
|
31
|
-
it also gets a 9:16 slideshow video (`slideshow.slideDurations`, 1 to 10 s per slide
|
|
32
|
-
then 2.5 s; `zoom` default on), because no platform accepts a chosen track on photos. Each
|
|
31
|
+
it also gets a 9:16 slideshow video (`slideshow.slideDurations`, 1 to 10 s per slide; `zoom` default on), because no platform accepts a chosen track on photos. Each
|
|
33
32
|
destination then sends the photos (silent) or that video (`carouselAs`: `photos` or `video`).
|
|
33
|
+
Pacing: always pass `slideshow.slideDurations` explicitly, per slide `clamp(2.4 + 0.14 x words, 3.0,
|
|
34
|
+
4.8)` s from the words on that slide, plus 0.5 s for slide 1 and 0.5 s for an app-screen or chart
|
|
35
|
+
slide. The 0.5 s cross-fade comes out of each slide's time. Write each `slideAltText` entry as a
|
|
36
|
+
description ending in `Text: "first line" / "second line"` (the words on the slide, exactly, lines
|
|
37
|
+
separated by " / "; `Text: none` when there are none): the tool times each slide from these words
|
|
38
|
+
(and screen readers get the on-slide text), and when `slideDurations` is omitted it computes the
|
|
39
|
+
same formula itself (from the `Text:` part, or OCR). With no text at all the default is 3.5 s for
|
|
40
|
+
slide 1 and 3.0 s for the rest. Say the total length when showing the draft.
|
|
34
41
|
|
|
35
42
|
- **Slideshow** (organic posts): native-looking slides made locally by `compose_slideshow` (photo with
|
|
36
43
|
text, app screenshot with callouts, Notes page, chat, photo grid, stacked before/after, tier list,
|
|
@@ -78,10 +85,20 @@ photographic, no text, logos or screens in the picture, and no depiction of the
|
|
|
78
85
|
reference image is supplied. It is `aiGenerated: true`. Run `references/realism-check.md` on every one. Collages, charts and text-in-image stay out.
|
|
79
86
|
Ask for a mid-tone scene: under `bleed`, a dark or night scene can render almost black. For a dark scene, use `card`.
|
|
80
87
|
|
|
88
|
+
## Generated video
|
|
89
|
+
|
|
90
|
+
When a video route is configured (`conductor doctor` reports it) and the person asked for animation,
|
|
91
|
+
motion or a video hook, a clip made by `generate_creative_video` from a still is renderable: as a MOTION
|
|
92
|
+
background (`clipPath`) or the opening of a CLIP, 4 to 8 s (Omni 3 to 10), 9:16 or 16:9. It can carry
|
|
93
|
+
its own sound, including a short spoken line (about 8 words per 4 s). It is `aiGenerated: true`, costs
|
|
94
|
+
money and is never chosen unprompted. Flow and checks: `references/direct.md`, "Video from a still".
|
|
95
|
+
|
|
81
96
|
## What it cannot do (so the idea needs filming or a rethink)
|
|
82
97
|
|
|
83
|
-
-
|
|
84
|
-
|
|
98
|
+
- Real footage of people, places, cooking or the product in use. A generated clip (below) can stand in
|
|
99
|
+
only when a video route is configured and the person asked for motion.
|
|
100
|
+
- Real product screens: they come from screen recordings, never from generation.
|
|
101
|
+
- Long voiceover narration. A clip's own short spoken line (below) is supported; narration is not.
|
|
85
102
|
- Charts, illustrations, or text inside a generated image. In a STILL each card is one photo plus
|
|
86
103
|
text; grids, stacks and collages exist only as slideshow slides (above).
|
|
87
104
|
- Anything that relies on a product claim the brief can't confirm. That's a copy problem, not a
|
|
@@ -42,6 +42,11 @@ disclose paid, gifted, employee and affiliate relationships; in video, disclose
|
|
|
42
42
|
each media file's provenance (`aiGenerated` in `context/media.json`) and the script's visuals.
|
|
43
43
|
|
|
44
44
|
- A photo from `generate_creative_image` is `aiGenerated: true`, so this is a **Yes**: the AI label / `isAigc` applies.
|
|
45
|
+
- A clip from `generate_creative_video` is also `aiGenerated: true` (its `.provenance.json` sidecar), so
|
|
46
|
+
this is a **Yes**: set TikTok `isAigc` and YouTube `containsSyntheticMedia`; Instagram and Facebook
|
|
47
|
+
"AI info" is a manual step. Veo and Omni output carries Google's SynthID watermark.
|
|
48
|
+
- A generated voice must not imitate a real person, and no clip may use a real person's likeness.
|
|
49
|
+
Spoken lines go through the claims check (section 4) like any other copy.
|
|
45
50
|
- **Yes**: set TikTok `isAigc: true` on a video post. Conductor does not send `isAigc` on a TikTok
|
|
46
51
|
photo post, so for a photo post note "turn on TikTok's AI label by hand" as a manual step. Set
|
|
47
52
|
YouTube `containsSyntheticMedia: true`. Meta has no option: note that Instagram's and Facebook's
|
|
@@ -296,8 +296,16 @@ Not every video needs the brand layout above — a finished clip (a demo recordi
|
|
|
296
296
|
something a person or another tool already produced) can go up as-is. That's a CLIP Creative: no
|
|
297
297
|
photo, headline or layout, just the video.
|
|
298
298
|
|
|
299
|
-
A CLIP has no artwork to render,
|
|
300
|
-
|
|
299
|
+
A CLIP has no brand artwork to render, but `preview_creative_draft({kind: "CLIP", clipPath})` (or
|
|
300
|
+
`clipPaths` per placement) checks the finished video without uploading anything: it samples frames
|
|
301
|
+
every 0.5 s and at each scene cut, reads their text with OCR, returns the safe-zone `checks` and an
|
|
302
|
+
overlay sheet (see "Safe zones in finished pixels" below). Open the video itself and check it with the
|
|
303
|
+
person before uploading.
|
|
304
|
+
|
|
305
|
+
If you made the clip outside Conductor (ffmpeg, Veo or another generator, burned-in captions), lay
|
|
306
|
+
its text inside the safe zone before upload (numbers in `references/platform-specs.md`) and do not
|
|
307
|
+
rely on the preview check alone. Self-check: export frame 1 and the first frame after each cut, and
|
|
308
|
+
confirm every line of text starts below y=290.
|
|
301
309
|
|
|
302
310
|
1. Check `list_creative_media({kind: "VIDEO"})` for a clip already in the project before uploading a
|
|
303
311
|
new one. A new one goes through `upload_creative_media` (local path or URL) — same provenance
|
|
@@ -311,7 +319,7 @@ itself and check it with the person before uploading.
|
|
|
311
319
|
nothing renders in a browser). With `audio` (below) it encodes a new MP4 on this machine with
|
|
312
320
|
ffmpeg instead.
|
|
313
321
|
4. `preview_creative` — returns a small poster sheet across placements instead of the STILL contact
|
|
314
|
-
sheet, plus each placement's duration. Still worth a look: a poster is one frame, not the whole
|
|
322
|
+
sheet, plus each placement's duration, and runs the same safe-zone check on a saved 9:16 CLIP. Still worth a look: a poster is one frame, not the whole
|
|
315
323
|
cut, so open the actual video before calling a rough or misframed clip done.
|
|
316
324
|
5. `attach_creative_to_post`, same as any other Creative.
|
|
317
325
|
|
|
@@ -327,6 +335,10 @@ broadly.
|
|
|
327
335
|
|
|
328
336
|
## Finished images (carousel or single still)
|
|
329
337
|
|
|
338
|
+
When you render the slides yourself (HTML, Playwright, ffmpeg or any generator), lay the text inside
|
|
339
|
+
the safe zone before upload (numbers in `references/platform-specs.md`) and do not rely on the preview
|
|
340
|
+
check alone. Self-check: export slide 1 and confirm every line of text starts below y=290.
|
|
341
|
+
|
|
330
342
|
Slides made by `compose_slideshow` take this same CAROUSEL route: pass its `slidePaths` to
|
|
331
343
|
`preview_creative_draft` (see `references/slideshow-formats.md`).
|
|
332
344
|
|
|
@@ -356,10 +368,18 @@ thing).
|
|
|
356
368
|
library (see "Music" below) also renders a 9:16 slideshow MP4 here: `preview_creative_draft`
|
|
357
369
|
returns it as `slideshowVideoPath` beside the contact sheet, so watch it with the person, not
|
|
358
370
|
just the sheet. `slideshow: {slideDurations, zoom}` sets the pace (one entry per 9x16 slide, 1 to
|
|
359
|
-
10 s
|
|
360
|
-
|
|
371
|
+
10 s) and the slow push-in (default on). Always pass `slideDurations` explicitly, per slide
|
|
372
|
+
`clamp(2.4 + 0.14 x words, 3.0, 4.8)` s from the words on that slide, plus 0.5 s for slide 1 and
|
|
373
|
+
0.5 s for an app-screen or chart slide. The 0.5 s cross-fade comes out of each slide's time, so
|
|
374
|
+
the total is the sum minus 0.5 s per cut. The tool computes the same formula itself when
|
|
375
|
+
`slideDurations` is omitted (from the `Text:` part of `slideAltText`, or OCR); with no text it
|
|
376
|
+
falls back to 3.5 s for the first slide and 3.0 s for the rest, so 20 slides run about 51 s.
|
|
377
|
+
Say the total length when showing the draft, and keep it short.
|
|
361
378
|
4. Alt text: `slideAltText` has one entry per slide, in order (or a single Creative `altText`); readiness
|
|
362
|
-
blocks without it.
|
|
379
|
+
blocks without it. Each entry describes the picture, then ends with `Text: "first line" / "second
|
|
380
|
+
line"`, quoting the words on the slide exactly (lines separated by " / "); write `Text: none` for
|
|
381
|
+
a slide with no words. The tool times each slide from these words, and screen readers get the
|
|
382
|
+
on-slide text. Slides are never rewritten, so check them for burned-in text, logos and claims
|
|
363
383
|
and approve with `photoChecked: true`.
|
|
364
384
|
5. `get_creative` for `readiness` (slides, caption, altText, photoChecked block going READY), then
|
|
365
385
|
`attach_creative_to_post` (it renders first if needed). The mapping: Instagram feed gets `4x5`
|
|
@@ -410,6 +430,66 @@ destination rewards video over an image.
|
|
|
410
430
|
|
|
411
431
|
A reel or other vertical placement takes exactly one video, same as a CLIP.
|
|
412
432
|
|
|
433
|
+
## Safe zones in finished pixels
|
|
434
|
+
|
|
435
|
+
The layout engine places text for STILL and MOTION Creatives, and checks it. Finished images and
|
|
436
|
+
clips (CAROUSEL slides, CLIP media, anything rendered outside Conductor) are pixels it did not place,
|
|
437
|
+
so `preview_creative_draft` reads their text with OCR in the UI zones instead and reports
|
|
438
|
+
`safeZoneText` checks (slide index or `atSeconds`, the box, the text, which platform's UI covers it).
|
|
439
|
+
It also returns an overlay sheet with Instagram and TikTok chrome drawn over the frames: `uiOverlay`
|
|
440
|
+
is `instagram | tiktok | both | none`, inlined by default for 9:16 CAROUSEL and CLIP (the TikTok
|
|
441
|
+
sheet is written to disk and its path returned). Look at it. OCR misses stylised or low-contrast
|
|
442
|
+
text, and a `safeZoneUnchecked` check means OCR could not run and nothing was checked. A blocking
|
|
443
|
+
error (text in the top zone on slide 1 or in the first 3 s) fails `passed`, and
|
|
444
|
+
`attach_creative_to_post` refuses the Creative unless `ignoreSafeZone: true`.
|
|
445
|
+
|
|
446
|
+
## Video from a still (generated clip)
|
|
447
|
+
|
|
448
|
+
Only when the person asks for animation, motion, real movement or a video hook. Never offer it
|
|
449
|
+
unprompted and never pick it yourself. A still with ffmpeg zoompan or shake looks fake; real motion
|
|
450
|
+
needs `generate_creative_video`. Team mode is opt-in per run (`references/team-run.md`).
|
|
451
|
+
|
|
452
|
+
1. **Still first.** Make the first frame with `generate_creative_image` and pass the realism check
|
|
453
|
+
(`references/realism-check.md`). A start still keeps the face, clothes and set steady. Optionally
|
|
454
|
+
make an end still and pass it as `lastFramePath` so the clip lands on a composed frame.
|
|
455
|
+
2. **Say the cost, then call.** Before the first call state the number of clips, seconds, audio
|
|
456
|
+
on/off and the estimated cost. Call once without `confirmCost`: the tool returns
|
|
457
|
+
`VIDEO_COST_CONFIRMATION_REQUIRED` with the estimate. Show it, and call again with
|
|
458
|
+
`confirmCost: true` only after the person agrees.
|
|
459
|
+
- `VIDEO_ROUTE_NOT_CONFIGURED`: relay the setup commands and stop. Video is off until a route is set.
|
|
460
|
+
- `VIDEO_COST_CAP_EXCEEDED` or `VIDEO_DAILY_CAP_EXCEEDED`: say so plainly and mention
|
|
461
|
+
`conductor config set-video-caps`. Do not work around it (a shorter or cheaper call is the
|
|
462
|
+
person's choice).
|
|
463
|
+
3. **Generate** with `generate_creative_video`: `imagePath` the still, `tier: "fast"` (default),
|
|
464
|
+
`resolution: "1080p"` (default; a 720p clip is a 1.5x upscale at 1080 wide, and `placementFit` warns).
|
|
465
|
+
`aspect` is `9:16` or `16:9`; `durationSeconds` 4, 6 or 8 (Omni 3 to 10). Describe the sound in the prompt.
|
|
466
|
+
4. **Video realism check** before showing it (`references/realism-check.md`, "Video and audio"): the
|
|
467
|
+
4 fps contact sheet the tool returns, plus 100% crops of the face and hands at 2 or 3 timestamps
|
|
468
|
+
(extract frames with ffmpeg), and listen to the audio if there is any.
|
|
469
|
+
5. **On fail**, retry at most twice, naming the failed tells in the prompt. After two failed Fast
|
|
470
|
+
takes, offer one `tier: "standard"` take with its cost; never run it automatically. If that
|
|
471
|
+
still fails, stop and say what looks generated.
|
|
472
|
+
6. **Trim to the beat.** Hooks run about 2 to 4 s; a 4 s clip trimmed to about 3.4 s made a good hook.
|
|
473
|
+
7. **Use it** as a MOTION background (`motion.background.source: "clip"` with `clipPath`, and
|
|
474
|
+
`motion.background.motion: "none"`: the clip already moves, and the default zoom would upscale it
|
|
475
|
+
and add a fake camera move) or the opening of a CLIP. Sound with `audio.source`: `clip` keeps the generated sound, `track` replaces it
|
|
476
|
+
with a library track, `none` mutes it; on a CLIP, `mix` also puts it under a library track (MOTION
|
|
477
|
+
has no `mix`).
|
|
478
|
+
|
|
479
|
+
**Prompt for a person** (the first takes tend to overact, hence the acting line): handheld
|
|
480
|
+
front-facing selfie; the start pose from the still; one clear action (for example "looks up from the
|
|
481
|
+
phone, eyebrows lift, mouth opens slightly, palm-up hand"); "subtle, realistic acting, eyes stay
|
|
482
|
+
their normal size, not exaggerated, not cartoonish"; "same person, clothes, set and light
|
|
483
|
+
throughout"; "no text, no other people"; and "no talking" unless a spoken line is wanted.
|
|
484
|
+
|
|
485
|
+
**Audio.** `generateAudio: true` makes native sound: ambience, SFX, short lip-synced lines. Audio
|
|
486
|
+
raises the cost. A spoken line is at most about 8 words per 4 s, in quotes in the prompt, with no
|
|
487
|
+
brand or product claim unless it passes the claims check, and the post needs captions for it. On the
|
|
488
|
+
Gemini (Omni) route audio is always generated; with `generateAudio: false` the tool strips it.
|
|
489
|
+
|
|
490
|
+
A generated clip is `aiGenerated: true` (its `.provenance.json` sidecar), so the AI label applies
|
|
491
|
+
(`references/compliance-checklist.md`, section 2).
|
|
492
|
+
|
|
413
493
|
## Music
|
|
414
494
|
|
|
415
495
|
Music works on a MOTION (`clip`, `track` or `none`), a CAROUSEL (`track`, which makes a slideshow video) and
|
|
@@ -18,10 +18,21 @@ ranking signals without notice, and the brief's own platform list always wins.
|
|
|
18
18
|
|
|
19
19
|
## Safe zone (9:16, 1080x1920)
|
|
20
20
|
|
|
21
|
-
Use
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
Use one zone for every 9:16 surface: Reels, TikTok, Shorts, Stories and slideshow videos. Keep text
|
|
22
|
+
and faces inside this box:
|
|
23
|
+
|
|
24
|
+
| Zone | At 1080x1920 | Share | What covers it |
|
|
25
|
+
|---|---|---|---|
|
|
26
|
+
| Top | text at y >= 290 | about 15% | Reels header (about 260 px measured on iOS), TikTok tabs and search |
|
|
27
|
+
| Bottom | text above y=1490 (430 px reserved) | about 22% | caption, username, music row |
|
|
28
|
+
| Right | nothing right of x=918 between y=576 and y=1632 | right 15% (140 to 162 px) | like, comment and share column |
|
|
29
|
+
|
|
30
|
+
Long captions and hashtags grow upward, so on a post with a long caption keep text above about
|
|
31
|
+
y=1250 (the bottom ~35%). That leaves a central band of roughly 1000 px for the hook, headline and
|
|
32
|
+
CTA. Shorts' channel and title strip takes comparable space (check current platform guidance). The
|
|
33
|
+
layout engine reserves the top 290 px on `9x16` and `story` and checks it; for finished images and
|
|
34
|
+
clips, `preview_creative_draft` reads their text with OCR and its overlay sheet shows the platform UI
|
|
35
|
+
on top of the frames.
|
|
25
36
|
|
|
26
37
|
## Platforms
|
|
27
38
|
|
|
@@ -71,6 +71,24 @@ crop it. Never judge from a contact sheet: it hides exactly the tells below.
|
|
|
71
71
|
background.
|
|
72
72
|
- **Detail under zoom**: smeared or mushy detail, repeating textures, a staged stock-photo look.
|
|
73
73
|
|
|
74
|
+
## Video and audio (generated clips)
|
|
75
|
+
|
|
76
|
+
For a clip from `generate_creative_video`, see `references/direct.md`, "Video from a still". Check the
|
|
77
|
+
4 fps contact sheet, then 100% crops of the face and hands at 2 or 3 timestamps (ffmpeg frame
|
|
78
|
+
extraction), then listen to the audio if there is any. Any tell is a FAIL.
|
|
79
|
+
|
|
80
|
+
- **Face**: exaggerated or bug eyes, rubber faces, unnatural mouth motion.
|
|
81
|
+
- **Hands**: morphing or merging, fingers appearing or vanishing.
|
|
82
|
+
- **Identity**: the person, clothes or set drifting between frames.
|
|
83
|
+
- **Background**: warping or flicker.
|
|
84
|
+
- **Text**: garbled text or logos appearing.
|
|
85
|
+
- **Camera**: a move that does not match a handheld phone.
|
|
86
|
+
- **Audio**: lip-sync drift, a robotic or mismatched voice, sound that does not match the action,
|
|
87
|
+
music or speech nobody asked for, clipped endings.
|
|
88
|
+
|
|
89
|
+
On FAIL, retry at most twice with the failed tells named in the prompt; then the Standard-tier offer
|
|
90
|
+
in `direct.md`. Never ship a FAIL.
|
|
91
|
+
|
|
74
92
|
## Verdict
|
|
75
93
|
|
|
76
94
|
Write PASS or FAIL for each placement crop, naming the tell on a FAIL. Any tell above that shows in
|
|
@@ -13,8 +13,8 @@ the Creative's own fields.
|
|
|
13
13
|
| 0-3s | ... | ... | ... | <media id, "to film", or none> |
|
|
14
14
|
|
|
15
15
|
## Safe zones
|
|
16
|
-
-
|
|
17
|
-
platform
|
|
16
|
+
- At 1080x1920 keep text at y >= 290 and above y=1490 (above about y=1250 when the caption is long),
|
|
17
|
+
and out of the right 15% column (9:16; numbers in `references/platform-specs.md`).
|
|
18
18
|
- Headline and CTA sit in the middle band. Nothing on a face.
|
|
19
19
|
|
|
20
20
|
## Sound
|
|
@@ -90,7 +90,8 @@ detail, and none may state a fact the brief does not support.
|
|
|
90
90
|
- Every card reads like a person posted it (`voice.md`): a speaker, one real detail, no template
|
|
91
91
|
frames, never a description of the photo.
|
|
92
92
|
- Keep text between about y 16 and y 75 (percent of the 9:16 frame). That survives the 4:5 Instagram
|
|
93
|
-
cut and the platform UI (top bar, bottom caption, right button column).
|
|
93
|
+
cut and the platform UI (top bar, bottom caption, right button column). In pixels the top limit is
|
|
94
|
+
y=290 of 1920 (15.1%), which y 16 (307 px) clears.
|
|
94
95
|
- The first text of every slide needs `y`.
|
|
95
96
|
- Read the composer's `checks`; an `error` severity blocks the preview.
|
|
96
97
|
|
|
@@ -22,13 +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
|
+
Exceptions: the video cost question at S5 (only in a run that asked for motion); S5b's disclosure question, asked only when disclosure cannot be inferred; and the
|
|
26
26
|
pre-S0 question, at most one before S0, covering whatever choice exists: several kits and none
|
|
27
27
|
named, which kit (SKILL.md "Brand kit first") and, if any kit has a slideshow style, native vs that
|
|
28
28
|
look; a single kit that has a slideshow style, native vs the kit's look; nothing to choose, no
|
|
29
29
|
question (`references/slideshow-formats.md`, "Style"). A resumed run reuses the `brandKitId` and
|
|
30
30
|
`slideshowStyle` stored in `run.json`; the brand kit and the style source are separate answers.
|
|
31
31
|
- **A run never creates a Post.** It ends at a committed Creative (or a shoot script).
|
|
32
|
+
- **Video is opt-in per run.** Generated video (`generate_creative_video`) is used only when the request
|
|
33
|
+
asks for motion. The strategist may then tag an idea `RENDER (video)`; otherwise never. The art director
|
|
34
|
+
follows `references/direct.md`, "Video from a still". The clip must exist before the preview, so
|
|
35
|
+
this adds one question at S5: the estimate (clips, seconds, audio, cost); call with `confirmCost`
|
|
36
|
+
only after the person agrees. The S6 gate then shows what was spent beside the draft.
|
|
32
37
|
- **Organic posts default to a slideshow.** A `RENDER` idea for an organic post (not an ad) is a
|
|
33
38
|
native-looking slideshow built by `compose_slideshow` and posted as a CAROUSEL; see
|
|
34
39
|
`references/slideshow-formats.md`. STILL and MOTION stay for ideas that really are one still, an
|
|
@@ -340,7 +345,7 @@ any placement is fixed now, not shown.
|
|
|
340
345
|
(layers: native, then the kit, then the spec's own top-level `style`, then the inline `style`); keep the
|
|
341
346
|
result's `style`. Then
|
|
342
347
|
`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),
|
|
343
|
-
the caption from `publish-pack.json` and the alt text from `direction.md`. Record the preview's
|
|
348
|
+
the caption from `publish-pack.json` and the alt text from `direction.md`. Each `slideAltText` entry describes the picture, then ends with `Text: "first line" / "second line"`, quoting the words on the slide exactly (lines separated by " / "), or `Text: none` for a slide with no words; the tool times each slide from these words (and screen readers get the on-slide text). Pass `slideshow.slideDurations` computed per `references/capabilities.md`. Record the preview's
|
|
344
349
|
`draftDir` as `drafts.final`.
|
|
345
350
|
**Music:** a slideshow or clip with music uses `audio` on the Creative, and a track from
|
|
346
351
|
`context/media.json` (`kind: "AUDIO"`, unblocked) is reused before any new file. A new music file
|
|
@@ -354,8 +359,8 @@ any placement is fixed now, not shown.
|
|
|
354
359
|
`references/design-critique.md` (the slideshow criteria for a slideshow, the STILL criteria
|
|
355
360
|
otherwise; any criterion below 3 is fixed before anyone sees it). For a STILL: does the headline read at a
|
|
356
361
|
glance, does the accent phrase fall on the words that carry the meaning, is copy on a face, are
|
|
357
|
-
the safe zones clear. For a slideshow: does slide 1 stop the scroll, is the text inside y 16 to 75,
|
|
358
|
-
is the screenshot real, and is there no logo, badge or offer. Also read the result's `checks`/`passed`: while any blocking check fails,
|
|
362
|
+
the safe zones clear. For a slideshow: does slide 1 stop the scroll, is the text inside y 16 to 75 (and that holds for burned-in captions in CLIP videos too),
|
|
363
|
+
is the screenshot real, and is there no logo, badge or offer. Look at the UI overlay sheet the preview returns (`uiOverlay`), not just the clean frames. Also read the result's `checks`/`passed`: while any blocking check fails,
|
|
359
364
|
fix it (`layoutOverrides` for photo height, `typeOverrides` for text size, a shorter body) and
|
|
360
365
|
re-preview **before** showing anything, and never offer Approve & upload while one still fails.
|
|
361
366
|
Revise at most twice beyond that; if it is still wrong, show it honestly and say what is off.
|
package/assets/cli-manifest.json
CHANGED
|
@@ -971,7 +971,7 @@
|
|
|
971
971
|
},
|
|
972
972
|
{
|
|
973
973
|
"name": "render_creative",
|
|
974
|
-
"description": "Render a Creative locally to upload-ready frames (JPEG per placement; MP4 for MOTION, a CAROUSEL with a track, or a CLIP with new audio, encoded with ffmpeg here), or a contact sheet with previewOnly. Runs synchronously and returns the render id, state and frame URLs.",
|
|
974
|
+
"description": "Render a Creative locally to upload-ready frames (JPEG per placement; MP4 for MOTION, a CAROUSEL with a track, or a CLIP with new audio, encoded with ffmpeg here), or a contact sheet with previewOnly. Runs synchronously and returns the render id, state and frame URLs. A CAROUSEL or CLIP with a 9x16 placement also reports checks for text under the platform UI (reported only, never blocking).",
|
|
975
975
|
"category": "marketing",
|
|
976
976
|
"requiredParams": [
|
|
977
977
|
"creativeId"
|
|
@@ -979,7 +979,7 @@
|
|
|
979
979
|
},
|
|
980
980
|
{
|
|
981
981
|
"name": "preview_creative",
|
|
982
|
-
"description": "Look at a Creative: returns its latest contact sheet as an image, rendering a fresh preview first if none exists yet.",
|
|
982
|
+
"description": "Look at a Creative: returns its latest contact sheet as an image, rendering a fresh preview first if none exists yet. A saved CAROUSEL or CLIP with a 9x16 placement is also checked for text under the platform UI (checks, passed) and gets Instagram/TikTok UI overlay sheets on disk.",
|
|
983
983
|
"category": "marketing",
|
|
984
984
|
"requiredParams": [
|
|
985
985
|
"creativeId"
|
|
@@ -993,6 +993,14 @@
|
|
|
993
993
|
"prompt"
|
|
994
994
|
]
|
|
995
995
|
},
|
|
996
|
+
{
|
|
997
|
+
"name": "generate_creative_video",
|
|
998
|
+
"description": "Generate a short video clip from a still with Veo (Vertex AI) or Gemini Omni, only when motion was asked for: returns a cost estimate first (needs confirmCost), then local MP4s with a provenance sidecar. Use the path as MOTION clipPath or a CLIP.",
|
|
999
|
+
"category": "marketing",
|
|
1000
|
+
"requiredParams": [
|
|
1001
|
+
"prompt"
|
|
1002
|
+
]
|
|
1003
|
+
},
|
|
996
1004
|
{
|
|
997
1005
|
"name": "compose_slideshow",
|
|
998
1006
|
"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; its spec.json travels with the Creative at commit, making the text editable later.",
|
|
@@ -1018,7 +1026,7 @@
|
|
|
1018
1026
|
},
|
|
1019
1027
|
{
|
|
1020
1028
|
"name": "preview_creative_draft",
|
|
1021
|
-
"description": "Look at a Creative before anything is saved: renders a draft locally from the create_creative fields plus local files (photoPath, clipPath, audioPath) and returns the contact sheet as an image; a CAROUSEL with a track also renders its slideshow MP4 and returns the path. Never writes to Conductor; commit only after the person approves.",
|
|
1029
|
+
"description": "Look at a Creative before anything is saved: renders a draft locally from the create_creative fields plus local files (photoPath, clipPath, audioPath) and returns the contact sheet as an image; a CAROUSEL with a track also renders its slideshow MP4 and returns the path, timing each slide from its text when slideDurations is omitted. Finished 9:16 slides and CLIP videos (clipPath or clipPaths, no commit) are checked for text under the platform UI (checks, passed) and shown with the Instagram UI drawn over them (overlaySheets, uiOverlay). Never writes to Conductor; commit only after the person approves.",
|
|
1022
1030
|
"category": "marketing"
|
|
1023
1031
|
},
|
|
1024
1032
|
{
|
|
@@ -1031,7 +1039,7 @@
|
|
|
1031
1039
|
},
|
|
1032
1040
|
{
|
|
1033
1041
|
"name": "attach_creative_to_post",
|
|
1034
|
-
"description": "Attach a Creative's rendered frames to a Post as its media, placement to platform, for every destination without its own custom media. A CAROUSEL with a track is sent per target as photos or its slideshow video (carouselAs). Call get_post_status (postId) to verify.",
|
|
1042
|
+
"description": "Attach a Creative's rendered frames to a Post as its media, placement to platform, for every destination without its own custom media. A CAROUSEL with a track is sent per target as photos or its slideshow video (carouselAs). A CAROUSEL or CLIP with text under the platform UI is refused (SAFE_ZONE_TEXT) unless ignoreSafeZone is true. Call get_post_status (postId) to verify.",
|
|
1035
1043
|
"category": "marketing",
|
|
1036
1044
|
"requiredParams": [
|
|
1037
1045
|
"creativeId",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAyBnC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAyBnC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4RrD"}
|
package/dist/commands/config.js
CHANGED
|
@@ -50,6 +50,13 @@ Examples:
|
|
|
50
50
|
apiKey: redactApiKey(cfg.apiKey),
|
|
51
51
|
claudeCodeOauthToken: redactToken(cfg.claudeCodeOauthToken),
|
|
52
52
|
openaiApiKey: redactToken(cfg.openaiApiKey),
|
|
53
|
+
videoRoute: cfg.videoRoute ?? 'auto',
|
|
54
|
+
vertexProject: cfg.vertexProject ?? 'not set',
|
|
55
|
+
vertexRegion: cfg.vertexRegion ?? 'us-central1',
|
|
56
|
+
geminiApiKey: redactToken(cfg.geminiApiKey),
|
|
57
|
+
videoPerCallCapUsd: cfg.videoPerCallCapUsd ?? 2,
|
|
58
|
+
videoDailyCapUsd: cfg.videoDailyCapUsd ?? 5,
|
|
59
|
+
...(cfg.videoRates ? { videoRates: cfg.videoRates } : {}),
|
|
53
60
|
};
|
|
54
61
|
process.stdout.write(JSON.stringify(output, null, 2) + '\n');
|
|
55
62
|
process.exit(0);
|
|
@@ -62,6 +69,12 @@ Examples:
|
|
|
62
69
|
console.log(`apiKey: ${redactApiKey(cfg.apiKey)}`);
|
|
63
70
|
console.log(`claudeCodeOauthToken: ${redactToken(cfg.claudeCodeOauthToken)}`);
|
|
64
71
|
console.log(`openaiApiKey: ${redactToken(cfg.openaiApiKey)}`);
|
|
72
|
+
console.log(`videoRoute: ${cfg.videoRoute ?? 'auto'}`);
|
|
73
|
+
console.log(`vertexProject: ${cfg.vertexProject ?? 'not set'}`);
|
|
74
|
+
console.log(`vertexRegion: ${cfg.vertexRegion ?? 'us-central1'}`);
|
|
75
|
+
console.log(`geminiApiKey: ${redactToken(cfg.geminiApiKey)}`);
|
|
76
|
+
console.log(`videoPerCallCapUsd: ${cfg.videoPerCallCapUsd ?? 2}`);
|
|
77
|
+
console.log(`videoDailyCapUsd: ${cfg.videoDailyCapUsd ?? 5}`);
|
|
65
78
|
});
|
|
66
79
|
config
|
|
67
80
|
.command('use <env>')
|
|
@@ -173,5 +186,105 @@ Examples:
|
|
|
173
186
|
writeConfig(cfg);
|
|
174
187
|
console.log('OpenAI API key removed.');
|
|
175
188
|
});
|
|
189
|
+
const withConfig = (fn) => {
|
|
190
|
+
const cfg = readConfig();
|
|
191
|
+
if (!cfg) {
|
|
192
|
+
console.error('No config found — run conductor login first');
|
|
193
|
+
process.exit(1);
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
196
|
+
fn(cfg);
|
|
197
|
+
};
|
|
198
|
+
config
|
|
199
|
+
.command('set-vertex-project <id>')
|
|
200
|
+
.description('Set the Google Cloud project billed for Veo video on Vertex AI (also run `gcloud auth login`)')
|
|
201
|
+
.action((id) => {
|
|
202
|
+
withConfig((cfg) => {
|
|
203
|
+
cfg.vertexProject = id.trim();
|
|
204
|
+
writeConfig(cfg);
|
|
205
|
+
console.log(`Vertex project set: ${cfg.vertexProject}`);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
config
|
|
209
|
+
.command('set-vertex-region <region>')
|
|
210
|
+
.description('Set the Vertex AI region for video (default us-central1, the only documented one)')
|
|
211
|
+
.action((region) => {
|
|
212
|
+
withConfig((cfg) => {
|
|
213
|
+
cfg.vertexRegion = region.trim();
|
|
214
|
+
writeConfig(cfg);
|
|
215
|
+
console.log(`Vertex region set: ${cfg.vertexRegion}`);
|
|
216
|
+
});
|
|
217
|
+
});
|
|
218
|
+
config
|
|
219
|
+
.command('set-gemini-api-key <key>')
|
|
220
|
+
.description('Store a Gemini API key for generate_creative_video on Gemini Omni (billed to that key)')
|
|
221
|
+
.action((key) => {
|
|
222
|
+
withConfig((cfg) => {
|
|
223
|
+
cfg.geminiApiKey = key;
|
|
224
|
+
writeConfig(cfg);
|
|
225
|
+
console.log(`Gemini API key saved: ${redactToken(key)}`);
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
config
|
|
229
|
+
.command('unset-gemini-api-key')
|
|
230
|
+
.description('Remove the stored Gemini API key')
|
|
231
|
+
.action(() => {
|
|
232
|
+
withConfig((cfg) => {
|
|
233
|
+
delete cfg.geminiApiKey;
|
|
234
|
+
writeConfig(cfg);
|
|
235
|
+
console.log('Gemini API key removed.');
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
config
|
|
239
|
+
.command('set-video-route <route>')
|
|
240
|
+
.description('Choose the video route: vertex (Veo) or gemini (Omni)')
|
|
241
|
+
.action((route) => {
|
|
242
|
+
if (route !== 'vertex' && route !== 'gemini') {
|
|
243
|
+
console.error('Invalid route: use vertex or gemini');
|
|
244
|
+
process.exit(2);
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
withConfig((cfg) => {
|
|
248
|
+
cfg.videoRoute = route;
|
|
249
|
+
writeConfig(cfg);
|
|
250
|
+
console.log(`Video route set: ${route}`);
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
config
|
|
254
|
+
.command('set-video-caps')
|
|
255
|
+
.description('Set the video spend caps in USD: per call (default 2) and per day (default 5)')
|
|
256
|
+
.option('--per-call <usd>', 'Refuse a single call estimated above this')
|
|
257
|
+
.option('--daily <usd>', 'Refuse calls once today\'s estimated spend would pass this')
|
|
258
|
+
.action((options) => {
|
|
259
|
+
const parse = (label, v) => {
|
|
260
|
+
if (v === undefined)
|
|
261
|
+
return undefined;
|
|
262
|
+
const n = Number(v);
|
|
263
|
+
if (!Number.isFinite(n) || n <= 0) {
|
|
264
|
+
console.error(`Invalid ${label}: must be a positive number of USD`);
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
return n;
|
|
268
|
+
};
|
|
269
|
+
const perCall = parse('--per-call', options.perCall);
|
|
270
|
+
const daily = parse('--daily', options.daily);
|
|
271
|
+
if (perCall === null || daily === null) {
|
|
272
|
+
process.exit(2);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
if (perCall === undefined && daily === undefined) {
|
|
276
|
+
console.error('Pass --per-call <usd> and/or --daily <usd>');
|
|
277
|
+
process.exit(2);
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
withConfig((cfg) => {
|
|
281
|
+
if (perCall !== undefined)
|
|
282
|
+
cfg.videoPerCallCapUsd = perCall;
|
|
283
|
+
if (daily !== undefined)
|
|
284
|
+
cfg.videoDailyCapUsd = daily;
|
|
285
|
+
writeConfig(cfg);
|
|
286
|
+
console.log(`Video caps: $${cfg.videoPerCallCapUsd ?? 2} per call, $${cfg.videoDailyCapUsd ?? 5} per day`);
|
|
287
|
+
});
|
|
288
|
+
});
|
|
176
289
|
}
|
|
177
290
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","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C,IAAI,CAAC,CAAC,CAAC,CAAA;YACf,OAAM;QACR,CAAC;QACD,UAAU,CAAC,CAAC,GAAG,EAAE,EAAE;YACjB,IAAI,OAAO,KAAK,SAAS;gBAAE,GAAG,CAAC,kBAAkB,GAAG,OAAO,CAAA;YAC3D,IAAI,KAAK,KAAK,SAAS;gBAAE,GAAG,CAAC,gBAAgB,GAAG,KAAK,CAAA;YACrD,WAAW,CAAC,GAAG,CAAC,CAAA;YAChB,OAAO,CAAC,GAAG,CAAC,gBAAgB,GAAG,CAAC,kBAAkB,IAAI,CAAC,eAAe,GAAG,CAAC,gBAAgB,IAAI,CAAC,UAAU,CAAC,CAAA;QAC5G,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -12,5 +12,10 @@ export declare function checkImageGeneration(): Promise<{
|
|
|
12
12
|
status: 'pass' | 'warn';
|
|
13
13
|
message: string;
|
|
14
14
|
}>;
|
|
15
|
+
/** Video is optional: not configured is a warning with the setup commands. Never prints a key or token. */
|
|
16
|
+
export declare function checkVideoGeneration(): Promise<{
|
|
17
|
+
status: 'pass' | 'warn';
|
|
18
|
+
message: string;
|
|
19
|
+
}>;
|
|
15
20
|
export declare function registerDoctor(program: Command): void;
|
|
16
21
|
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQvE,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOrE;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAKD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAMrG;AAED,0GAA0G;AAC1G,wBAAsB,oBAAoB,IAAI,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAMlG;AAmBD,2GAA2G;AAC3G,wBAAsB,oBAAoB,IAAI,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAwBlG;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAqIrD"}
|