@slatesvideo/shared 0.7.20 → 0.7.21

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.
@@ -6356,6 +6356,308 @@ export const resolveReviewNote = {
6356
6356
  return ok(await ctx.desktop().post('/agent/review/resolve', { projectId: input.projectId, replies }));
6357
6357
  },
6358
6358
  };
6359
+ // ── Wave 6: the Winners Loop, Visual QA, stacked video edits, diagnostics, winning ads ──
6360
+ const META_WINNERS = 'the Winners Loop (ad results per recipe)';
6361
+ export const getAdWinners = {
6362
+ id: 'slates_get_ad_winners',
6363
+ description: "What each exported ad recipe earned in the person's ad account over the last pulled range, as the account reports it: spend, purchases, ROAS, the person's winner or loser mark, the losers, and the project's split tests (splitTests: each local id for slates_evaluate_split_test_winner, campaign, status and stored winner). Never remake a recipe listed in losers. Read this before planning more variants of an ad. Free. Requires meta-winners; update Slates on capability refusal.",
6364
+ input: z.object({ projectId: z.string().uuid().optional().describe('One project; absent: every project.') }).strict(),
6365
+ async run(input, ctx) {
6366
+ await ctx.desktop().requireCapability('meta-winners', META_WINNERS);
6367
+ return ok(await ctx.desktop().get('/agent/meta/winners', { projectId: input.projectId }));
6368
+ },
6369
+ };
6370
+ export const setRecipeVerdict = {
6371
+ id: 'slates_set_recipe_verdict',
6372
+ description: "Mark an ad recipe a winner or a loser (null clears the mark), as the person decided from its results. A loser is never remade; More like this starts from a winner. Free. Requires meta-winners; update Slates on capability refusal.",
6373
+ input: z.object({
6374
+ recipeId: z.string().min(1).describe('The recipe ID from slates_get_ad_winners or an export.'),
6375
+ projectId: z.string().uuid().nullable().optional(),
6376
+ verdict: z.enum(['winner', 'loser']).nullable(),
6377
+ note: z.string().max(2000).optional(),
6378
+ }).strict(),
6379
+ async run(input, ctx) {
6380
+ await ctx.desktop().requireCapability('meta-winners', META_WINNERS);
6381
+ return ok(await ctx.desktop().post('/agent/meta/verdict', input));
6382
+ },
6383
+ };
6384
+ export const moreLikeThis = {
6385
+ id: 'slates_more_like_this',
6386
+ description: "Start a new cut from a winning export: its hook becomes a slot holding the winning hook plus open ones, and the answer quotes what finishing the variants would cost. Nothing is generated; show the person the quote before filling an open hook. Free. Requires meta-winners; update Slates on capability refusal.",
6387
+ input: z.object({
6388
+ exportRef: z.string().min(1).describe('The export reference from slates_get_ad_winners (exportRef).'),
6389
+ openHookSlot: z.boolean().optional().describe('Default true: the hook becomes a slot.'),
6390
+ extraHookCount: z.number().int().min(1).optional().describe('Open hook alternatives to add; the app caps it.'),
6391
+ }).strict(),
6392
+ async run(input, ctx) {
6393
+ await ctx.desktop().requireCapability('meta-winners', META_WINNERS);
6394
+ return ok(await ctx.desktop().post('/agent/meta/more-like-this', input));
6395
+ },
6396
+ };
6397
+ const SPLIT_TEST_INPUT = z.object({
6398
+ projectId: z.string().uuid(),
6399
+ accountId: z.string().min(1).describe('The ad account id.'),
6400
+ campaignName: z.string().min(1),
6401
+ dailyBudgetMinor: z.number().int().positive().describe("The ad set's daily budget in the currency's minor units (cents)."),
6402
+ currency: z.string().min(3).max(3),
6403
+ exportRefs: z.array(z.string().min(1)).min(2).describe('The exported variants, one paused ad each.'),
6404
+ country: z.string().length(2).describe('Two-letter audience country.'),
6405
+ specialAdCategories: z.array(z.string()).nullable().describe('[] when none apply; the plan refuses null.'),
6406
+ pageId: z.string().min(1),
6407
+ destinationUrl: z.string().url(),
6408
+ headline: z.string().optional(),
6409
+ primaryText: z.string().optional(),
6410
+ cta: z.string().optional(),
6411
+ thresholdSpend: z.number().nonnegative().nullable().optional(),
6412
+ thresholdImpressions: z.number().int().nonnegative().nullable().optional(),
6413
+ }).strict();
6414
+ export const planSplitTest = {
6415
+ id: 'slates_plan_split_test',
6416
+ description: "Plan a split test of exported variants: one campaign, one ad set and one paused ad per variant, checked against the spend caps, with every problem named. Creates nothing; the person creates the paused test from New split test… in Meta Ads. Free. Requires meta-winners; update Slates on capability refusal.",
6417
+ input: SPLIT_TEST_INPUT,
6418
+ async run(input, ctx) {
6419
+ await ctx.desktop().requireCapability('meta-winners', META_WINNERS);
6420
+ return ok(await ctx.desktop().post('/agent/meta/split-test/plan', input));
6421
+ },
6422
+ };
6423
+ export const evaluateSplitTestWinner = {
6424
+ id: 'slates_evaluate_split_test_winner',
6425
+ description: "Call a split test's winner from the ad account's report for that test's own ads only (read now, from the day the test was made): no call until every variant has results and passes the spend and impression thresholds; it compares ROAS (else cost per purchase, else click rate) and labels every figure as the ad account reports it. A tie or no call clears an older stored winner. Free. Requires meta-winners; update Slates on capability refusal.",
6426
+ input: z.object({
6427
+ testId: z.string().min(1).describe('The local split test id, from splitTests in slates_get_ad_winners.'),
6428
+ thresholds: z.object({
6429
+ minSpend: z.number().nonnegative().nullable().optional(),
6430
+ minImpressions: z.number().int().nonnegative().nullable().optional(),
6431
+ }).strict().optional().describe("Absent: the test's own thresholds."),
6432
+ }).strict(),
6433
+ async run(input, ctx) {
6434
+ await ctx.desktop().requireCapability('meta-winners', META_WINNERS);
6435
+ return ok(await ctx.desktop().post('/agent/meta/split-test/winner', input));
6436
+ },
6437
+ };
6438
+ const VISUAL_QA = 'Visual QA';
6439
+ export const visualQaSample = {
6440
+ id: 'slates_visual_qa_sample',
6441
+ description: "Visual QA, step one of a round: stills of the cut's overlay beats, transition middles and cuts, returned inline so you see every frame, with what this machine measured in them (clipped or crowded text, contrast, hold times, gaps), the rubric and the critique prompt. Score every still against the rubric, then answer with slates_visual_qa_record_round. Pass runId to take the next round's stills after your fixes. Free: the looking is yours. Requires visual-qa; update Slates on capability refusal.",
6442
+ input: z.object({
6443
+ projectId: z.string().uuid().optional().describe('Defaults to the open project.'),
6444
+ timelineId: z.string().min(1).optional().describe("Defaults to the project's timeline."),
6445
+ runId: z.string().min(1).optional().describe('Continue this run with its next round; absent starts a run.'),
6446
+ maxRounds: z.number().int().positive().optional().describe("Rounds a new run takes; the app's default and limits apply."),
6447
+ // 24 is the desktop's MAX_VISUAL_QA_SAMPLES (slate src/shared/visualQa.ts), which the route enforces too.
6448
+ budget: z.number().int().positive().max(24).optional().describe("The most stills a round takes, up to 24; the app's default applies."),
6449
+ }).strict(),
6450
+ async run(input, ctx) {
6451
+ await ctx.desktop().requireCapability('visual-qa', VISUAL_QA);
6452
+ const r = await ctx.desktop().post('/agent/timeline/visual-qa/sample', input);
6453
+ const stills = r.stills ?? [];
6454
+ const { stills: _inline, ...data } = r;
6455
+ const when = new Map((r.samples ?? []).map((s) => [s.id, s.sec]));
6456
+ return {
6457
+ text: `${JSON.stringify(data)}\n\nStills, in order: ${stills.map((s) => `${s.sampleId} (${when.get(s.sampleId) ?? '?'}s)`).join(', ') || 'none could be read'}.`,
6458
+ images: stills.map((s) => ({ data: s.data, mimeType: s.mimeType })),
6459
+ data,
6460
+ };
6461
+ },
6462
+ };
6463
+ const VQA_DIMENSION = z.enum(['alignment', 'legibility', 'hierarchy', 'pacing', 'transitions', 'motion', 'restraint']);
6464
+ export const visualQaRecordRound = {
6465
+ id: 'slates_visual_qa_record_round',
6466
+ description: "Visual QA, step two: record your scores (0-10 per rubric dimension) and findings for the round slates_visual_qa_sample handed you, each finding on its still with what is wrong and the exact fix. A measured finding stays unless your finding restates it (findingId) at the same or a higher severity. Answers pass or iterate, the score change and what stays open; after fixing, sample the next round with the same runId. A round is recorded once: on the final round pass promoteToReview: true, which turns what stays open into Review notes for the person only if the round does not pass. Free. Requires visual-qa; update Slates on capability refusal.",
6467
+ input: z.object({
6468
+ runId: z.string().min(1).describe('From slates_visual_qa_sample.'),
6469
+ scores: z.record(VQA_DIMENSION, z.number().min(0).max(10)).describe('Every rubric dimension, 0-10.'),
6470
+ findings: z.array(z.object({
6471
+ sampleId: z.string().min(1).describe('The still it was seen in.'),
6472
+ dimension: VQA_DIMENSION,
6473
+ severity: z.enum(['blocker', 'should-fix', 'polish']),
6474
+ diagnosis: z.string().min(1).describe('What is wrong, in that frame.'),
6475
+ exactFix: z.string().min(1).describe('The change that fixes it: what to set, to what.'),
6476
+ region: z.object({ x: z.number(), y: z.number(), w: z.number(), h: z.number() }).strict().nullable().optional().describe('Where in the frame, as fractions 0-1.'),
6477
+ span: z.object({ startSec: z.number(), endSec: z.number() }).strict().nullable().optional(),
6478
+ targetClipId: z.string().optional(),
6479
+ targetTransitionId: z.string().optional(),
6480
+ findingId: z.string().optional().describe("The measured finding's id this one restates; it replaces it only at the same or a higher severity."),
6481
+ }).strict()),
6482
+ summary: z.string().optional(),
6483
+ promoteToReview: z.boolean().optional(),
6484
+ }).strict(),
6485
+ async run(input, ctx) {
6486
+ await ctx.desktop().requireCapability('visual-qa', VISUAL_QA);
6487
+ return ok(await ctx.desktop().post('/agent/timeline/visual-qa/round', input));
6488
+ },
6489
+ };
6490
+ export const listVisualQaRuns = {
6491
+ id: 'slates_list_visual_qa_runs',
6492
+ description: "A timeline's Visual QA runs, newest first: status, rounds, round one's score against the last and the gain; runId reads one run in full. Free. Requires visual-qa; update Slates on capability refusal.",
6493
+ input: z.object({
6494
+ projectId: z.string().uuid().optional().describe('Defaults to the open project.'),
6495
+ timelineId: z.string().min(1).optional(),
6496
+ runId: z.string().min(1).optional(),
6497
+ }).strict(),
6498
+ async run(input, ctx) {
6499
+ await ctx.desktop().requireCapability('visual-qa', VISUAL_QA);
6500
+ return ok(await ctx.desktop().get('/agent/timeline/visual-qa/runs', input));
6501
+ },
6502
+ };
6503
+ const V2V = 'stacked video edits';
6504
+ const V2V_KIND = z.enum(['swap-person', 'change-angle', 'change-location', 'move-camera', 'relight', 'video-brush']);
6505
+ const V2V_RECIPE = {
6506
+ model: z.string().min(1).optional().describe("The edit model; absent: the app's default."),
6507
+ prompt: z.string().optional(),
6508
+ params: z.record(z.unknown()).optional().describe('The kind\'s settings: subjectAssetId, locationAssetId, preset, directionDeg, colorTemp, diffusion, brushMode, videoResolution. Asset ids or badge codes.'),
6509
+ referenceAssetIds: z.array(z.string().min(1)).optional().describe('Asset ids or badge codes.'),
6510
+ startFrame: z.number().int().nonnegative().optional().describe('Timeline frame where the edited moment starts.'),
6511
+ endFrame: z.number().int().positive().optional().describe('Timeline frame where it ends (exclusive).'),
6512
+ };
6513
+ /** A pass's asset references (UUIDs or badge codes) resolved against the project at call time. */
6514
+ async function resolvePassAssets(ctx, projectId, input) {
6515
+ const params = input.params ?? {};
6516
+ const named = ['subjectAssetId', 'locationAssetId'].filter((k) => typeof params[k] === 'string');
6517
+ const refs = [...named.map((k) => params[k]), ...(input.referenceAssetIds ?? [])];
6518
+ if (!refs.length)
6519
+ return input;
6520
+ const resolved = await resolveAssetRefs(ctx, projectId, refs);
6521
+ const id = (ref) => resolved.get(ref).id;
6522
+ return {
6523
+ ...input,
6524
+ ...(input.params ? { params: { ...params, ...Object.fromEntries(named.map((k) => [k, id(params[k])])) } } : {}),
6525
+ ...(input.referenceAssetIds ? { referenceAssetIds: input.referenceAssetIds.map(id) } : {}),
6526
+ };
6527
+ }
6528
+ export const listV2vPasses = {
6529
+ id: 'slates_list_v2v_passes',
6530
+ description: "The stacked video edits on a timeline (or one clip), bottom first: each pass's kind, moment, settings, recipe ID, status, output and estimated credits. Free. Requires v2v-edits; update Slates on capability refusal.",
6531
+ input: z.object({ projectId: z.string().uuid(), timelineId: z.string().min(1), clipId: z.string().min(1).optional() }).strict(),
6532
+ async run(input, ctx) {
6533
+ await ctx.desktop().requireCapability('v2v-edits', V2V);
6534
+ return ok(await ctx.desktop().get('/agent/timeline/v2v', input));
6535
+ },
6536
+ };
6537
+ export const editV2vPass = {
6538
+ id: 'slates_edit_v2v_pass',
6539
+ description: "Add, change, remove or reorder a stacked video edit on a video clip's moment: swap the person, change the angle or location, move the camera, relight, or a brushed region. Each pass edits the output of the one under it. Saving a pass generates nothing; quote with slates_quote_v2v_passes, then run. Free. Requires v2v-edits; update Slates on capability refusal.",
6540
+ input: z.object({
6541
+ projectId: z.string().uuid(),
6542
+ action: z.enum(['create', 'update', 'delete', 'reorder']),
6543
+ input: z.object({ timelineId: z.string().min(1), clipId: z.string().min(1), kind: V2V_KIND, label: z.string().optional(), ...V2V_RECIPE }).strict().optional().describe('create: the new pass.'),
6544
+ passId: z.string().min(1).optional().describe('update and delete.'),
6545
+ patch: z.object({ label: z.string().optional(), enabled: z.boolean().optional(), orderIndex: z.number().int().nonnegative().optional(), ...V2V_RECIPE }).strict().optional().describe('update: the fields to change.'),
6546
+ timelineId: z.string().min(1).optional().describe('reorder.'),
6547
+ clipId: z.string().min(1).optional().describe('reorder.'),
6548
+ orderedIds: z.array(z.string().min(1)).optional().describe('reorder: every pass on the clip, bottom first.'),
6549
+ }).strict(),
6550
+ async run(input, ctx) {
6551
+ await ctx.desktop().requireCapability('v2v-edits', V2V);
6552
+ const body = {
6553
+ ...input,
6554
+ ...(input.input ? { input: await resolvePassAssets(ctx, input.projectId, input.input) } : {}),
6555
+ ...(input.patch ? { patch: await resolvePassAssets(ctx, input.projectId, input.patch) } : {}),
6556
+ };
6557
+ return ok(await ctx.desktop().post('/agent/timeline/v2v/pass', body));
6558
+ },
6559
+ };
6560
+ export const quoteV2vPasses = {
6561
+ id: 'slates_quote_v2v_passes',
6562
+ description: "Price stacked video edits before running them: per pass the billed seconds, credits, warnings or what blocks it, its recipe ID, and the total. Show the person the total; slates_run_v2v_passes takes it as maxCredits and quoteFingerprint as the quote it runs. Free. Requires v2v-edits; update Slates on capability refusal.",
6563
+ input: z.object({ projectId: z.string().uuid(), passIds: z.array(z.string().min(1)).min(1) }).strict(),
6564
+ async run(input, ctx) {
6565
+ await ctx.desktop().requireCapability('v2v-edits', V2V);
6566
+ return ok(await ctx.desktop().post('/agent/timeline/v2v/quote', input));
6567
+ },
6568
+ };
6569
+ export const runV2vPasses = {
6570
+ id: 'slates_run_v2v_passes',
6571
+ billable: true,
6572
+ description: "Run stacked video edits that slates_quote_v2v_passes priced and the person approved: each pass edits the output of the one under it, independent passes in parallel. maxCredits is the approved total and quoteFingerprint the quote's own; a run that would cost more, or whose passes changed since the quote, is refused before anything runs. Pass a requestId of your own: a retry with the same one returns the first run's result and spends nothing again. The answer's cost_credits is what the run charged. Spends credits. Requires v2v-edits; update Slates on capability refusal.",
6573
+ input: z.object({
6574
+ projectId: z.string().uuid(),
6575
+ timelineId: z.string().min(1).describe("The passes' timeline; every pass must be on it."),
6576
+ passIds: z.array(z.string().min(1)).min(1),
6577
+ maxCredits: z.number().int().nonnegative().describe("The quote's total the person approved."),
6578
+ quoteFingerprint: z.string().min(1).describe('quoteFingerprint from slates_quote_v2v_passes for these passes.'),
6579
+ requestId: z.string().min(1).max(200).optional().describe('Your idempotency key for this run; reuse it only to retry the same run.'),
6580
+ maxParallel: z.number().int().positive().optional(),
6581
+ }).strict(),
6582
+ async run(input, ctx) {
6583
+ const desktop = ctx.desktop();
6584
+ await desktop.requireCapability('v2v-edits', V2V);
6585
+ // Every selected pass must be on the named timeline: the model guides checked are those of exactly the passes run.
6586
+ const { passes } = await desktop.get('/agent/timeline/v2v', { projectId: input.projectId, timelineId: input.timelineId });
6587
+ const byId = new Map(passes.map((p) => [p.id, p]));
6588
+ const missing = input.passIds.filter((id) => !byId.has(id));
6589
+ if (missing.length)
6590
+ throw new Error(`These passes are not on timeline ${input.timelineId}: ${missing.join(', ')}. Run passes of one timeline at a time.`);
6591
+ for (const model of new Set(input.passIds.map((id) => byId.get(id).model)))
6592
+ requireGuideRead(ctx, model);
6593
+ return ok(await desktop.post('/agent/timeline/v2v/run', input));
6594
+ },
6595
+ };
6596
+ export const v2vPassesToVariants = {
6597
+ id: 'slates_v2v_passes_to_variants',
6598
+ description: "Send finished video edits of one clip's moment to the variant grid: a slot on the timeline with one alternative per pass, each keeping its recipe ID, so they export as ad variants. Free. Requires v2v-edits; update Slates on capability refusal.",
6599
+ input: z.object({ projectId: z.string().uuid(), timelineId: z.string().min(1), passIds: z.array(z.string().min(1)).min(1), slotName: z.string().min(1).optional() }).strict(),
6600
+ async run(input, ctx) {
6601
+ await ctx.desktop().requireCapability('v2v-edits', V2V);
6602
+ return ok(await ctx.desktop().post('/agent/timeline/v2v/to-variants', input));
6603
+ },
6604
+ };
6605
+ export const getDiagnosticsStatus = {
6606
+ id: 'slates_get_diagnostics_status',
6607
+ description: "Whether this Slates shares crash and error reports and what it last caught, each marked captured locally / queued: delivery is never confirmed, so tell the person a bug was captured and queued, not that it arrived. Reads only. Free. Requires diagnostics; update Slates on capability refusal.",
6608
+ input: z.object({}).strict(),
6609
+ async run(_input, ctx) {
6610
+ await ctx.desktop().requireCapability('diagnostics', 'the diagnostics status');
6611
+ return ok(await ctx.desktop().get('/agent/diagnostics/status'));
6612
+ },
6613
+ };
6614
+ const WINNING_ADS = 'winning ads';
6615
+ export const findWinningAds = {
6616
+ id: 'slates_find_winning_ads',
6617
+ description: "Search proven ads: the ads that ran longest, by niche, platform, format and words in the advertiser, headline, body or button, each with how long it ran, its variations and its link. The answer says where the list came from and how fresh it is. Break one down into shots with slates_break_down_winning_ad. Free. Requires winning-ads; update Slates on capability refusal.",
6618
+ input: z.object({
6619
+ query: z.string().optional(),
6620
+ niche: z.string().optional().describe('A niche id from slates_list_winning_ad_niches.'),
6621
+ platform: z.enum(['all', 'meta', 'google']).optional(),
6622
+ minRunDays: z.number().int().nonnegative().optional(),
6623
+ format: z.enum(['all', 'video', 'image']).optional(),
6624
+ activeOnly: z.boolean().optional(),
6625
+ hasBreakdown: z.boolean().optional(),
6626
+ sort: z.enum(['run_length', 'variations', 'recent']).optional(),
6627
+ limit: z.number().int().positive().optional().describe("The app caps it."),
6628
+ offset: z.number().int().nonnegative().optional(),
6629
+ }).strict(),
6630
+ async run(input, ctx) {
6631
+ await ctx.desktop().requireCapability('winning-ads', WINNING_ADS);
6632
+ return ok(await ctx.desktop().get('/agent/reference/winning-ads', input));
6633
+ },
6634
+ };
6635
+ export const listWinningAdNiches = {
6636
+ id: 'slates_list_winning_ad_niches',
6637
+ description: 'The winning-ads niches and how many ads each holds, for slates_find_winning_ads. Free. Requires winning-ads; update Slates on capability refusal.',
6638
+ input: z.object({}).strict(),
6639
+ async run(_input, ctx) {
6640
+ await ctx.desktop().requireCapability('winning-ads', WINNING_ADS);
6641
+ return ok(await ctx.desktop().get('/agent/reference/winning-ads/niches'));
6642
+ },
6643
+ };
6644
+ export const breakDownWinningAd = {
6645
+ id: 'slates_break_down_winning_ad',
6646
+ description: "Break a winning ad from slates_find_winning_ads down into shots: one shot per cut with its words, built as a board in the project, the same run as slates_break_down_reference. The board copies the ad's structure and generates nothing; the ad's own footage is never used in it. Free. Requires winning-ads; update Slates on capability refusal.",
6647
+ input: z.object({
6648
+ projectId: z.string().uuid().optional().describe('Defaults to the open project.'),
6649
+ adId: z.string().min(1).describe('The adId from slates_find_winning_ads.'),
6650
+ platform: z.enum(['meta', 'google']).optional().describe('Default meta.'),
6651
+ build: z.boolean().optional().describe('As on slates_break_down_reference.'),
6652
+ name: z.string().optional(),
6653
+ model: z.string().optional(),
6654
+ jobId: z.string().optional(),
6655
+ }).strict(),
6656
+ async run(input, ctx) {
6657
+ await ctx.desktop().requireCapability('winning-ads', WINNING_ADS);
6658
+ return ok(await ctx.desktop().post('/agent/reference/winning-ads/breakdown', input));
6659
+ },
6660
+ };
6359
6661
  export const listTimelines = {
6360
6662
  id: 'slates_list_timelines', description: "List the independent named cuts in a project (not a slot's alternative timelines: slates_get_variants names those). Use the selected timelineId for edits, builds and exports.",
6361
6663
  input: z.object({ projectId: z.string().uuid() }),
@@ -10296,6 +10598,23 @@ export const ALL_OPERATIONS = [
10296
10598
  upscaleImage,
10297
10599
  getReviewPacket,
10298
10600
  resolveReviewNote,
10601
+ getAdWinners,
10602
+ setRecipeVerdict,
10603
+ moreLikeThis,
10604
+ planSplitTest,
10605
+ evaluateSplitTestWinner,
10606
+ visualQaSample,
10607
+ visualQaRecordRound,
10608
+ listVisualQaRuns,
10609
+ listV2vPasses,
10610
+ editV2vPass,
10611
+ quoteV2vPasses,
10612
+ runV2vPasses,
10613
+ v2vPassesToVariants,
10614
+ getDiagnosticsStatus,
10615
+ findWinningAds,
10616
+ listWinningAdNiches,
10617
+ breakDownWinningAd,
10299
10618
  getTimeline,
10300
10619
  getTimelineLoudness,
10301
10620
  addClipToTimeline,
@@ -44,6 +44,10 @@ const READ_ONLY_PREFIXES = [
44
44
  'slates_check_composition',
45
45
  'slates_quote_cut_drafts',
46
46
  'slates_quote_draft_finish',
47
+ // Searches the winning-ads catalog; GET only.
48
+ 'slates_find_winning_ads',
49
+ // Prices stacked video edits; it POSTs because the pass list is the payload, and spends nothing.
50
+ 'slates_quote_v2v_passes',
47
51
  ];
48
52
  /**
49
53
  * Ops whose effect a user cannot undo from inside Slates.
@@ -99,7 +103,7 @@ const REGISTRY_IDS = new Set(['slates_list_motion_blocks', 'slates_add_html_clip
99
103
  * Ops that fetch a web address the user names: product intake (a store's page and its pictures) and a
100
104
  * reference link (a Meta Ad Library page and the ad's video file, or a direct video link).
101
105
  */
102
- const WEB_PAGE_IDS = new Set(['slates_get_product_page', 'slates_import_product', 'slates_break_down_reference']);
106
+ const WEB_PAGE_IDS = new Set(['slates_get_product_page', 'slates_import_product', 'slates_break_down_reference', 'slates_break_down_winning_ad']);
103
107
  /**
104
108
  * Derive an op's four hints.
105
109
  *
@@ -223,6 +227,14 @@ export const OPERATION_GROUPS = {
223
227
  'slates_export_video',
224
228
  'slates_export_timeline_xml',
225
229
  'slates_trim_video',
230
+ 'slates_visual_qa_sample',
231
+ 'slates_visual_qa_record_round',
232
+ 'slates_list_visual_qa_runs',
233
+ 'slates_list_v2v_passes',
234
+ 'slates_edit_v2v_pass',
235
+ 'slates_quote_v2v_passes',
236
+ 'slates_run_v2v_passes',
237
+ 'slates_v2v_passes_to_variants',
226
238
  ],
227
239
  // Rename, delete, reorder. The 63-op CRUD tail the review measured at 39.5 KB.
228
240
  admin: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slatesvideo/shared",
3
- "version": "0.7.20",
3
+ "version": "0.7.21",
4
4
  "description": "Shared operations layer for the Slates MCP server and CLI: auth, cloud/desktop clients, and the single tool surface both consume. Most users want @slatesvideo/mcp-server or @slatesvideo/cli instead.",
5
5
  "license": "MIT",
6
6
  "type": "module",