@pixeldojo/mcp 0.22.0 → 0.23.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 +1 -1
- package/dist/cli.cjs +69 -6
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +69 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +69 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +69 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1309,14 +1309,29 @@ var init_caption = __esm({
|
|
|
1309
1309
|
}
|
|
1310
1310
|
});
|
|
1311
1311
|
async function run7(input, ctx) {
|
|
1312
|
-
|
|
1313
|
-
|
|
1312
|
+
const { hook, callout, review, offer, end_card: card } = input;
|
|
1313
|
+
if (!hook && !callout && !review && !input.progress_bar && !offer && !card) {
|
|
1314
|
+
return { kind: "text", text: "pixeldojo_overlay needs at least one of hook, callout, review, progress_bar, offer or end_card." };
|
|
1314
1315
|
}
|
|
1315
|
-
const { offer, end_card: card } = input;
|
|
1316
1316
|
const submitted = await ctx.client.run(MODEL2, {
|
|
1317
1317
|
prompt: "",
|
|
1318
1318
|
video: input.video_url,
|
|
1319
1319
|
...input.color ? { color: input.color } : {},
|
|
1320
|
+
...hook ? { hook_text: hook.text, hook_duration: hook.duration_sec } : {},
|
|
1321
|
+
...callout ? {
|
|
1322
|
+
callout_title: callout.title,
|
|
1323
|
+
callout_subtitle: callout.subtitle,
|
|
1324
|
+
callout_start: callout.start_sec,
|
|
1325
|
+
callout_duration: callout.duration_sec
|
|
1326
|
+
} : {},
|
|
1327
|
+
...review ? {
|
|
1328
|
+
review_quote: review.quote,
|
|
1329
|
+
review_name: review.name,
|
|
1330
|
+
review_stars: review.stars,
|
|
1331
|
+
review_start: review.start_sec,
|
|
1332
|
+
review_duration: review.duration_sec
|
|
1333
|
+
} : {},
|
|
1334
|
+
...input.progress_bar ? { progress_bar: true } : {},
|
|
1320
1335
|
...offer ? {
|
|
1321
1336
|
offer_text: offer.text,
|
|
1322
1337
|
offer_subtext: offer.subtext,
|
|
@@ -1352,6 +1367,21 @@ var init_overlay = __esm({
|
|
|
1352
1367
|
InputSchema7 = z.object({
|
|
1353
1368
|
video_url: z.string().url(),
|
|
1354
1369
|
color: z.string().optional(),
|
|
1370
|
+
hook: z.object({ text: z.string().max(60), duration_sec: z.number().min(1).max(6).optional() }).optional(),
|
|
1371
|
+
callout: z.object({
|
|
1372
|
+
title: z.string().max(32),
|
|
1373
|
+
subtitle: z.string().max(40).optional(),
|
|
1374
|
+
start_sec: z.number().min(0).optional(),
|
|
1375
|
+
duration_sec: z.number().min(1).max(10).optional()
|
|
1376
|
+
}).optional(),
|
|
1377
|
+
review: z.object({
|
|
1378
|
+
quote: z.string().max(90),
|
|
1379
|
+
name: z.string().max(30).optional(),
|
|
1380
|
+
stars: z.number().int().min(1).max(5).optional(),
|
|
1381
|
+
start_sec: z.number().min(0).optional(),
|
|
1382
|
+
duration_sec: z.number().min(1).max(10).optional()
|
|
1383
|
+
}).optional(),
|
|
1384
|
+
progress_bar: z.boolean().optional(),
|
|
1355
1385
|
offer: z.object({
|
|
1356
1386
|
text: z.string().max(24),
|
|
1357
1387
|
subtext: z.string().max(40).optional(),
|
|
@@ -1373,9 +1403,42 @@ var init_overlay = __esm({
|
|
|
1373
1403
|
properties: {
|
|
1374
1404
|
video_url: { type: "string", format: "uri", description: "The video to brand (MP4 or MOV)." },
|
|
1375
1405
|
color: { type: "string", description: "Brand color as #RRGGBB: the badge and the button. Defaults to #FFE500." },
|
|
1406
|
+
hook: {
|
|
1407
|
+
type: "object",
|
|
1408
|
+
description: "Hook title over the first seconds, the overlay that decides whether people keep watching. 5-8 words.",
|
|
1409
|
+
required: ["text"],
|
|
1410
|
+
properties: {
|
|
1411
|
+
text: { type: "string", maxLength: 60, description: 'e.g. "Octopuses have THREE hearts?".' },
|
|
1412
|
+
duration_sec: { type: "number", minimum: 1, maximum: 6, description: "Default 2.5." }
|
|
1413
|
+
}
|
|
1414
|
+
},
|
|
1415
|
+
callout: {
|
|
1416
|
+
type: "object",
|
|
1417
|
+
description: 'Lower-third label that slides in from the left: a benefit ("Ships in 24h") or a name and title.',
|
|
1418
|
+
required: ["title"],
|
|
1419
|
+
properties: {
|
|
1420
|
+
title: { type: "string", maxLength: 32, description: "The label." },
|
|
1421
|
+
subtitle: { type: "string", maxLength: 40, description: "Optional second line." },
|
|
1422
|
+
start_sec: { type: "number", description: "Default 3." },
|
|
1423
|
+
duration_sec: { type: "number", minimum: 1, maximum: 10, description: "Default 4." }
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
review: {
|
|
1427
|
+
type: "object",
|
|
1428
|
+
description: "Review card: stars, a short quote and a name.",
|
|
1429
|
+
required: ["quote"],
|
|
1430
|
+
properties: {
|
|
1431
|
+
quote: { type: "string", maxLength: 90, description: "The review text, without quote marks." },
|
|
1432
|
+
name: { type: "string", maxLength: 30, description: 'e.g. "Jess, verified buyer".' },
|
|
1433
|
+
stars: { type: "integer", minimum: 1, maximum: 5, description: "Default 5." },
|
|
1434
|
+
start_sec: { type: "number", description: "Default just after the hook." },
|
|
1435
|
+
duration_sec: { type: "number", minimum: 1, maximum: 10, description: "Default 4." }
|
|
1436
|
+
}
|
|
1437
|
+
},
|
|
1438
|
+
progress_bar: { type: "boolean", description: "A thin bar in the brand color across the top that fills as the video plays." },
|
|
1376
1439
|
offer: {
|
|
1377
1440
|
type: "object",
|
|
1378
|
-
description: "Offer callout: a badge that pops in on cue.",
|
|
1441
|
+
description: "Offer callout: a badge that pops in on cue (after the hook when there is one).",
|
|
1379
1442
|
required: ["text"],
|
|
1380
1443
|
properties: {
|
|
1381
1444
|
text: { type: "string", maxLength: 24, description: 'e.g. "50% OFF".' },
|
|
@@ -1401,7 +1464,7 @@ var init_overlay = __esm({
|
|
|
1401
1464
|
};
|
|
1402
1465
|
overlaySkill = {
|
|
1403
1466
|
name: "pixeldojo_overlay",
|
|
1404
|
-
description: 'Add
|
|
1467
|
+
description: 'Add short-form ad text layouts to a finished video, exact text in the brand color, clear of the TikTok/Reels/Shorts UI: hook (title over the first seconds), callout (lower-third label), review (stars, quote, name), progress_bar, offer ("50% OFF" badge) and end_card (logo, headline, button, web address over the held last frame). Pass video_url plus any of them; one call does all. 2 credits.',
|
|
1405
1468
|
inputZod: InputSchema7,
|
|
1406
1469
|
inputJsonSchema: InputJsonSchema7,
|
|
1407
1470
|
allowedModels: [MODEL2],
|
|
@@ -3890,7 +3953,7 @@ function makeRedactedLogger(target = console) {
|
|
|
3890
3953
|
}
|
|
3891
3954
|
|
|
3892
3955
|
// src/server.ts
|
|
3893
|
-
var PACKAGE_VERSION = "0.
|
|
3956
|
+
var PACKAGE_VERSION = "0.23.0" ;
|
|
3894
3957
|
var SERVER_INSTRUCTIONS = "Pixel Dojo generates images, video, audio and short films from one catalog of AI models, billed in credits from the connected Pixel Dojo account. A job that runs past the 30-second wait returns a jobId to check later; check it rather than submitting again, since every new submission is charged. Generated asset URLs are deleted one hour after they are created: pixeldojo_save keeps one in the user's My Media permanently (after a safety check), and finished films stay in the account library. In any prompt, @Name uses a character, product, outfit, location, prop or style the user saved in Character Studio: its photos are attached automatically. pixeldojo_library source=characters lists them, and pixeldojo_save_character saves a new one from 3 to 5 photos.";
|
|
3895
3958
|
function buildServer(options) {
|
|
3896
3959
|
if (!options.apiKey) {
|