@pixeldojo/mcp 0.23.0 → 0.24.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/cli.js CHANGED
@@ -1309,9 +1309,12 @@ var init_caption = __esm({
1309
1309
  }
1310
1310
  });
1311
1311
  async function run7(input, ctx) {
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." };
1312
+ const { hook, callout, review, countdown, price_tag: price, offer, end_card: card } = input;
1313
+ if (!hook && !callout && !review && !input.progress_bar && !countdown && !price && !offer && !card) {
1314
+ return {
1315
+ kind: "text",
1316
+ text: "pixeldojo_overlay needs at least one of hook, callout, review, progress_bar, countdown, price_tag, offer or end_card."
1317
+ };
1315
1318
  }
1316
1319
  const submitted = await ctx.client.run(MODEL2, {
1317
1320
  prompt: "",
@@ -1332,6 +1335,19 @@ async function run7(input, ctx) {
1332
1335
  review_duration: review.duration_sec
1333
1336
  } : {},
1334
1337
  ...input.progress_bar ? { progress_bar: true } : {},
1338
+ ...countdown ? {
1339
+ countdown_from: countdown.from,
1340
+ countdown_label: countdown.label,
1341
+ countdown_start: countdown.start_sec,
1342
+ countdown_duration: countdown.duration_sec
1343
+ } : {},
1344
+ ...price ? {
1345
+ price_now: price.now,
1346
+ price_was: price.was,
1347
+ price_label: price.label,
1348
+ price_start: price.start_sec,
1349
+ price_duration: price.duration_sec
1350
+ } : {},
1335
1351
  ...offer ? {
1336
1352
  offer_text: offer.text,
1337
1353
  offer_subtext: offer.subtext,
@@ -1382,6 +1398,19 @@ var init_overlay = __esm({
1382
1398
  duration_sec: z.number().min(1).max(10).optional()
1383
1399
  }).optional(),
1384
1400
  progress_bar: z.boolean().optional(),
1401
+ countdown: z.object({
1402
+ from: z.string(),
1403
+ label: z.string().max(16).optional(),
1404
+ start_sec: z.number().min(0).optional(),
1405
+ duration_sec: z.number().min(1).max(10).optional()
1406
+ }).optional(),
1407
+ price_tag: z.object({
1408
+ now: z.string().max(12),
1409
+ was: z.string().max(12).optional(),
1410
+ label: z.string().max(16).optional(),
1411
+ start_sec: z.number().min(0).optional(),
1412
+ duration_sec: z.number().min(1).max(10).optional()
1413
+ }).optional(),
1385
1414
  offer: z.object({
1386
1415
  text: z.string().max(24),
1387
1416
  subtext: z.string().max(40).optional(),
@@ -1436,6 +1465,29 @@ var init_overlay = __esm({
1436
1465
  }
1437
1466
  },
1438
1467
  progress_bar: { type: "boolean", description: "A thin bar in the brand color across the top that fills as the video plays." },
1468
+ countdown: {
1469
+ type: "object",
1470
+ description: "Urgency timer under the offer badge; the digits tick down each second.",
1471
+ required: ["from"],
1472
+ properties: {
1473
+ from: { type: "string", description: 'Start time, "23:59:59" or "04:59".' },
1474
+ label: { type: "string", maxLength: 16, description: 'Words above the timer. Default "Ends in".' },
1475
+ start_sec: { type: "number", description: "Default just after the hook." },
1476
+ duration_sec: { type: "number", minimum: 1, maximum: 10, description: "Default 4." }
1477
+ }
1478
+ },
1479
+ price_tag: {
1480
+ type: "object",
1481
+ description: "Tilted sticker on the left: new price big, old price struck through.",
1482
+ required: ["now"],
1483
+ properties: {
1484
+ now: { type: "string", maxLength: 12, description: 'e.g. "$49".' },
1485
+ was: { type: "string", maxLength: 12, description: 'Old price, struck through, e.g. "$79".' },
1486
+ label: { type: "string", maxLength: 16, description: 'e.g. "Today only".' },
1487
+ start_sec: { type: "number", description: "Default just after the hook." },
1488
+ duration_sec: { type: "number", minimum: 1, maximum: 10, description: "Default 4." }
1489
+ }
1490
+ },
1439
1491
  offer: {
1440
1492
  type: "object",
1441
1493
  description: "Offer callout: a badge that pops in on cue (after the hook when there is one).",
@@ -1464,7 +1516,7 @@ var init_overlay = __esm({
1464
1516
  };
1465
1517
  overlaySkill = {
1466
1518
  name: "pixeldojo_overlay",
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.',
1519
+ 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, countdown (ticking timer), price_tag (new price, old one struck through), 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.',
1468
1520
  inputZod: InputSchema7,
1469
1521
  inputJsonSchema: InputJsonSchema7,
1470
1522
  allowedModels: [MODEL2],
@@ -3953,7 +4005,7 @@ function makeRedactedLogger(target = console) {
3953
4005
  }
3954
4006
 
3955
4007
  // src/server.ts
3956
- var PACKAGE_VERSION = "0.23.0" ;
4008
+ var PACKAGE_VERSION = "0.24.0" ;
3957
4009
  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.";
3958
4010
  function buildServer(options) {
3959
4011
  if (!options.apiKey) {