@clipwright/core 0.78.0 → 0.80.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/dist/account.d.ts +1 -0
- package/dist/account.js +1 -0
- package/dist/ad-guide.d.ts +2 -1
- package/dist/ad-guide.js +4 -4
- package/dist/api-failure.d.ts +1 -0
- package/dist/api-failure.js +6 -3
- package/dist/contract-dispositions.d.ts +20 -4
- package/dist/contract-dispositions.js +3 -0
- package/dist/contracts/v1/workflow-brief.d.ts +34 -4
- package/dist/contracts/v1/workflow-brief.js +12 -3
- package/dist/contracts/v1/workflow-catalog.d.ts +52 -4
- package/dist/contracts/v1/workflow-client.d.ts +17 -2
- package/dist/contracts/v1/workflow-execution.d.ts +26 -0
- package/dist/contracts/v1/workflow-next.d.ts +13 -0
- package/dist/contracts/v1/workflow-plan.d.ts +69 -6
- package/dist/contracts/v1/workflow-run-read.d.ts +36 -0
- package/dist/edit-style-names.d.ts +9 -0
- package/dist/edit-style-names.js +4 -0
- package/dist/edit-style.d.ts +70 -0
- package/dist/edit-style.js +202 -0
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +2 -0
- package/dist/film-guide.d.ts +2 -1
- package/dist/film-guide.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/mcp-ugc-descriptions.d.ts +2 -1
- package/dist/mcp-ugc-descriptions.js +5 -3
- package/dist/own-agent-price.d.ts +9 -3
- package/dist/own-agent-price.js +18 -5
- package/dist/own-agent-runs.d.ts +6 -2
- package/dist/own-agent-runs.js +11 -4
- package/dist/prices.js +3 -2
- package/dist/reference-analysis.d.ts +13 -0
- package/dist/reference-analysis.js +10 -1
- package/dist/reference-display.d.ts +2 -0
- package/dist/reference-display.js +9 -1
- package/dist/run-static-warnings.js +2 -2
- package/dist/skills.d.ts +186 -111
- package/dist/skills.js +97 -39
- package/dist/speech-words.d.ts +2 -0
- package/dist/speech-words.js +70 -0
- package/dist/voice-admission.d.ts +34 -27
- package/dist/workflows/methods/faceless-explainer.d.ts +7 -2
- package/dist/workflows/methods/kinetic-launch.d.ts +14 -4
- package/dist/workflows/methods/product-image-story.d.ts +7 -2
- package/dist/workflows/methods/reference-remake.d.ts +7 -2
- package/dist/workflows/methods/reference-remake.js +1 -1
- package/dist/workflows/methods/shared.d.ts +7 -2
- package/dist/workflows/methods/ugc-faq-answer.d.ts +7 -2
- package/dist/workflows/methods/ugc-faq-answer.js +1 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +7 -2
- package/dist/workflows/methods/ugc-product-intro.js +1 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +14 -4
- package/dist/workflows/reference-remake.d.ts +9 -1
- package/dist/workflows/reference-remake.js +3 -2
- package/dist/workflows/validate.js +4 -2
- package/package.json +1 -1
package/dist/speech-words.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { WordTiming } from "./tts-backend.js";
|
|
2
2
|
export declare const LEXICAL_WORD: RegExp;
|
|
3
3
|
export declare function lexicalWords(text: string): string[];
|
|
4
|
+
export declare function withoutAudioTags(text: string): string;
|
|
5
|
+
export declare function withoutAudioTagWords<W>(words: readonly W[], textOf: (word: W) => string, withText: (word: W, text: string) => W): W[];
|
|
4
6
|
export declare function lexicalWordTimings(words: readonly WordTiming[]): WordTiming[];
|
package/dist/speech-words.js
CHANGED
|
@@ -2,6 +2,76 @@ export const LEXICAL_WORD = /[\p{L}\p{N}\p{M}]+(?:['’][\p{L}\p{N}\p{M}]+)*/gu;
|
|
|
2
2
|
export function lexicalWords(text) {
|
|
3
3
|
return text.normalize("NFKC").match(LEXICAL_WORD) ?? [];
|
|
4
4
|
}
|
|
5
|
+
const AUDIO_TAG = /\[[^[\]]+\]/gu;
|
|
6
|
+
const tagSpans = (text) => [...text.matchAll(AUDIO_TAG)].filter(match => {
|
|
7
|
+
const inner = match[0].slice(1, -1), length = inner.replace(/\s+/gu, " ").length;
|
|
8
|
+
return length <= 40 && (inner.match(/\s+/gu)?.length ?? 0) <= 3;
|
|
9
|
+
}).map(match => [match.index, match.index + match[0].length]);
|
|
10
|
+
const blank = (char) => char === " " || char === "\t";
|
|
11
|
+
const PAUSE_MARK = /[.,!?;:…]/u;
|
|
12
|
+
export function withoutAudioTags(text) {
|
|
13
|
+
const spans = tagSpans(text);
|
|
14
|
+
if (!spans.length)
|
|
15
|
+
return text;
|
|
16
|
+
const parts = [];
|
|
17
|
+
let at = 0;
|
|
18
|
+
const last = () => parts.at(-1)?.at(-1);
|
|
19
|
+
for (const [start, end] of spans) {
|
|
20
|
+
if (start > at)
|
|
21
|
+
parts.push(text.slice(at, start));
|
|
22
|
+
at = end;
|
|
23
|
+
if (!parts.length || blank(last()))
|
|
24
|
+
while (blank(text[at]))
|
|
25
|
+
at++;
|
|
26
|
+
const next = text[at];
|
|
27
|
+
if (next !== undefined && PAUSE_MARK.test(next)) {
|
|
28
|
+
while (parts.length) {
|
|
29
|
+
const part = parts.pop();
|
|
30
|
+
let cut = part.length;
|
|
31
|
+
while (cut > 0 && blank(part[cut - 1]))
|
|
32
|
+
cut--;
|
|
33
|
+
if (cut > 0) {
|
|
34
|
+
parts.push(cut === part.length ? part : part.slice(0, cut));
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else if (next !== undefined && !/\s/u.test(next) && parts.length && !/\s/u.test(last()))
|
|
40
|
+
parts.push(" ");
|
|
41
|
+
}
|
|
42
|
+
parts.push(text.slice(at));
|
|
43
|
+
return parts.join("").trim();
|
|
44
|
+
}
|
|
45
|
+
export function withoutAudioTagWords(words, textOf, withText) {
|
|
46
|
+
const texts = words.map(word => textOf(word)), spans = tagSpans(texts.join(" "));
|
|
47
|
+
if (!spans.length)
|
|
48
|
+
return [...words];
|
|
49
|
+
const out = [];
|
|
50
|
+
let from = 0, span = 0;
|
|
51
|
+
for (const [at, word] of words.entries()) {
|
|
52
|
+
const text = texts[at], to = from + text.length;
|
|
53
|
+
while (span < spans.length && spans[span][1] <= from)
|
|
54
|
+
span++;
|
|
55
|
+
let kept = "", cursor = from;
|
|
56
|
+
for (let s = span; s < spans.length && spans[s][0] < to; s++) {
|
|
57
|
+
const [start, end] = spans[s];
|
|
58
|
+
if (start > cursor)
|
|
59
|
+
kept += text.slice(cursor - from, start - from);
|
|
60
|
+
kept += " ";
|
|
61
|
+
cursor = Math.max(cursor, Math.min(end, to));
|
|
62
|
+
}
|
|
63
|
+
if (cursor === from && kept === "") {
|
|
64
|
+
out.push(word);
|
|
65
|
+
from = to + 1;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
kept = `${kept}${text.slice(cursor - from)}`.trim().replace(/\s+/gu, " ");
|
|
69
|
+
if (lexicalWords(kept).length)
|
|
70
|
+
out.push(withText(word, kept));
|
|
71
|
+
from = to + 1;
|
|
72
|
+
}
|
|
73
|
+
return out;
|
|
74
|
+
}
|
|
5
75
|
export function lexicalWordTimings(words) {
|
|
6
76
|
const out = [];
|
|
7
77
|
let lead = "";
|
|
@@ -4126,33 +4126,11 @@ export declare const serverUgcInput: z.ZodObject<{
|
|
|
4126
4126
|
no_actor: "no_actor";
|
|
4127
4127
|
no_people: "no_people";
|
|
4128
4128
|
}>>;
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
broadcast: "broadcast";
|
|
4135
|
-
bubblegum: "bubblegum";
|
|
4136
|
-
campfire: "campfire";
|
|
4137
|
-
clutch: "clutch";
|
|
4138
|
-
crayon: "crayon";
|
|
4139
|
-
genz: "genz";
|
|
4140
|
-
headline: "headline";
|
|
4141
|
-
highlighter: "highlighter";
|
|
4142
|
-
hormozi: "hormozi";
|
|
4143
|
-
instagram: "instagram";
|
|
4144
|
-
lecture: "lecture";
|
|
4145
|
-
lyrics: "lyrics";
|
|
4146
|
-
midnight: "midnight";
|
|
4147
|
-
minimal: "minimal";
|
|
4148
|
-
minimalist: "minimalist";
|
|
4149
|
-
neon: "neon";
|
|
4150
|
-
plottwist: "plottwist";
|
|
4151
|
-
promo: "promo";
|
|
4152
|
-
punch: "punch";
|
|
4153
|
-
studio: "studio";
|
|
4154
|
-
tiktok: "tiktok";
|
|
4155
|
-
youtube: "youtube";
|
|
4129
|
+
edit_style: z.ZodOptional<z.ZodEnum<{
|
|
4130
|
+
bare: "bare";
|
|
4131
|
+
"bold-v1": "bold-v1";
|
|
4132
|
+
"calm-v1": "calm-v1";
|
|
4133
|
+
"house-v1": "house-v1";
|
|
4156
4134
|
}>>;
|
|
4157
4135
|
caption_emphasis: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4158
4136
|
quote: z.ZodString;
|
|
@@ -4235,6 +4213,34 @@ export declare const serverUgcInput: z.ZodObject<{
|
|
|
4235
4213
|
white: "white";
|
|
4236
4214
|
}>>;
|
|
4237
4215
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
4216
|
+
captions: z.ZodDefault<z.ZodBoolean>;
|
|
4217
|
+
caption_style: z.ZodDefault<z.ZodEnum<{
|
|
4218
|
+
accent: "accent";
|
|
4219
|
+
arcade: "arcade";
|
|
4220
|
+
bassdrop: "bassdrop";
|
|
4221
|
+
broadcast: "broadcast";
|
|
4222
|
+
bubblegum: "bubblegum";
|
|
4223
|
+
campfire: "campfire";
|
|
4224
|
+
clutch: "clutch";
|
|
4225
|
+
crayon: "crayon";
|
|
4226
|
+
genz: "genz";
|
|
4227
|
+
headline: "headline";
|
|
4228
|
+
highlighter: "highlighter";
|
|
4229
|
+
hormozi: "hormozi";
|
|
4230
|
+
instagram: "instagram";
|
|
4231
|
+
lecture: "lecture";
|
|
4232
|
+
lyrics: "lyrics";
|
|
4233
|
+
midnight: "midnight";
|
|
4234
|
+
minimal: "minimal";
|
|
4235
|
+
minimalist: "minimalist";
|
|
4236
|
+
neon: "neon";
|
|
4237
|
+
plottwist: "plottwist";
|
|
4238
|
+
promo: "promo";
|
|
4239
|
+
punch: "punch";
|
|
4240
|
+
studio: "studio";
|
|
4241
|
+
tiktok: "tiktok";
|
|
4242
|
+
youtube: "youtube";
|
|
4243
|
+
}>>;
|
|
4238
4244
|
}, z.core.$strip>;
|
|
4239
4245
|
export declare function inPresetView<T extends z.ZodType>(schema: T, view: "published" | "all"): z.ZodPipe<z.ZodUnknown, z.ZodTransform<Awaited<z.output<T>>, unknown>>;
|
|
4240
4246
|
export declare function facelessVoiceRefusal(voice: string, voices?: readonly CatalogFileVoice[]): string | undefined;
|
|
@@ -7555,6 +7561,7 @@ export declare function filmVoiceRefusal(voice: string, options?: {
|
|
|
7555
7561
|
export declare function serverFilmVoiceInputWith(voiceRefusal: (voice: string) => string | undefined): z.ZodObject<{
|
|
7556
7562
|
text: z.ZodString;
|
|
7557
7563
|
voice: z.ZodOptional<z.ZodString>;
|
|
7564
|
+
tempo: z.ZodOptional<z.ZodNumber>;
|
|
7558
7565
|
cut_id: z.ZodOptional<z.ZodString>;
|
|
7559
7566
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
7560
7567
|
}, z.core.$strict>;
|
|
@@ -208,8 +208,9 @@ export declare const facelessExplainer: {
|
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
broll_url?: string | undefined;
|
|
210
210
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
211
|
-
captions
|
|
212
|
-
caption_style
|
|
211
|
+
captions?: boolean | undefined;
|
|
212
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
213
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
213
214
|
caption_mode?: "full" | "highlights" | undefined;
|
|
214
215
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
215
216
|
caption_place?: {
|
|
@@ -4182,6 +4183,10 @@ export declare const facelessExplainer: {
|
|
|
4182
4183
|
added?: string[] | undefined;
|
|
4183
4184
|
move_warnings?: string[] | undefined;
|
|
4184
4185
|
voice_warnings?: string[] | undefined;
|
|
4186
|
+
edit_style_default?: {
|
|
4187
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4188
|
+
left_out?: string[] | undefined;
|
|
4189
|
+
} | undefined;
|
|
4185
4190
|
review_notes?: string[] | undefined;
|
|
4186
4191
|
review_warnings?: string[] | undefined;
|
|
4187
4192
|
};
|
|
@@ -208,8 +208,9 @@ export declare const kineticLaunch: {
|
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
broll_url?: string | undefined;
|
|
210
210
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
211
|
-
captions
|
|
212
|
-
caption_style
|
|
211
|
+
captions?: boolean | undefined;
|
|
212
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
213
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
213
214
|
caption_mode?: "full" | "highlights" | undefined;
|
|
214
215
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
215
216
|
caption_place?: {
|
|
@@ -4182,6 +4183,10 @@ export declare const kineticLaunch: {
|
|
|
4182
4183
|
added?: string[] | undefined;
|
|
4183
4184
|
move_warnings?: string[] | undefined;
|
|
4184
4185
|
voice_warnings?: string[] | undefined;
|
|
4186
|
+
edit_style_default?: {
|
|
4187
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4188
|
+
left_out?: string[] | undefined;
|
|
4189
|
+
} | undefined;
|
|
4185
4190
|
review_notes?: string[] | undefined;
|
|
4186
4191
|
review_warnings?: string[] | undefined;
|
|
4187
4192
|
};
|
|
@@ -4410,8 +4415,9 @@ export declare const kineticLaunchFilm: {
|
|
|
4410
4415
|
name?: string | undefined;
|
|
4411
4416
|
broll_url?: string | undefined;
|
|
4412
4417
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
4413
|
-
captions
|
|
4414
|
-
caption_style
|
|
4418
|
+
captions?: boolean | undefined;
|
|
4419
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
4420
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
4415
4421
|
caption_mode?: "full" | "highlights" | undefined;
|
|
4416
4422
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
4417
4423
|
caption_place?: {
|
|
@@ -8384,6 +8390,10 @@ export declare const kineticLaunchFilm: {
|
|
|
8384
8390
|
added?: string[] | undefined;
|
|
8385
8391
|
move_warnings?: string[] | undefined;
|
|
8386
8392
|
voice_warnings?: string[] | undefined;
|
|
8393
|
+
edit_style_default?: {
|
|
8394
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
8395
|
+
left_out?: string[] | undefined;
|
|
8396
|
+
} | undefined;
|
|
8387
8397
|
review_notes?: string[] | undefined;
|
|
8388
8398
|
review_warnings?: string[] | undefined;
|
|
8389
8399
|
};
|
|
@@ -208,8 +208,9 @@ export declare const productImageStory: {
|
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
broll_url?: string | undefined;
|
|
210
210
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
211
|
-
captions
|
|
212
|
-
caption_style
|
|
211
|
+
captions?: boolean | undefined;
|
|
212
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
213
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
213
214
|
caption_mode?: "full" | "highlights" | undefined;
|
|
214
215
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
215
216
|
caption_place?: {
|
|
@@ -4182,6 +4183,10 @@ export declare const productImageStory: {
|
|
|
4182
4183
|
added?: string[] | undefined;
|
|
4183
4184
|
move_warnings?: string[] | undefined;
|
|
4184
4185
|
voice_warnings?: string[] | undefined;
|
|
4186
|
+
edit_style_default?: {
|
|
4187
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4188
|
+
left_out?: string[] | undefined;
|
|
4189
|
+
} | undefined;
|
|
4185
4190
|
review_notes?: string[] | undefined;
|
|
4186
4191
|
review_warnings?: string[] | undefined;
|
|
4187
4192
|
};
|
|
@@ -208,8 +208,9 @@ export declare const referenceRemake: {
|
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
broll_url?: string | undefined;
|
|
210
210
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
211
|
-
captions
|
|
212
|
-
caption_style
|
|
211
|
+
captions?: boolean | undefined;
|
|
212
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
213
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
213
214
|
caption_mode?: "full" | "highlights" | undefined;
|
|
214
215
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
215
216
|
caption_place?: {
|
|
@@ -4182,6 +4183,10 @@ export declare const referenceRemake: {
|
|
|
4182
4183
|
added?: string[] | undefined;
|
|
4183
4184
|
move_warnings?: string[] | undefined;
|
|
4184
4185
|
voice_warnings?: string[] | undefined;
|
|
4186
|
+
edit_style_default?: {
|
|
4187
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4188
|
+
left_out?: string[] | undefined;
|
|
4189
|
+
} | undefined;
|
|
4185
4190
|
review_notes?: string[] | undefined;
|
|
4186
4191
|
review_warnings?: string[] | undefined;
|
|
4187
4192
|
};
|
|
@@ -3,7 +3,7 @@ import { defineWorkflowMethod, nativeLimitations, nativeQa, verticalOutput } fro
|
|
|
3
3
|
const script = 'Missed calls cost you customers. It answers every call and books the visit. Here is one at two in the morning. ' +
|
|
4
4
|
'It books the cleaning while you sleep. Set it up today.';
|
|
5
5
|
export const referenceRemake = defineWorkflowMethod({
|
|
6
|
-
id: 'reference-remake', version: 1, content_digest: '
|
|
6
|
+
id: 'reference-remake', version: 1, content_digest: '4aae39785abe064fd4aac90bd4174028bac9c0debdf4311412512e0420a2a7ff', authoring_status: 'ready',
|
|
7
7
|
title: 'Remake a reference ad in its style with your script',
|
|
8
8
|
purpose: 'Lay an accepted script on the beats, graphics, captions and sounds of an analysed reference ad, without changing a word.',
|
|
9
9
|
required_inputs: ['audience', 'message', 'script'], required_features: ['exact_script', 'actor', 'voice', 'long_form'],
|
|
@@ -227,8 +227,9 @@ export declare function defineWorkflowMethod(value: MethodDescriptorArgs): {
|
|
|
227
227
|
name?: string | undefined;
|
|
228
228
|
broll_url?: string | undefined;
|
|
229
229
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
230
|
-
captions
|
|
231
|
-
caption_style
|
|
230
|
+
captions?: boolean | undefined;
|
|
231
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
232
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
232
233
|
caption_mode?: "full" | "highlights" | undefined;
|
|
233
234
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
234
235
|
caption_place?: {
|
|
@@ -4201,6 +4202,10 @@ export declare function defineWorkflowMethod(value: MethodDescriptorArgs): {
|
|
|
4201
4202
|
added?: string[] | undefined;
|
|
4202
4203
|
move_warnings?: string[] | undefined;
|
|
4203
4204
|
voice_warnings?: string[] | undefined;
|
|
4205
|
+
edit_style_default?: {
|
|
4206
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4207
|
+
left_out?: string[] | undefined;
|
|
4208
|
+
} | undefined;
|
|
4204
4209
|
review_notes?: string[] | undefined;
|
|
4205
4210
|
review_warnings?: string[] | undefined;
|
|
4206
4211
|
};
|
|
@@ -208,8 +208,9 @@ export declare const ugcFaqAnswer: {
|
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
broll_url?: string | undefined;
|
|
210
210
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
211
|
-
captions
|
|
212
|
-
caption_style
|
|
211
|
+
captions?: boolean | undefined;
|
|
212
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
213
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
213
214
|
caption_mode?: "full" | "highlights" | undefined;
|
|
214
215
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
215
216
|
caption_place?: {
|
|
@@ -4182,6 +4183,10 @@ export declare const ugcFaqAnswer: {
|
|
|
4182
4183
|
added?: string[] | undefined;
|
|
4183
4184
|
move_warnings?: string[] | undefined;
|
|
4184
4185
|
voice_warnings?: string[] | undefined;
|
|
4186
|
+
edit_style_default?: {
|
|
4187
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4188
|
+
left_out?: string[] | undefined;
|
|
4189
|
+
} | undefined;
|
|
4185
4190
|
review_notes?: string[] | undefined;
|
|
4186
4191
|
review_warnings?: string[] | undefined;
|
|
4187
4192
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineWorkflowMethod, nativeLimitations, nativeQa, verticalOutput } from './shared.js';
|
|
2
2
|
export const ugcFaqAnswer = defineWorkflowMethod({
|
|
3
|
-
id: 'ugc-faq-answer', version: 1, content_digest: '
|
|
3
|
+
id: 'ugc-faq-answer', version: 1, content_digest: '3b4e3247df42330aca763e92605ac60f7cd6a765cac5eb697319219fb22ae039', authoring_status: 'ready', title: 'Answer one product question',
|
|
4
4
|
purpose: 'Answer a single audience question directly, explain the supplied facts, and give a useful next step.',
|
|
5
5
|
required_inputs: ['audience', 'message', 'question', 'script'], required_features: ['exact_script', 'actor', 'voice'],
|
|
6
6
|
script_rules: { structure: ['answer', 'explanation', 'next_step'], instructions: [
|
|
@@ -208,8 +208,9 @@ export declare const ugcProductIntro: {
|
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
broll_url?: string | undefined;
|
|
210
210
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
211
|
-
captions
|
|
212
|
-
caption_style
|
|
211
|
+
captions?: boolean | undefined;
|
|
212
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
213
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
213
214
|
caption_mode?: "full" | "highlights" | undefined;
|
|
214
215
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
215
216
|
caption_place?: {
|
|
@@ -4182,6 +4183,10 @@ export declare const ugcProductIntro: {
|
|
|
4182
4183
|
added?: string[] | undefined;
|
|
4183
4184
|
move_warnings?: string[] | undefined;
|
|
4184
4185
|
voice_warnings?: string[] | undefined;
|
|
4186
|
+
edit_style_default?: {
|
|
4187
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4188
|
+
left_out?: string[] | undefined;
|
|
4189
|
+
} | undefined;
|
|
4185
4190
|
review_notes?: string[] | undefined;
|
|
4186
4191
|
review_warnings?: string[] | undefined;
|
|
4187
4192
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineWorkflowMethod, nativeLimitations, nativeQa, verticalOutput } from './shared.js';
|
|
2
2
|
export const ugcProductIntro = defineWorkflowMethod({
|
|
3
|
-
id: 'ugc-product-intro', version: 1, content_digest: '
|
|
3
|
+
id: 'ugc-product-intro', version: 1, content_digest: '50c0e7eb2993e180862b3b7fbdb1f6b32d43e02426cedd28a18cc74eb092498d', authoring_status: 'ready', title: 'Introduce a product through its benefit',
|
|
4
4
|
purpose: 'Help a defined audience understand one verified product benefit and take one next step.',
|
|
5
5
|
required_inputs: ['audience', 'message', 'product', 'script'], required_features: ['exact_script', 'actor', 'voice'],
|
|
6
6
|
script_rules: { structure: ['opening', 'problem', 'solution', 'cta'], instructions: [
|
|
@@ -208,8 +208,9 @@ export declare const websiteProofDemo: {
|
|
|
208
208
|
name?: string | undefined;
|
|
209
209
|
broll_url?: string | undefined;
|
|
210
210
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
211
|
-
captions
|
|
212
|
-
caption_style
|
|
211
|
+
captions?: boolean | undefined;
|
|
212
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
213
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
213
214
|
caption_mode?: "full" | "highlights" | undefined;
|
|
214
215
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
215
216
|
caption_place?: {
|
|
@@ -4182,6 +4183,10 @@ export declare const websiteProofDemo: {
|
|
|
4182
4183
|
added?: string[] | undefined;
|
|
4183
4184
|
move_warnings?: string[] | undefined;
|
|
4184
4185
|
voice_warnings?: string[] | undefined;
|
|
4186
|
+
edit_style_default?: {
|
|
4187
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
4188
|
+
left_out?: string[] | undefined;
|
|
4189
|
+
} | undefined;
|
|
4185
4190
|
review_notes?: string[] | undefined;
|
|
4186
4191
|
review_warnings?: string[] | undefined;
|
|
4187
4192
|
};
|
|
@@ -4410,8 +4415,9 @@ export declare const websiteProofDemoFilm: {
|
|
|
4410
4415
|
name?: string | undefined;
|
|
4411
4416
|
broll_url?: string | undefined;
|
|
4412
4417
|
broll_policy?: "anyone" | "no_actor" | "no_people" | undefined;
|
|
4413
|
-
captions
|
|
4414
|
-
caption_style
|
|
4418
|
+
captions?: boolean | undefined;
|
|
4419
|
+
caption_style?: "accent" | "arcade" | "bassdrop" | "broadcast" | "bubblegum" | "campfire" | "clutch" | "crayon" | "genz" | "headline" | "highlighter" | "hormozi" | "instagram" | "lecture" | "lyrics" | "midnight" | "minimal" | "minimalist" | "neon" | "plottwist" | "promo" | "punch" | "studio" | "tiktok" | "youtube" | undefined;
|
|
4420
|
+
edit_style?: "bare" | "bold-v1" | "calm-v1" | "house-v1" | undefined;
|
|
4415
4421
|
caption_mode?: "full" | "highlights" | undefined;
|
|
4416
4422
|
caption_position?: "bottom" | "lower" | "middle" | "top" | undefined;
|
|
4417
4423
|
caption_place?: {
|
|
@@ -8384,6 +8390,10 @@ export declare const websiteProofDemoFilm: {
|
|
|
8384
8390
|
added?: string[] | undefined;
|
|
8385
8391
|
move_warnings?: string[] | undefined;
|
|
8386
8392
|
voice_warnings?: string[] | undefined;
|
|
8393
|
+
edit_style_default?: {
|
|
8394
|
+
fields: ("caption_emphasis" | "caption_style" | "captions" | "edit_sounds")[];
|
|
8395
|
+
left_out?: string[] | undefined;
|
|
8396
|
+
} | undefined;
|
|
8387
8397
|
review_notes?: string[] | undefined;
|
|
8388
8398
|
review_warnings?: string[] | undefined;
|
|
8389
8399
|
};
|
|
@@ -3,6 +3,7 @@ import { type ReferenceProfileInput as ReferenceProfile } from '../reference-pro
|
|
|
3
3
|
import { type GenerationShot } from '../generation-shot.js';
|
|
4
4
|
import { LIVE_SHOT_PRODUCT_PLACEMENTS } from '../skills.js';
|
|
5
5
|
import type { CapabilityProfile } from '../contracts/v1/workflow-catalog.js';
|
|
6
|
+
import type { EditStyleField } from '../edit-style.js';
|
|
6
7
|
import { type WorkflowPlanDocument } from '../contracts/v1/workflow-plan.js';
|
|
7
8
|
import { type WorkflowIssue } from '../contracts/v1/workflow-primitives.js';
|
|
8
9
|
import { type RemakeChooser } from './remake-chooser.js';
|
|
@@ -2144,5 +2145,12 @@ export declare function sceneBriefOf(graphic: ReferenceGraphic, asked: boolean,
|
|
|
2144
2145
|
} | undefined;
|
|
2145
2146
|
export declare function referenceScriptWords(script: string): ReferenceScriptWord[];
|
|
2146
2147
|
export declare const proportionalSpans: ReferenceSpanPlanner;
|
|
2147
|
-
export
|
|
2148
|
+
export type RemakeStyle = (native: Record<string, unknown>) => {
|
|
2149
|
+
input: Record<string, unknown>;
|
|
2150
|
+
pins?: {
|
|
2151
|
+
fields: EditStyleField[];
|
|
2152
|
+
left_out?: string[];
|
|
2153
|
+
};
|
|
2154
|
+
};
|
|
2155
|
+
export declare function compileReferenceRemake(input: unknown, capabilities: CapabilityProfile, planSpans?: ReferenceSpanPlanner, choose?: RemakeChooser, facts?: ReferenceAssetFacts, style?: RemakeStyle): ReferenceRemakeResult;
|
|
2148
2156
|
export {};
|
|
@@ -327,7 +327,7 @@ function callStageOf(profile, listening, note) {
|
|
|
327
327
|
note(listening, `the call phone's measured staging (${stage.error.issues[0]?.message ?? 'out of bounds'})`, 'the reference call scene\'s place and rise');
|
|
328
328
|
return stage.success ? stage.data : undefined;
|
|
329
329
|
}
|
|
330
|
-
export function compileReferenceRemake(input, capabilities, planSpans = proportionalSpans, choose, facts) {
|
|
330
|
+
export function compileReferenceRemake(input, capabilities, planSpans = proportionalSpans, choose, facts, style) {
|
|
331
331
|
const parsed = planReferenceRemake.safeParse(input);
|
|
332
332
|
if (!parsed.success)
|
|
333
333
|
return { kind: 'invalid', issues: parsed.error.issues.map(issue => ({ kind: 'invalid_request', path: issue.path.join('.'), message: issue.message })) };
|
|
@@ -1632,11 +1632,12 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1632
1632
|
suggested_substitute: 'fewer graphics in the reference, or edit the plan' }];
|
|
1633
1633
|
})();
|
|
1634
1634
|
const firstSentence = parts({ start: 0, end: words.length })[0];
|
|
1635
|
+
const styled = style?.(native);
|
|
1635
1636
|
const document = workflowPlanDocument.safeParse({ v: 1,
|
|
1636
1637
|
method: { method_id: method.id, version: method.version, content_digest: method.content_digest, capability_digest: capabilities.content_digest },
|
|
1637
1638
|
brief: { audience: request.audience ?? 'Viewers of short ads in the style of the reference',
|
|
1638
1639
|
message: request.message ?? script.slice(words[firstSentence.start].from, words[firstSentence.end - 1].to),
|
|
1639
|
-
script, native: { skill: 'make_ugc', input: native },
|
|
1640
|
+
script, native: { skill: 'make_ugc', input: styled?.input ?? native }, ...(styled?.pins ? { edit_style_default: styled.pins } : {}),
|
|
1640
1641
|
reference_profile: { ...withoutWords(profile), music: '', unmapped,
|
|
1641
1642
|
beats: profile.beats.map((beat, index) => ({ ...beat, spoken_summary: '', graphics: beat.graphics.map((graphic, at) => ({ ...graphic, label_hint: '',
|
|
1642
1643
|
...(converted.has(graphic) ? { kind: converted.get(graphic) } : scened.has(`${index}:${at}`) ? { kind: 'scene' } : {}) })) })) },
|
|
@@ -5,6 +5,7 @@ import { planSemanticInserts } from '../semantic-inserts.js';
|
|
|
5
5
|
import { resolveFacelessCustomerAnchors } from '../faceless-customer-anchors.js';
|
|
6
6
|
import { FIELD_DISPOSITIONS } from '../contract-dispositions.js';
|
|
7
7
|
import { admittedUgcResolution, DEFAULT_RESOLUTION, makeUgcInputShape } from '../skills.js';
|
|
8
|
+
import { STYLE_FIELD_DEFAULTS } from '../edit-style-names.js';
|
|
8
9
|
import { referenceProfileWarnings } from '../reference-profile.js';
|
|
9
10
|
import { queryWorkflowMethod } from './catalog.js';
|
|
10
11
|
import { workflowProductReferenceWarnings } from './product-references.js';
|
|
@@ -19,8 +20,9 @@ const nativeFieldRequested = (input, field, skill) => {
|
|
|
19
20
|
return false;
|
|
20
21
|
if (skill === 'make_ugc' && field in FIELD_DISPOSITIONS) {
|
|
21
22
|
const standard = makeUgcInputShape[field].safeParse(undefined);
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
const fallback = standard.success && standard.data !== undefined ? standard.data : STYLE_FIELD_DEFAULTS[field];
|
|
24
|
+
if (fallback !== undefined)
|
|
25
|
+
return input[field] !== fallback;
|
|
24
26
|
}
|
|
25
27
|
return true;
|
|
26
28
|
};
|