post-engineer-mcp 1.40.0 → 1.42.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/README.md +59 -25
- package/dist/analytics.d.ts +5 -3
- package/dist/analytics.js +42 -124
- package/dist/analytics.js.map +1 -1
- package/dist/client-posts.d.ts +5 -1
- package/dist/client-posts.js +4 -0
- package/dist/client-posts.js.map +1 -1
- package/dist/client-prompts.d.ts +16 -0
- package/dist/client-prompts.js +50 -0
- package/dist/client-prompts.js.map +1 -0
- package/dist/client-types.d.ts +10 -2
- package/dist/client.js +15 -88
- package/dist/client.js.map +1 -1
- package/dist/cloned-voice-client.d.ts +12 -0
- package/dist/cloned-voice-client.js +103 -20
- package/dist/cloned-voice-client.js.map +1 -1
- package/dist/cloned-voice-tools.d.ts +40 -6
- package/dist/cloned-voice-tools.js +76 -6
- package/dist/cloned-voice-tools.js.map +1 -1
- package/dist/errors.d.ts +11 -0
- package/dist/errors.js +43 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +28 -35
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +22 -1
- package/dist/limits.js +22 -1
- package/dist/limits.js.map +1 -1
- package/dist/persona-avatar.d.ts +29 -0
- package/dist/persona-avatar.js +115 -0
- package/dist/persona-avatar.js.map +1 -0
- package/dist/prompts.d.ts +5 -8
- package/dist/prompts.js +45 -46
- package/dist/prompts.js.map +1 -1
- package/dist/recipe-session.d.ts +42 -0
- package/dist/recipe-session.js +125 -0
- package/dist/recipe-session.js.map +1 -0
- package/dist/script-segments.d.ts +9 -0
- package/dist/script-segments.js +47 -1
- package/dist/script-segments.js.map +1 -1
- package/dist/single-video-shape.d.ts +201 -9
- package/dist/single-video-shape.js +19 -2
- package/dist/single-video-shape.js.map +1 -1
- package/dist/tools-posts.d.ts +19 -4
- package/dist/tools-posts.js +15 -4
- package/dist/tools-posts.js.map +1 -1
- package/dist/tools-prompts.d.ts +16 -0
- package/dist/tools-prompts.js +89 -0
- package/dist/tools-prompts.js.map +1 -0
- package/dist/tools-single-video.js +1 -1
- package/dist/tools-single-video.js.map +1 -1
- package/dist/tools.d.ts +82 -14
- package/dist/tools.js +8 -12
- package/dist/tools.js.map +1 -1
- package/dist/voice-filters.d.ts +5 -6
- package/dist/voice-filters.js +12 -43
- package/dist/voice-filters.js.map +1 -1
- package/package.json +1 -2
- package/dist/prompt-base.d.ts +0 -4
- package/dist/prompt-base.js +0 -134
- package/dist/prompt-base.js.map +0 -1
|
@@ -1,16 +1,52 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const SegmentOverlayShape: z.ZodObject<{
|
|
3
|
+
title: z.ZodString;
|
|
4
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
5
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
title: string;
|
|
8
|
+
subtitle?: string | undefined;
|
|
9
|
+
badge?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
title: string;
|
|
12
|
+
subtitle?: string | undefined;
|
|
13
|
+
badge?: string | undefined;
|
|
14
|
+
}>;
|
|
2
15
|
export declare const ScriptSegmentShape: {
|
|
3
16
|
kind: z.ZodEnum<["hook", "body", "cta"]>;
|
|
4
17
|
text: z.ZodString;
|
|
5
18
|
media: z.ZodOptional<z.ZodObject<{
|
|
6
19
|
mediaId: z.ZodOptional<z.ZodString>;
|
|
7
20
|
url: z.ZodOptional<z.ZodString>;
|
|
21
|
+
overlay: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
24
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
title: string;
|
|
27
|
+
subtitle?: string | undefined;
|
|
28
|
+
badge?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
title: string;
|
|
31
|
+
subtitle?: string | undefined;
|
|
32
|
+
badge?: string | undefined;
|
|
33
|
+
}>>;
|
|
8
34
|
}, "strict", z.ZodTypeAny, {
|
|
9
35
|
mediaId?: string | undefined;
|
|
10
36
|
url?: string | undefined;
|
|
37
|
+
overlay?: {
|
|
38
|
+
title: string;
|
|
39
|
+
subtitle?: string | undefined;
|
|
40
|
+
badge?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
11
42
|
}, {
|
|
12
43
|
mediaId?: string | undefined;
|
|
13
44
|
url?: string | undefined;
|
|
45
|
+
overlay?: {
|
|
46
|
+
title: string;
|
|
47
|
+
subtitle?: string | undefined;
|
|
48
|
+
badge?: string | undefined;
|
|
49
|
+
} | undefined;
|
|
14
50
|
}>>;
|
|
15
51
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16
52
|
};
|
|
@@ -22,12 +58,35 @@ export declare const GeneratePersonaVideoShape: {
|
|
|
22
58
|
media: z.ZodOptional<z.ZodObject<{
|
|
23
59
|
mediaId: z.ZodOptional<z.ZodString>;
|
|
24
60
|
url: z.ZodOptional<z.ZodString>;
|
|
61
|
+
overlay: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
title: z.ZodString;
|
|
63
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
64
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
title: string;
|
|
67
|
+
subtitle?: string | undefined;
|
|
68
|
+
badge?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
title: string;
|
|
71
|
+
subtitle?: string | undefined;
|
|
72
|
+
badge?: string | undefined;
|
|
73
|
+
}>>;
|
|
25
74
|
}, "strict", z.ZodTypeAny, {
|
|
26
75
|
mediaId?: string | undefined;
|
|
27
76
|
url?: string | undefined;
|
|
77
|
+
overlay?: {
|
|
78
|
+
title: string;
|
|
79
|
+
subtitle?: string | undefined;
|
|
80
|
+
badge?: string | undefined;
|
|
81
|
+
} | undefined;
|
|
28
82
|
}, {
|
|
29
83
|
mediaId?: string | undefined;
|
|
30
84
|
url?: string | undefined;
|
|
85
|
+
overlay?: {
|
|
86
|
+
title: string;
|
|
87
|
+
subtitle?: string | undefined;
|
|
88
|
+
badge?: string | undefined;
|
|
89
|
+
} | undefined;
|
|
31
90
|
}>>;
|
|
32
91
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
33
92
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -36,6 +95,11 @@ export declare const GeneratePersonaVideoShape: {
|
|
|
36
95
|
media?: {
|
|
37
96
|
mediaId?: string | undefined;
|
|
38
97
|
url?: string | undefined;
|
|
98
|
+
overlay?: {
|
|
99
|
+
title: string;
|
|
100
|
+
subtitle?: string | undefined;
|
|
101
|
+
badge?: string | undefined;
|
|
102
|
+
} | undefined;
|
|
39
103
|
} | undefined;
|
|
40
104
|
terms?: string[] | undefined;
|
|
41
105
|
}, {
|
|
@@ -44,6 +108,11 @@ export declare const GeneratePersonaVideoShape: {
|
|
|
44
108
|
media?: {
|
|
45
109
|
mediaId?: string | undefined;
|
|
46
110
|
url?: string | undefined;
|
|
111
|
+
overlay?: {
|
|
112
|
+
title: string;
|
|
113
|
+
subtitle?: string | undefined;
|
|
114
|
+
badge?: string | undefined;
|
|
115
|
+
} | undefined;
|
|
47
116
|
} | undefined;
|
|
48
117
|
terms?: string[] | undefined;
|
|
49
118
|
}>, "many">;
|
|
@@ -100,6 +169,7 @@ export declare const GeneratePersonaVideoShape: {
|
|
|
100
169
|
imageId?: string | undefined;
|
|
101
170
|
}>>;
|
|
102
171
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
172
|
+
recipe: z.ZodOptional<z.ZodString>;
|
|
103
173
|
};
|
|
104
174
|
export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
105
175
|
personaId: z.ZodOptional<z.ZodString>;
|
|
@@ -109,12 +179,35 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
109
179
|
media: z.ZodOptional<z.ZodObject<{
|
|
110
180
|
mediaId: z.ZodOptional<z.ZodString>;
|
|
111
181
|
url: z.ZodOptional<z.ZodString>;
|
|
182
|
+
overlay: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
title: z.ZodString;
|
|
184
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
185
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
186
|
+
}, "strict", z.ZodTypeAny, {
|
|
187
|
+
title: string;
|
|
188
|
+
subtitle?: string | undefined;
|
|
189
|
+
badge?: string | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
title: string;
|
|
192
|
+
subtitle?: string | undefined;
|
|
193
|
+
badge?: string | undefined;
|
|
194
|
+
}>>;
|
|
112
195
|
}, "strict", z.ZodTypeAny, {
|
|
113
196
|
mediaId?: string | undefined;
|
|
114
197
|
url?: string | undefined;
|
|
198
|
+
overlay?: {
|
|
199
|
+
title: string;
|
|
200
|
+
subtitle?: string | undefined;
|
|
201
|
+
badge?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
115
203
|
}, {
|
|
116
204
|
mediaId?: string | undefined;
|
|
117
205
|
url?: string | undefined;
|
|
206
|
+
overlay?: {
|
|
207
|
+
title: string;
|
|
208
|
+
subtitle?: string | undefined;
|
|
209
|
+
badge?: string | undefined;
|
|
210
|
+
} | undefined;
|
|
118
211
|
}>>;
|
|
119
212
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
120
213
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -123,6 +216,11 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
123
216
|
media?: {
|
|
124
217
|
mediaId?: string | undefined;
|
|
125
218
|
url?: string | undefined;
|
|
219
|
+
overlay?: {
|
|
220
|
+
title: string;
|
|
221
|
+
subtitle?: string | undefined;
|
|
222
|
+
badge?: string | undefined;
|
|
223
|
+
} | undefined;
|
|
126
224
|
} | undefined;
|
|
127
225
|
terms?: string[] | undefined;
|
|
128
226
|
}, {
|
|
@@ -131,6 +229,11 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
131
229
|
media?: {
|
|
132
230
|
mediaId?: string | undefined;
|
|
133
231
|
url?: string | undefined;
|
|
232
|
+
overlay?: {
|
|
233
|
+
title: string;
|
|
234
|
+
subtitle?: string | undefined;
|
|
235
|
+
badge?: string | undefined;
|
|
236
|
+
} | undefined;
|
|
134
237
|
} | undefined;
|
|
135
238
|
terms?: string[] | undefined;
|
|
136
239
|
}>, "many">;
|
|
@@ -187,6 +290,7 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
187
290
|
imageId?: string | undefined;
|
|
188
291
|
}>>;
|
|
189
292
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
293
|
+
recipe: z.ZodOptional<z.ZodString>;
|
|
190
294
|
}, "strip", z.ZodTypeAny, {
|
|
191
295
|
timezone: string;
|
|
192
296
|
title: string;
|
|
@@ -197,14 +301,15 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
197
301
|
media?: {
|
|
198
302
|
mediaId?: string | undefined;
|
|
199
303
|
url?: string | undefined;
|
|
304
|
+
overlay?: {
|
|
305
|
+
title: string;
|
|
306
|
+
subtitle?: string | undefined;
|
|
307
|
+
badge?: string | undefined;
|
|
308
|
+
} | undefined;
|
|
200
309
|
} | undefined;
|
|
201
310
|
terms?: string[] | undefined;
|
|
202
311
|
}[];
|
|
203
312
|
mode: "scheduled" | "asap";
|
|
204
|
-
language?: string | undefined;
|
|
205
|
-
personaId?: string | undefined;
|
|
206
|
-
linkedinAccountIds?: string[] | undefined;
|
|
207
|
-
threadsAccountIds?: string[] | undefined;
|
|
208
313
|
options?: {
|
|
209
314
|
voiceId?: string | undefined;
|
|
210
315
|
language?: string | undefined;
|
|
@@ -219,12 +324,17 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
219
324
|
fullLipsync?: boolean | undefined;
|
|
220
325
|
imageId?: string | undefined;
|
|
221
326
|
} | undefined;
|
|
327
|
+
language?: string | undefined;
|
|
328
|
+
personaId?: string | undefined;
|
|
329
|
+
linkedinAccountIds?: string[] | undefined;
|
|
330
|
+
threadsAccountIds?: string[] | undefined;
|
|
222
331
|
youtubeAccountIds?: string[] | undefined;
|
|
223
332
|
instagramAccountIds?: string[] | undefined;
|
|
224
333
|
blueskyAccountIds?: string[] | undefined;
|
|
225
334
|
startAt?: string | undefined;
|
|
226
335
|
times?: string[] | undefined;
|
|
227
336
|
idempotencyKey?: string | undefined;
|
|
337
|
+
recipe?: string | undefined;
|
|
228
338
|
}, {
|
|
229
339
|
title: string;
|
|
230
340
|
providers: ("youtube" | "instagram" | "bluesky" | "linkedin" | "threads")[];
|
|
@@ -234,14 +344,14 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
234
344
|
media?: {
|
|
235
345
|
mediaId?: string | undefined;
|
|
236
346
|
url?: string | undefined;
|
|
347
|
+
overlay?: {
|
|
348
|
+
title: string;
|
|
349
|
+
subtitle?: string | undefined;
|
|
350
|
+
badge?: string | undefined;
|
|
351
|
+
} | undefined;
|
|
237
352
|
} | undefined;
|
|
238
353
|
terms?: string[] | undefined;
|
|
239
354
|
}[];
|
|
240
|
-
language?: string | undefined;
|
|
241
|
-
personaId?: string | undefined;
|
|
242
|
-
timezone?: string | undefined;
|
|
243
|
-
linkedinAccountIds?: string[] | undefined;
|
|
244
|
-
threadsAccountIds?: string[] | undefined;
|
|
245
355
|
options?: {
|
|
246
356
|
voiceId?: string | undefined;
|
|
247
357
|
language?: string | undefined;
|
|
@@ -256,6 +366,11 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
256
366
|
fullLipsync?: boolean | undefined;
|
|
257
367
|
imageId?: string | undefined;
|
|
258
368
|
} | undefined;
|
|
369
|
+
language?: string | undefined;
|
|
370
|
+
personaId?: string | undefined;
|
|
371
|
+
timezone?: string | undefined;
|
|
372
|
+
linkedinAccountIds?: string[] | undefined;
|
|
373
|
+
threadsAccountIds?: string[] | undefined;
|
|
259
374
|
youtubeAccountIds?: string[] | undefined;
|
|
260
375
|
instagramAccountIds?: string[] | undefined;
|
|
261
376
|
blueskyAccountIds?: string[] | undefined;
|
|
@@ -263,6 +378,7 @@ export declare const GeneratePersonaVideoSchema: z.ZodObject<{
|
|
|
263
378
|
startAt?: string | undefined;
|
|
264
379
|
times?: string[] | undefined;
|
|
265
380
|
idempotencyKey?: string | undefined;
|
|
381
|
+
recipe?: string | undefined;
|
|
266
382
|
}>;
|
|
267
383
|
export declare const ValidateScriptShape: {
|
|
268
384
|
segments: z.ZodArray<z.ZodObject<{
|
|
@@ -271,12 +387,35 @@ export declare const ValidateScriptShape: {
|
|
|
271
387
|
media: z.ZodOptional<z.ZodObject<{
|
|
272
388
|
mediaId: z.ZodOptional<z.ZodString>;
|
|
273
389
|
url: z.ZodOptional<z.ZodString>;
|
|
390
|
+
overlay: z.ZodOptional<z.ZodObject<{
|
|
391
|
+
title: z.ZodString;
|
|
392
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
393
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, "strict", z.ZodTypeAny, {
|
|
395
|
+
title: string;
|
|
396
|
+
subtitle?: string | undefined;
|
|
397
|
+
badge?: string | undefined;
|
|
398
|
+
}, {
|
|
399
|
+
title: string;
|
|
400
|
+
subtitle?: string | undefined;
|
|
401
|
+
badge?: string | undefined;
|
|
402
|
+
}>>;
|
|
274
403
|
}, "strict", z.ZodTypeAny, {
|
|
275
404
|
mediaId?: string | undefined;
|
|
276
405
|
url?: string | undefined;
|
|
406
|
+
overlay?: {
|
|
407
|
+
title: string;
|
|
408
|
+
subtitle?: string | undefined;
|
|
409
|
+
badge?: string | undefined;
|
|
410
|
+
} | undefined;
|
|
277
411
|
}, {
|
|
278
412
|
mediaId?: string | undefined;
|
|
279
413
|
url?: string | undefined;
|
|
414
|
+
overlay?: {
|
|
415
|
+
title: string;
|
|
416
|
+
subtitle?: string | undefined;
|
|
417
|
+
badge?: string | undefined;
|
|
418
|
+
} | undefined;
|
|
280
419
|
}>>;
|
|
281
420
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
282
421
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -285,6 +424,11 @@ export declare const ValidateScriptShape: {
|
|
|
285
424
|
media?: {
|
|
286
425
|
mediaId?: string | undefined;
|
|
287
426
|
url?: string | undefined;
|
|
427
|
+
overlay?: {
|
|
428
|
+
title: string;
|
|
429
|
+
subtitle?: string | undefined;
|
|
430
|
+
badge?: string | undefined;
|
|
431
|
+
} | undefined;
|
|
288
432
|
} | undefined;
|
|
289
433
|
terms?: string[] | undefined;
|
|
290
434
|
}, {
|
|
@@ -293,6 +437,11 @@ export declare const ValidateScriptShape: {
|
|
|
293
437
|
media?: {
|
|
294
438
|
mediaId?: string | undefined;
|
|
295
439
|
url?: string | undefined;
|
|
440
|
+
overlay?: {
|
|
441
|
+
title: string;
|
|
442
|
+
subtitle?: string | undefined;
|
|
443
|
+
badge?: string | undefined;
|
|
444
|
+
} | undefined;
|
|
296
445
|
} | undefined;
|
|
297
446
|
terms?: string[] | undefined;
|
|
298
447
|
}>, "many">;
|
|
@@ -304,12 +453,35 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
304
453
|
media: z.ZodOptional<z.ZodObject<{
|
|
305
454
|
mediaId: z.ZodOptional<z.ZodString>;
|
|
306
455
|
url: z.ZodOptional<z.ZodString>;
|
|
456
|
+
overlay: z.ZodOptional<z.ZodObject<{
|
|
457
|
+
title: z.ZodString;
|
|
458
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
459
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, "strict", z.ZodTypeAny, {
|
|
461
|
+
title: string;
|
|
462
|
+
subtitle?: string | undefined;
|
|
463
|
+
badge?: string | undefined;
|
|
464
|
+
}, {
|
|
465
|
+
title: string;
|
|
466
|
+
subtitle?: string | undefined;
|
|
467
|
+
badge?: string | undefined;
|
|
468
|
+
}>>;
|
|
307
469
|
}, "strict", z.ZodTypeAny, {
|
|
308
470
|
mediaId?: string | undefined;
|
|
309
471
|
url?: string | undefined;
|
|
472
|
+
overlay?: {
|
|
473
|
+
title: string;
|
|
474
|
+
subtitle?: string | undefined;
|
|
475
|
+
badge?: string | undefined;
|
|
476
|
+
} | undefined;
|
|
310
477
|
}, {
|
|
311
478
|
mediaId?: string | undefined;
|
|
312
479
|
url?: string | undefined;
|
|
480
|
+
overlay?: {
|
|
481
|
+
title: string;
|
|
482
|
+
subtitle?: string | undefined;
|
|
483
|
+
badge?: string | undefined;
|
|
484
|
+
} | undefined;
|
|
313
485
|
}>>;
|
|
314
486
|
terms: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
315
487
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -318,6 +490,11 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
318
490
|
media?: {
|
|
319
491
|
mediaId?: string | undefined;
|
|
320
492
|
url?: string | undefined;
|
|
493
|
+
overlay?: {
|
|
494
|
+
title: string;
|
|
495
|
+
subtitle?: string | undefined;
|
|
496
|
+
badge?: string | undefined;
|
|
497
|
+
} | undefined;
|
|
321
498
|
} | undefined;
|
|
322
499
|
terms?: string[] | undefined;
|
|
323
500
|
}, {
|
|
@@ -326,6 +503,11 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
326
503
|
media?: {
|
|
327
504
|
mediaId?: string | undefined;
|
|
328
505
|
url?: string | undefined;
|
|
506
|
+
overlay?: {
|
|
507
|
+
title: string;
|
|
508
|
+
subtitle?: string | undefined;
|
|
509
|
+
badge?: string | undefined;
|
|
510
|
+
} | undefined;
|
|
329
511
|
} | undefined;
|
|
330
512
|
terms?: string[] | undefined;
|
|
331
513
|
}>, "many">;
|
|
@@ -336,6 +518,11 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
336
518
|
media?: {
|
|
337
519
|
mediaId?: string | undefined;
|
|
338
520
|
url?: string | undefined;
|
|
521
|
+
overlay?: {
|
|
522
|
+
title: string;
|
|
523
|
+
subtitle?: string | undefined;
|
|
524
|
+
badge?: string | undefined;
|
|
525
|
+
} | undefined;
|
|
339
526
|
} | undefined;
|
|
340
527
|
terms?: string[] | undefined;
|
|
341
528
|
}[];
|
|
@@ -346,6 +533,11 @@ export declare const ValidateScriptSchema: z.ZodObject<{
|
|
|
346
533
|
media?: {
|
|
347
534
|
mediaId?: string | undefined;
|
|
348
535
|
url?: string | undefined;
|
|
536
|
+
overlay?: {
|
|
537
|
+
title: string;
|
|
538
|
+
subtitle?: string | undefined;
|
|
539
|
+
badge?: string | undefined;
|
|
540
|
+
} | undefined;
|
|
349
541
|
} | undefined;
|
|
350
542
|
terms?: string[] | undefined;
|
|
351
543
|
}[];
|
|
@@ -5,14 +5,23 @@
|
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { isEnglishLanguage, ONLY_ENGLISH_VIDEOS_MESSAGE } from './language.js';
|
|
7
7
|
import { GeneratePersonaVideoOptionsShape } from './schedule-shapes.js';
|
|
8
|
+
import { RECIPE_SLUG_PATTERN } from './recipe-session.js';
|
|
9
|
+
import { MAX_OVERLAY_BADGE_CHARS, MAX_OVERLAY_SUBTITLE_CHARS, MAX_OVERLAY_TITLE_CHARS, } from './script-segments.js';
|
|
10
|
+
export const SegmentOverlayShape = z
|
|
11
|
+
.object({
|
|
12
|
+
title: z.string().min(1).max(MAX_OVERLAY_TITLE_CHARS).describe('The real place name, shown large on the card.'),
|
|
13
|
+
subtitle: z.string().min(1).max(MAX_OVERLAY_SUBTITLE_CHARS).optional().describe('Address or area, shown under the title.'),
|
|
14
|
+
badge: z.string().min(1).max(MAX_OVERLAY_BADGE_CHARS).optional().describe('Short highlight such as a price or a year, shown as a pill above the title.'),
|
|
15
|
+
})
|
|
16
|
+
.strict();
|
|
8
17
|
export const ScriptSegmentShape = {
|
|
9
18
|
kind: z.enum(['hook', 'body', 'cta']).describe('Segment role: hook first, body in the middle, CTA last. Exactly one hook and one CTA.'),
|
|
10
19
|
text: z.string().min(1, 'Each segment text must be non-empty').describe('Spoken text only: no placeholders, links, markdown, emoji or stage directions.'),
|
|
11
20
|
media: z
|
|
12
|
-
.object({ mediaId: z.string().min(1).optional(), url: z.string().min(1).optional() })
|
|
21
|
+
.object({ mediaId: z.string().min(1).optional(), url: z.string().min(1).optional(), overlay: SegmentOverlayShape.optional() })
|
|
13
22
|
.strict()
|
|
14
23
|
.optional()
|
|
15
|
-
.describe('Phase 2: media reference, exactly one of mediaId (from upload_media) or url (a public image URL).'),
|
|
24
|
+
.describe('Phase 2: media reference, exactly one of mediaId (from upload_media) or url (a public image URL). The photo is shown over the video while its segment is spoken: full frame on faceless videos and over b-roll, or a framed panel (about 38% of the frame) at the bottom where the persona face is on screen, so the face still shows. Optional overlay: an info card (title, subtitle, badge) on the photo, e.g. a place name, address and price; a caption spoken while a panel shows is placed above it, never on the photo.'),
|
|
16
25
|
terms: z.array(z.string().min(1)).max(10).optional().describe('Stock terms for this segment, chosen by the agent. At most 10.'),
|
|
17
26
|
};
|
|
18
27
|
export const GeneratePersonaVideoShape = {
|
|
@@ -62,6 +71,14 @@ export const GeneratePersonaVideoShape = {
|
|
|
62
71
|
timezone: z.string().min(1).default('UTC').describe('IANA timezone for a naive startAt and the HH:MM times, e.g. "Europe/Lisbon". Defaults to UTC.'),
|
|
63
72
|
options: z.object(GeneratePersonaVideoOptionsShape).optional().describe('Generation options applied to this video.'),
|
|
64
73
|
idempotencyKey: z.string().min(1).optional().describe('Idempotency key: retrying the call with the same key returns the original schedule (replayed: true) instead of generating again.'),
|
|
74
|
+
// Telemetry-only: the recipe the script came from. Never forwarded in the
|
|
75
|
+
// request body (handleGeneratePersonaVideo builds it field by field);
|
|
76
|
+
// recipe-session.ts sends it as the X-MCP-Recipe header.
|
|
77
|
+
recipe: z
|
|
78
|
+
.string()
|
|
79
|
+
.regex(RECIPE_SLUG_PATTERN, 'recipe must be a recipe slug from list_prompts (lowercase letters, digits and hyphens)')
|
|
80
|
+
.optional()
|
|
81
|
+
.describe('The recipe slug (from list_prompts / get_prompt) this script was written with. Omit when the script was not written from a recipe.'),
|
|
65
82
|
};
|
|
66
83
|
export const GeneratePersonaVideoSchema = z.object(GeneratePersonaVideoShape);
|
|
67
84
|
export const ValidateScriptShape = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-video-shape.js","sourceRoot":"","sources":["../src/single-video-shape.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,wEAAwE;AACxE,2EAA2E;AAC3E,qDAAqD;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"single-video-shape.js","sourceRoot":"","sources":["../src/single-video-shape.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,wEAAwE;AACxE,2EAA2E;AAC3E,qDAAqD;AACrD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,uBAAuB,GACxB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,+CAA+C,CAAC;IAC/G,QAAQ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C;IACpJ,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACpH,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kIAAkI,CAAC;IACzL,0EAA0E;IAC1E,sEAAsE;IACtE,yDAAyD;IACzD,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,KAAK,CAAC,mBAAmB,EAAE,wFAAwF,CAAC;SACpH,QAAQ,EAAE;SACV,QAAQ,CAAC,oIAAoI,CAAC;CAClJ,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC,yBAAyB,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,MAAM,EAAE,CAAC;SAC5C,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC;SACtC,GAAG,CAAC,EAAE,EAAE,+BAA+B,CAAC;SACxC,QAAQ,CAAC,oFAAoF,CAAC;CAClG,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC"}
|
package/dist/tools-posts.d.ts
CHANGED
|
@@ -12,30 +12,45 @@ export declare const GetPostSchema: z.ZodObject<{
|
|
|
12
12
|
id: string;
|
|
13
13
|
}>;
|
|
14
14
|
export declare const GetPostMetricsShape: {
|
|
15
|
-
window: z.ZodEnum<["24h", "7d"]>;
|
|
15
|
+
window: z.ZodEnum<["24h", "7d", "28d"]>;
|
|
16
16
|
persona: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
17
17
|
account: z.ZodOptional<z.ZodString>;
|
|
18
18
|
provider: z.ZodOptional<z.ZodEnum<["youtube", "instagram", "bluesky", "linkedin", "threads"]>>;
|
|
19
19
|
angle: z.ZodOptional<z.ZodString>;
|
|
20
20
|
};
|
|
21
21
|
export declare const GetPostMetricsSchema: z.ZodObject<{
|
|
22
|
-
window: z.ZodEnum<["24h", "7d"]>;
|
|
22
|
+
window: z.ZodEnum<["24h", "7d", "28d"]>;
|
|
23
23
|
persona: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
24
24
|
account: z.ZodOptional<z.ZodString>;
|
|
25
25
|
provider: z.ZodOptional<z.ZodEnum<["youtube", "instagram", "bluesky", "linkedin", "threads"]>>;
|
|
26
26
|
angle: z.ZodOptional<z.ZodString>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
window: "24h" | "7d";
|
|
28
|
+
window: "24h" | "7d" | "28d";
|
|
29
29
|
provider?: "youtube" | "instagram" | "bluesky" | "linkedin" | "threads" | undefined;
|
|
30
30
|
persona?: string | undefined;
|
|
31
31
|
account?: string | undefined;
|
|
32
32
|
angle?: string | undefined;
|
|
33
33
|
}, {
|
|
34
|
-
window: "24h" | "7d";
|
|
34
|
+
window: "24h" | "7d" | "28d";
|
|
35
35
|
provider?: "youtube" | "instagram" | "bluesky" | "linkedin" | "threads" | undefined;
|
|
36
36
|
persona?: string | undefined;
|
|
37
37
|
account?: string | undefined;
|
|
38
38
|
angle?: string | undefined;
|
|
39
39
|
}>;
|
|
40
|
+
export declare const GetYouTubeRetentionCurveShape: {
|
|
41
|
+
account: z.ZodString;
|
|
42
|
+
video: z.ZodString;
|
|
43
|
+
};
|
|
44
|
+
export declare const GetYouTubeRetentionCurveSchema: z.ZodObject<{
|
|
45
|
+
account: z.ZodString;
|
|
46
|
+
video: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
video: string;
|
|
49
|
+
account: string;
|
|
50
|
+
}, {
|
|
51
|
+
video: string;
|
|
52
|
+
account: string;
|
|
53
|
+
}>;
|
|
40
54
|
export declare function handleGetPost(client: PostEngineerClient, args: z.infer<typeof GetPostSchema>): Promise<McpToolResponse>;
|
|
41
55
|
export declare function handleGetPostMetrics(client: PostEngineerClient, args: z.infer<typeof GetPostMetricsSchema>): Promise<McpToolResponse>;
|
|
56
|
+
export declare function handleGetYouTubeRetentionCurve(client: PostEngineerClient, args: z.infer<typeof GetYouTubeRetentionCurveSchema>): Promise<McpToolResponse>;
|
package/dist/tools-posts.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { getPost, getPostMetrics } from './client-posts.js';
|
|
3
|
-
import { METRICS_FILTER_MAX_LENGTH, METRICS_NONE, METRICS_PROVIDERS, METRICS_WINDOWS, } from './limits.js';
|
|
2
|
+
import { getPost, getPostMetrics, getYouTubeRetentionCurve } from './client-posts.js';
|
|
3
|
+
import { METRICS_FILTER_MAX_LENGTH, METRICS_NONE, METRICS_PROVIDERS, METRICS_WINDOWS, YOUTUBE_VIDEO_ID, } from './limits.js';
|
|
4
4
|
import { handleLibraryCall } from './tools-call.js';
|
|
5
5
|
//---------------
|
|
6
|
-
// get_post and
|
|
6
|
+
// get_post, get_post_metrics and get_youtube_retention_curve — MCP tools.
|
|
7
7
|
//
|
|
8
8
|
// Extracted from tools.ts so the tools module stays under the file-size
|
|
9
9
|
// ratchet.
|
|
@@ -20,7 +20,7 @@ const metricsFilter = z.string().min(1).max(METRICS_FILTER_MAX_LENGTH);
|
|
|
20
20
|
export const GetPostMetricsShape = {
|
|
21
21
|
window: z
|
|
22
22
|
.enum(METRICS_WINDOWS)
|
|
23
|
-
.describe('Snapshot window: 24h (first day after publishing)
|
|
23
|
+
.describe('Snapshot window: 24h (first day after publishing), 7d (first week) or 28d (four weeks; YouTube Analytics values are final).'),
|
|
24
24
|
persona: metricsFilter
|
|
25
25
|
.refine((value) => value === METRICS_NONE || UUID.test(value), {
|
|
26
26
|
message: `persona must be a uuid or ${METRICS_NONE}`,
|
|
@@ -36,10 +36,21 @@ export const GetPostMetricsShape = {
|
|
|
36
36
|
.describe(`Optional script angle filter (exact match), or ${METRICS_NONE} for posts with no angle.`),
|
|
37
37
|
};
|
|
38
38
|
export const GetPostMetricsSchema = z.object(GetPostMetricsShape);
|
|
39
|
+
export const GetYouTubeRetentionCurveShape = {
|
|
40
|
+
account: metricsFilter.describe('The YouTube account id (channel id) the video was published on: accountId from get_post_metrics rows.'),
|
|
41
|
+
video: z
|
|
42
|
+
.string()
|
|
43
|
+
.regex(YOUTUBE_VIDEO_ID, 'video must be a YouTube video id')
|
|
44
|
+
.describe('The YouTube video id: externalId from a youtube get_post_metrics row.'),
|
|
45
|
+
};
|
|
46
|
+
export const GetYouTubeRetentionCurveSchema = z.object(GetYouTubeRetentionCurveShape);
|
|
39
47
|
export async function handleGetPost(client, args) {
|
|
40
48
|
return handleLibraryCall(() => getPost(client, args.id), 'getting post');
|
|
41
49
|
}
|
|
42
50
|
export async function handleGetPostMetrics(client, args) {
|
|
43
51
|
return handleLibraryCall(() => getPostMetrics(client, args), 'getting post metrics');
|
|
44
52
|
}
|
|
53
|
+
export async function handleGetYouTubeRetentionCurve(client, args) {
|
|
54
|
+
return handleLibraryCall(() => getYouTubeRetentionCurve(client, args), 'getting YouTube retention curve');
|
|
55
|
+
}
|
|
45
56
|
//# sourceMappingURL=tools-posts.js.map
|
package/dist/tools-posts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools-posts.js","sourceRoot":"","sources":["../src/tools-posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools-posts.js","sourceRoot":"","sources":["../src/tools-posts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,cAAc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AC,0BAA0B,CAAC;IACnF,KAAK,EAAE,aAAa;SACjB,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,YAAY,2BAA2B,CAAC;CACvG,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,uGAAuG,CAAC;IACxI,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,KAAK,CAAC,gBAAgB,EAAE,kCAAkC,CAAC;SAC3D,QAAQ,CAAC,uEAAuE,CAAC;CACrF,CAAC;AAEF,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAEtF,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,MAA0B,EAC1B,IAAmC;IAEnC,OAAO,iBAAiB,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,MAA0B,EAC1B,IAA0C;IAE1C,OAAO,iBAAiB,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,sBAAsB,CAAC,CAAC;AACvF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAClD,MAA0B,EAC1B,IAAoD;IAEpD,OAAO,iBAAiB,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,iCAAiC,CAAC,CAAC;AAC5G,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { PostEngineerClient } from './client.js';
|
|
3
|
+
import type { McpToolResponse } from './tools-call.js';
|
|
4
|
+
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
5
|
+
import { RecipeSession, type McpTransportKind } from './recipe-session.js';
|
|
6
|
+
export { withRecipeNudge, withScriptOutcome, type McpTransportKind } from './recipe-session.js';
|
|
7
|
+
export declare const SERVER_INSTRUCTIONS: string;
|
|
8
|
+
export declare const ListPromptsDescription = "List the available recipe prompts (slug, title, description). Call this BEFORE writing or generating a video script when the user's request describes a topic rather than a ready script \u2014 news of the day, a real place with its own photos, a concrete subject like a car or a product, GitHub pull requests, or first-time account setup. Then call get_prompt with the matching slug to load the full validated workflow for that recipe.";
|
|
9
|
+
export declare const ListPromptsShape: {};
|
|
10
|
+
export declare function handleListPrompts(client: PostEngineerClient): Promise<McpToolResponse>;
|
|
11
|
+
export declare const GetPromptDescription = "Return the full recipe prompt for one slug from list_prompts. Load only the recipe the agent will follow, and pass its slug as recipe on generate_persona_video. Each recipe carries the complete validated workflow: script structure and word limits, media verification via check_media for photo URLs, pricing rules for the overlay badge, and the generation and publish steps. Unknown slugs fail with the list of valid slugs \u2014 call list_prompts first when unsure.";
|
|
12
|
+
export declare const GetPromptShape: {
|
|
13
|
+
slug: z.ZodString;
|
|
14
|
+
};
|
|
15
|
+
export declare function handleGetPrompt(client: PostEngineerClient, args: unknown): Promise<McpToolResponse>;
|
|
16
|
+
export declare function registerPromptTools(server: McpServer, client: PostEngineerClient, transport: McpTransportKind): RecipeSession;
|