@clipwright/core 0.73.0 → 0.75.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.
Files changed (50) hide show
  1. package/dist/account-actors.d.ts +0 -3
  2. package/dist/account-actors.js +2 -9
  3. package/dist/ad-guide.js +4 -3
  4. package/dist/contract-dispositions.d.ts +6 -26
  5. package/dist/contract-dispositions.js +19 -74
  6. package/dist/contracts/v1/workflow-execution.d.ts +26 -0
  7. package/dist/contracts/v1/workflow-next.d.ts +13 -0
  8. package/dist/creator-profile.d.ts +5 -0
  9. package/dist/creator-profile.js +40 -14
  10. package/dist/design.js +6 -6
  11. package/dist/faceless-price.d.ts +0 -5
  12. package/dist/faceless-price.js +0 -5
  13. package/dist/faceless-public.d.ts +0 -2
  14. package/dist/faceless-public.js +0 -9
  15. package/dist/film-guide.js +1 -1
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.js +1 -0
  18. package/dist/mcp-ugc-descriptions.d.ts +1 -4
  19. package/dist/mcp-ugc-descriptions.js +2 -5
  20. package/dist/music.d.ts +0 -2
  21. package/dist/music.js +0 -4
  22. package/dist/own-agent-price.d.ts +0 -3
  23. package/dist/own-agent-price.js +0 -3
  24. package/dist/presenter-engine.d.ts +0 -1
  25. package/dist/presenter-engine.js +0 -3
  26. package/dist/presenter-matte.d.ts +0 -2
  27. package/dist/presenter-matte.js +0 -4
  28. package/dist/prices.d.ts +5 -5
  29. package/dist/prices.js +27 -28
  30. package/dist/public-endpoints.d.ts +10 -0
  31. package/dist/public-endpoints.js +5 -0
  32. package/dist/reference-analysis.js +2 -2
  33. package/dist/reference-display.js +3 -1
  34. package/dist/scene-bible.d.ts +0 -1
  35. package/dist/scene-bible.js +0 -7
  36. package/dist/service-offer.d.ts +11 -0
  37. package/dist/service-offer.js +6 -0
  38. package/dist/skills.d.ts +87 -0
  39. package/dist/skills.js +56 -24
  40. package/dist/templates/comment-cta.d.ts +0 -2
  41. package/dist/templates/comment-cta.js +0 -4
  42. package/dist/templates/index.d.ts +3 -3
  43. package/dist/templates/index.js +7 -17
  44. package/dist/templates/series-frame.d.ts +0 -2
  45. package/dist/templates/series-frame.js +0 -4
  46. package/dist/trend-keywords.js +1 -1
  47. package/dist/trend-niches.js +4 -4
  48. package/dist/uploads.js +1 -1
  49. package/dist/voices.js +1 -1
  50. package/package.json +1 -1
@@ -416,7 +416,6 @@ export type CreateActorDisposition = {
416
416
  kind: "rejected";
417
417
  message: string;
418
418
  };
419
- type CreateActorField = keyof typeof createActorInput.shape;
420
419
  export declare const CREATE_ACTOR_FIELD_DISPOSITIONS: {
421
420
  readonly description: {
422
421
  readonly kind: "implemented";
@@ -471,8 +470,6 @@ export declare const CREATE_ACTOR_FIELD_DISPOSITIONS: {
471
470
  readonly provenBy: "admission";
472
471
  };
473
472
  };
474
- export declare const ACTOR_VIEWS_DISABLED_MESSAGE = "is not available right now: deriving an actor from an actor is off; create an actor from a description instead";
475
- export declare function createActorDispositions(viewsEnabled: boolean): Record<CreateActorField, CreateActorDisposition>;
476
473
  export declare function createActorRejectedFields(input: Readonly<Record<string, unknown>>, dispositions: Readonly<Record<string, CreateActorDisposition>>): {
477
474
  field: string;
478
475
  message: string;
@@ -217,8 +217,8 @@ export function createActorInputWith(accepted, defaultQuality) {
217
217
  error: (issue) => `quality ${JSON.stringify(issue.input)} is not accepted: choose one of ${accepted.join(" | ")}`,
218
218
  })
219
219
  .default(defaultQuality)
220
- .describe(`Image quality: ${accepted.join(" | ")}. Omitted means ${defaultQuality}. high draws the most natural portrait. ` +
221
- "The price per image depends on it; quote shows it before any charge."),
220
+ .describe(`Image quality: ${accepted.join(" | ")}. Omitted means ${defaultQuality}. high costs more per image; ` +
221
+ "the quote shows the price before any charge."),
222
222
  }, {
223
223
  error: (issue) => (issue.code === "unrecognized_keys" ? unknownFieldsRefusal(issue.keys) : undefined),
224
224
  }).superRefine(checkActorSource);
@@ -359,13 +359,6 @@ export const CREATE_ACTOR_FIELD_DISPOSITIONS = {
359
359
  portrait: { kind: "implemented", provenBy: "egress" },
360
360
  max_credits: { kind: "implemented", provenBy: "admission" },
361
361
  };
362
- export const ACTOR_VIEWS_DISABLED_MESSAGE = "is not available right now: deriving an actor from an actor is off; create an actor from a description instead";
363
- export function createActorDispositions(viewsEnabled) {
364
- if (viewsEnabled)
365
- return CREATE_ACTOR_FIELD_DISPOSITIONS;
366
- const rejected = (field) => ({ kind: "rejected", message: `${field} ${ACTOR_VIEWS_DISABLED_MESSAGE}` });
367
- return { ...CREATE_ACTOR_FIELD_DISPOSITIONS, ...Object.fromEntries(ACTOR_VIEW_FIELDS.map((field) => [field, rejected(field)])) };
368
- }
369
362
  export function createActorRejectedFields(input, dispositions) {
370
363
  return Object.entries(dispositions).flatMap(([field, disposition]) => disposition.kind === "rejected" && input[field] !== undefined ? [{ field, message: disposition.message }] : []);
371
364
  }
package/dist/ad-guide.js CHANGED
@@ -6,12 +6,13 @@ export const AD_GUIDE_SECTION_IDS = ["ugc", "order", "script", "product_sheet",
6
6
  "motion_test", "shot_list", "devices", "takes", "audit", "repair", "edit", "final_check", "spend"];
7
7
  export const adGuideQuery = z.strictObject({
8
8
  section: z.enum(AD_GUIDE_SECTION_IDS).optional()
9
- .describe("One part of the guide, whole: ugc (the make_ugc rules) or one step of making the ad yourself. Without it you get the index"),
9
+ .describe("One part of the guide, whole: ugc (the make_ugc rules) or one step of making the ad yourself. Without it you get ugc " +
10
+ "and a list of the other sections"),
10
11
  });
11
12
  export const adGuide = z.strictObject({
12
13
  brand: brandGuideBlock.optional(),
13
- guide: z.string().min(1).describe("The ad guide, Markdown. Without section: which section to read, every section's title, the order " +
14
- "and the final check of making the ad yourself. With section: that part"),
14
+ guide: z.string().min(1).describe("The ad guide, Markdown. Without section: the make_ugc rules (section ugc), then every other " +
15
+ "section's id and title. With section: that part"),
15
16
  version: z.string().regex(/^[a-f0-9]{12}$/).optional().describe("The guide's version: it changes whenever any part of the guide does"),
16
17
  guides: guideCatalog.optional(),
17
18
  });
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { makeUgcInputShape } from "./skills.js";
3
+ import { type ServiceOffer } from "./service-offer.js";
3
4
  export declare const CONTRACT_VERSION = "2026-10-18";
4
5
  export declare const CONTRACT_VERSION_HEADER = "X-Clipwright-Contract";
5
6
  export declare const BROLL_UNUSED_WARNING = "broll_policy has no effect on this video: it shows none of your media";
@@ -249,31 +250,16 @@ export declare const FACELESS_REJECTED_FIELDS: {
249
250
  };
250
251
  export type ContractField = keyof typeof FIELD_DISPOSITIONS;
251
252
  export interface ContractFlags {
252
- remoteFetch: boolean;
253
- compose: boolean;
254
- actorGeneration?: boolean;
255
- longForm?: boolean;
253
+ longForm: boolean;
256
254
  outputMarking?: boolean;
257
- music?: boolean;
258
- liveShots?: boolean;
259
- scenes?: boolean;
260
- motionStyles?: boolean;
261
255
  }
262
- export declare function isMotionStylesEnabled(env?: Record<string, string | undefined>): boolean;
263
- export declare const MOTION_STYLES_DISABLED_MESSAGE = "motion_style is not available right now; omit motion_style";
264
- export declare function isScenesEnabled(env?: Record<string, string | undefined>): boolean;
265
- export declare function isLiveShotsEnabled(env?: Record<string, string | undefined>): boolean;
266
256
  export declare const LIVE_SHOTS_DISABLED_MESSAGE = "shots are not available right now; omit shots and product_asset_id";
267
- export declare function isActorGenerationEnabled(env?: Record<string, string | undefined>): boolean;
268
- export declare function isActorViewsEnabled(env?: Record<string, string | undefined>): boolean;
269
- export declare function contractFlagsFromEnv(env?: Record<string, string | undefined>): ContractFlags;
270
- export declare function isLongFormQualificationEnabled(env?: Record<string, string | undefined>): boolean;
257
+ export declare function contractFlagsFor(offer: ServiceOffer): ContractFlags;
271
258
  export declare const LONG_FORM_DISABLED_MESSAGE = "long-form qualification is not available right now; pass script without segments or inserts";
272
259
  export declare function legacyCaptionWarnings(input: {
273
260
  captions?: boolean | undefined;
274
261
  caption_style?: string | undefined;
275
262
  }): string[];
276
- export declare const CAPTIONS_COMPOSE_DISABLED_WARNING = "captions were not drawn: composition is not available right now";
277
263
  export declare function compositionLayerFields(input: {
278
264
  overlays?: unknown;
279
265
  layout_windows?: unknown;
@@ -292,11 +278,12 @@ export declare function compositionLayerFields(input: {
292
278
  }): string[];
293
279
  export declare function compositionLayersNotDrawnWarnings(input: Parameters<typeof compositionLayerFields>[0], reason: string): string[];
294
280
  export declare function resolveDispositions(flags: ContractFlags): Record<ContractField, Disposition>;
295
- export declare const EFFECTIVE_DISPOSITIONS: Record<"actor_gender" | "actor_id" | "aspect_ratio" | "background" | "broll_policy" | "broll_url" | "call" | "caption_emphasis" | "caption_mode" | "caption_place" | "caption_position" | "caption_style" | "captions" | "character" | "design" | "disclosure_overlay" | "edit_sounds" | "end_hold_s" | "framing" | "image" | "inserts" | "interview" | "layout_windows" | "look" | "max_credits" | "motion_style" | "moves" | "music" | "name" | "overlays" | "pause_trim" | "person" | "presenter_engine" | "presenter_framing" | "presenter_gaze" | "presenter_mic" | "presenter_place" | "product_asset_id" | "propose" | "resolution" | "scenes" | "script" | "segments" | "shots" | "template_sounds" | "template_theme" | "templates" | "tts_model" | "visible_ai_label" | "voice" | "voice_id" | "voice_pace" | "voice_run_id" | "webhook_url", Disposition>;
281
+ export declare const dispositionsFor: (offer: ServiceOffer) => Record<ContractField, Disposition>;
296
282
  type RejectedField = {
297
283
  [K in ContractField]: (typeof FIELD_DISPOSITIONS)[K]["kind"] extends "rejected" ? K : never;
298
284
  }[ContractField];
299
285
  type OfferedField = Exclude<ContractField, RejectedField>;
286
+ export declare const NOT_HONORED_MARK = "Not honored yet";
300
287
  export declare function dispositionNote(field: ContractField): string | null;
301
288
  export declare const annotatedUgcInputShape: typeof makeUgcInputShape;
302
289
  export declare const offeredUgcInputShape: Pick<typeof makeUgcInputShape, OfferedField>;
@@ -4747,7 +4734,6 @@ export declare const mcpUgcInputShape: {
4747
4734
  }, z.core.$strict>]>>;
4748
4735
  product_asset_id: z.ZodOptional<z.ZodString>;
4749
4736
  propose: z.ZodOptional<z.ZodLiteral<false>>;
4750
- person: z.ZodOptional<z.ZodString>;
4751
4737
  actor_id: z.ZodOptional<z.ZodString>;
4752
4738
  presenter_framing: z.ZodOptional<z.ZodEnum<{
4753
4739
  close: "close";
@@ -4760,7 +4746,6 @@ export declare const mcpUgcInputShape: {
4760
4746
  female: "female";
4761
4747
  male: "male";
4762
4748
  }>>;
4763
- name: z.ZodOptional<z.ZodString>;
4764
4749
  broll_policy: z.ZodOptional<z.ZodEnum<{
4765
4750
  anyone: "anyone";
4766
4751
  no_actor: "no_actor";
@@ -4814,11 +4799,6 @@ export declare const mcpUgcInputShape: {
4814
4799
  middle: "middle";
4815
4800
  top: "top";
4816
4801
  }>>;
4817
- look: z.ZodDefault<z.ZodEnum<{
4818
- commercial: "commercial";
4819
- natural: "natural";
4820
- raw_iphone: "raw_iphone";
4821
- }>>;
4822
4802
  aspect_ratio: z.ZodOptional<z.ZodEnum<{
4823
4803
  "16:9": "16:9";
4824
4804
  "1:1": "1:1";
@@ -5009,7 +4989,7 @@ export interface RejectedFieldHit {
5009
4989
  field: ContractField;
5010
4990
  message: string;
5011
4991
  }
5012
- export declare function rejectedFields(input: Readonly<Record<string, unknown>>, env?: Record<string, string | undefined>): RejectedFieldHit[];
4992
+ export declare function rejectedFields(input: Readonly<Record<string, unknown>>, offer?: ServiceOffer): RejectedFieldHit[];
5013
4993
  export interface UnknownFieldHit {
5014
4994
  field: string;
5015
4995
  suggestion?: string | undefined;
@@ -8,11 +8,10 @@ import { MAX_OVERLAYS, placeWarnings } from "./ugc-layers.js";
8
8
  import { callWarnings } from "./ugc-call.js";
9
9
  import { BROLL_POLICY_DESCRIPTION } from "./broll-policy.js";
10
10
  import { mcpDesign } from "./design.js";
11
- import { isMusicEnabled, MUSIC_DISABLED_MESSAGE } from "./music.js";
12
11
  import { MAX_SCENES, SCENES_DISABLED_MESSAGE } from "./ugc-scenes.js";
13
12
  import { MOTION_STYLE_UNUSED_WARNING, motionStyleAsked, motionStyleHasCanvas } from "./motion-styles.js";
14
13
  import { AD_PAUSE_TRIM_WARNING } from "./ad-pause-trim.js";
15
- import { isPresenterMatteEnabled, needsPresenterCutout, PRESENTER_MATTE_DISABLED_MESSAGE } from "./presenter-matte.js";
14
+ import { BASE_OFFER } from "./service-offer.js";
16
15
  export const CONTRACT_VERSION = "2026-10-18";
17
16
  export const CONTRACT_VERSION_HEADER = "X-Clipwright-Contract";
18
17
  export const BROLL_UNUSED_WARNING = "broll_policy has no effect on this video: it shows none of your media";
@@ -111,53 +110,16 @@ export const FACELESS_REJECTED_FIELDS = {
111
110
  },
112
111
  };
113
112
  const CONTRACT_FIELDS = Object.keys(makeUgcInputShape);
114
- export function isMotionStylesEnabled(env = typeof process === "undefined" ? {} : process.env) {
115
- return env.CLIPWRIGHT_MOTION_STYLES === "1" && env.CLIPWRIGHT_COMPOSE === "1";
116
- }
117
- export const MOTION_STYLES_DISABLED_MESSAGE = "motion_style is not available right now; omit motion_style";
118
- export function isScenesEnabled(env = typeof process === "undefined" ? {} : process.env) {
119
- return env.CLIPWRIGHT_SCENES === "1" && isLongFormQualificationEnabled(env);
120
- }
121
- export function isLiveShotsEnabled(env = typeof process === "undefined" ? {} : process.env) {
122
- return env.CLIPWRIGHT_LIVE_SHOTS === "1" && isLongFormQualificationEnabled(env);
123
- }
124
113
  export const LIVE_SHOTS_DISABLED_MESSAGE = "shots are not available right now; omit shots and product_asset_id";
125
- export function isActorGenerationEnabled(env = typeof process === "undefined" ? {} : process.env) {
126
- return env.CLIPWRIGHT_ACTOR_GENERATION === "1" && env.CLIPWRIGHT_REMOTE_FETCH === "1";
127
- }
128
- export function isActorViewsEnabled(env = typeof process === "undefined" ? {} : process.env) {
129
- return env.CLIPWRIGHT_ACTOR_VIEWS === "1" && isActorGenerationEnabled(env);
130
- }
131
114
  const PERSON_WITH_ACTOR_GENERATION = {
132
115
  kind: "warned",
133
116
  warning: "person is not honored: this request uses the default actor; create a personal actor from the description with create_actor, then pass its actor_id",
134
117
  triggersWhen: "present",
135
118
  };
136
- export function contractFlagsFromEnv(env = typeof process === "undefined" ? {} : process.env) {
137
- return {
138
- remoteFetch: env.CLIPWRIGHT_REMOTE_FETCH === "1",
139
- compose: env.CLIPWRIGHT_COMPOSE === "1",
140
- longForm: isLongFormQualificationEnabled(env),
141
- ...(env.CLIPWRIGHT_OUTPUT_MARKING === "1" ? { outputMarking: true } : {}),
142
- ...(isMusicEnabled(env) ? { music: true } : {}),
143
- ...(isLiveShotsEnabled(env) ? { liveShots: true } : {}),
144
- ...(isScenesEnabled(env) ? { scenes: true } : {}),
145
- ...(isMotionStylesEnabled(env) ? { motionStyles: true } : {}),
146
- };
147
- }
148
- export function isLongFormQualificationEnabled(env = typeof process === "undefined" ? {} : process.env) {
149
- return env.CLIPWRIGHT_LONG_FORM_QUALIFICATION === "1" &&
150
- env.CLIPWRIGHT_COMPOSE === "1" && env.CLIPWRIGHT_REMOTE_FETCH === "1";
119
+ export function contractFlagsFor(offer) {
120
+ return { longForm: offer.longForm, ...(offer.outputMarking ? { outputMarking: true } : {}) };
151
121
  }
152
122
  export const LONG_FORM_DISABLED_MESSAGE = "long-form qualification is not available right now; pass script without segments or inserts";
153
- const REMOTE_FETCH_DISABLED = {
154
- kind: "rejected",
155
- message: "image is temporarily disabled (remote media fetch is off); omit it to render with the default actor",
156
- };
157
- const COMPOSE_DISABLED = {
158
- kind: "rejected",
159
- message: "background is not available right now. Request an aspect_ratio close to your image instead",
160
- };
161
123
  export function legacyCaptionWarnings(input) {
162
124
  return [
163
125
  ...(input.captions === true ? ["captions requested but not rendered in this prototype (stage-B)"] : []),
@@ -165,7 +127,6 @@ export function legacyCaptionWarnings(input) {
165
127
  ? ["caption_style is not honored: captions are not rendered in this prototype (stage-B)"] : []),
166
128
  ];
167
129
  }
168
- export const CAPTIONS_COMPOSE_DISABLED_WARNING = "captions were not drawn: composition is not available right now";
169
130
  export function compositionLayerFields(input) {
170
131
  return [
171
132
  ...(input.overlays !== undefined ? ["overlays"] : []),
@@ -184,14 +145,11 @@ export function compositionLayersNotDrawnWarnings(input, reason) {
184
145
  const fields = compositionLayerFields(input);
185
146
  return fields.length ? [`${fields.join(", ")} ${fields.length === 1 ? "was" : "were"} not drawn: ${reason}`] : [];
186
147
  }
187
- function longFormReady(flags) {
188
- return flags.longForm === true && flags.remoteFetch && flags.compose;
189
- }
190
148
  const LONG_FORM_DISABLED = { kind: "rejected", message: LONG_FORM_DISABLED_MESSAGE };
191
149
  const TEMPLATES_DISABLED = { kind: "rejected",
192
150
  message: "templates are not available right now; omit templates, template_theme and template_sounds" };
193
151
  export function resolveDispositions(flags) {
194
- const longForm = longFormReady(flags);
152
+ const longForm = flags.longForm;
195
153
  return {
196
154
  ...FIELD_DISPOSITIONS,
197
155
  segments: longForm ? FIELD_DISPOSITIONS.segments : LONG_FORM_DISABLED,
@@ -202,36 +160,23 @@ export function resolveDispositions(flags) {
202
160
  templates: longForm ? FIELD_DISPOSITIONS.templates : TEMPLATES_DISABLED,
203
161
  template_theme: longForm ? FIELD_DISPOSITIONS.template_theme : TEMPLATES_DISABLED,
204
162
  template_sounds: longForm ? FIELD_DISPOSITIONS.template_sounds : TEMPLATES_DISABLED,
205
- scenes: longForm && flags.scenes === true ? FIELD_DISPOSITIONS.scenes : { kind: "rejected", message: SCENES_DISABLED_MESSAGE },
206
- motion_style: flags.compose && flags.motionStyles === true ? FIELD_DISPOSITIONS.motion_style
207
- : { kind: "rejected", message: MOTION_STYLES_DISABLED_MESSAGE },
163
+ scenes: longForm ? FIELD_DISPOSITIONS.scenes : { kind: "rejected", message: SCENES_DISABLED_MESSAGE },
208
164
  edit_sounds: longForm ? FIELD_DISPOSITIONS.edit_sounds : LONG_FORM_DISABLED,
209
165
  call: longForm ? FIELD_DISPOSITIONS.call : LONG_FORM_DISABLED,
210
166
  interview: longForm ? FIELD_DISPOSITIONS.interview : LONG_FORM_DISABLED,
211
167
  presenter_gaze: longForm ? FIELD_DISPOSITIONS.presenter_gaze : LONG_FORM_DISABLED,
212
168
  end_hold_s: longForm ? FIELD_DISPOSITIONS.end_hold_s : LONG_FORM_DISABLED,
213
- shots: longForm && flags.liveShots === true ? FIELD_DISPOSITIONS.shots : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
214
- product_asset_id: longForm && flags.liveShots === true ? FIELD_DISPOSITIONS.product_asset_id
215
- : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
216
- person: flags.actorGeneration === true ? PERSON_WITH_ACTOR_GENERATION : FIELD_DISPOSITIONS.person,
217
- image: flags.remoteFetch ? FIELD_DISPOSITIONS.image : REMOTE_FETCH_DISABLED,
218
- actor_id: flags.remoteFetch ? FIELD_DISPOSITIONS.actor_id : {
219
- kind: "rejected", message: "actor_id is temporarily disabled (remote media fetch is off); omit it to use the default actor",
220
- },
221
- actor_gender: flags.remoteFetch ? FIELD_DISPOSITIONS.actor_gender : {
222
- kind: "rejected", message: "actor_gender is temporarily disabled together with image and actor_id (remote media fetch is off); omit it to use the default actor",
223
- },
224
- background: flags.compose ? FIELD_DISPOSITIONS.background : COMPOSE_DISABLED,
169
+ shots: longForm ? FIELD_DISPOSITIONS.shots : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
170
+ product_asset_id: longForm ? FIELD_DISPOSITIONS.product_asset_id : { kind: "rejected", message: LIVE_SHOTS_DISABLED_MESSAGE },
171
+ person: PERSON_WITH_ACTOR_GENERATION,
225
172
  visible_ai_label: flags.outputMarking === true ? FIELD_DISPOSITIONS.visible_ai_label : {
226
173
  kind: "rejected", message: "visible_ai_label is not available right now; omit it",
227
174
  },
228
- music: flags.music === true ? FIELD_DISPOSITIONS.music : { kind: "rejected", message: MUSIC_DISABLED_MESSAGE },
229
175
  };
230
176
  }
231
- export const EFFECTIVE_DISPOSITIONS = resolveDispositions({
232
- ...contractFlagsFromEnv(),
233
- actorGeneration: isActorGenerationEnabled(),
234
- });
177
+ export const dispositionsFor = (offer) => resolveDispositions(contractFlagsFor(offer));
178
+ const WARNING_DISPOSITIONS = dispositionsFor(BASE_OFFER);
179
+ export const NOT_HONORED_MARK = "Not honored yet";
235
180
  const FIELD_DEFAULTS = Object.fromEntries(CONTRACT_FIELDS.map((field) => {
236
181
  const parsed = makeUgcInputShape[field].safeParse(undefined);
237
182
  return [field, parsed.success ? parsed.data : undefined];
@@ -246,7 +191,7 @@ function noteFor(disposition) {
246
191
  return `REJECTED: ${disposition.message}`;
247
192
  }
248
193
  if (disposition.kind === "warned") {
249
- return `NOT HONORED YET: ${disposition.warning}`;
194
+ return `${NOT_HONORED_MARK}: ${disposition.warning}`;
250
195
  }
251
196
  return null;
252
197
  }
@@ -266,7 +211,9 @@ export const fieldText = (schema) => {
266
211
  return schema.description ?? (inner === undefined ? undefined : fieldText(inner));
267
212
  };
268
213
  export const MCP_UGC_SHORTENED_TEXTS = compactFields.map((field) => fieldText(offeredUgcInputShape[field]) ?? "");
269
- export const mcpUgcInputShape = { ...offeredUgcInputShape, ...compactlyDescribed,
214
+ const mcpOfferedShape = Object.fromEntries(Object.entries(offeredUgcInputShape)
215
+ .filter(([field]) => FIELD_DISPOSITIONS[field].kind !== "warned"));
216
+ export const mcpUgcInputShape = { ...mcpOfferedShape, ...compactlyDescribed,
270
217
  overlays: z.array(mcpUgcOverlay).min(1).max(MAX_OVERLAYS).optional().describe(MCP_UGC_DESCRIPTIONS.overlays),
271
218
  templates: z.array(mcpUgcTemplate).min(1).max(MAX_TEMPLATES).optional().describe(MCP_UGC_DESCRIPTIONS.templates),
272
219
  scenes: z.array(mcpUgcScene).min(1).max(MAX_SCENES).optional().describe(fieldText(offeredUgcInputShape.scenes) ?? ""),
@@ -275,19 +222,17 @@ export const mcpUgcInputShape = { ...offeredUgcInputShape, ...compactlyDescribed
275
222
  interview: mcpUgcInterview.optional(), presenter_gaze: mcpPresenterGaze.optional(), shots: mcpLiveShots.optional(),
276
223
  design: mcpDesign.optional().describe("Look of templates, end card, caption highlight; absent: brand kit; not with template_theme. " +
277
224
  "look, fonts: from brand_kit; palette #RRGGBB.") };
278
- export function rejectedFields(input, env = typeof process === "undefined" ? {} : process.env) {
225
+ export function rejectedFields(input, offer = BASE_OFFER) {
226
+ const dispositions = dispositionsFor(offer);
279
227
  const hits = [];
280
228
  for (const field of CONTRACT_FIELDS) {
281
- const disposition = EFFECTIVE_DISPOSITIONS[field];
229
+ const disposition = dispositions[field];
282
230
  if (disposition.kind !== "rejected")
283
231
  continue;
284
232
  if (input[field] === undefined)
285
233
  continue;
286
234
  hits.push({ field, message: disposition.message });
287
235
  }
288
- if (!hits.some(hit => hit.field === "templates") && needsPresenterCutout(input.templates) && !isPresenterMatteEnabled(env)) {
289
- hits.push({ field: "templates", message: PRESENTER_MATTE_DISABLED_MESSAGE });
290
- }
291
236
  return hits;
292
237
  }
293
238
  const normalizedFieldName = (name) => name.toLowerCase().replace(/[^a-z0-9]/g, "");
@@ -306,7 +251,7 @@ export function unknownFields(raw, fields = CONTRACT_FIELDS) {
306
251
  export function dispositionWarnings(input) {
307
252
  const warnings = [];
308
253
  for (const field of CONTRACT_FIELDS) {
309
- const disposition = EFFECTIVE_DISPOSITIONS[field];
254
+ const disposition = WARNING_DISPOSITIONS[field];
310
255
  if (disposition.kind === "stored" && input[field] !== undefined && !carriesCustomerMedia(input)) {
311
256
  warnings.push(disposition.warning);
312
257
  }
@@ -42,6 +42,19 @@ export declare const workflowQuoteBinding: z.ZodObject<{
42
42
  estimatedFaceWordShare: z.ZodOptional<z.ZodNumber>;
43
43
  minimumApplied: z.ZodBoolean;
44
44
  }, z.core.$strict>>>;
45
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
46
+ anchor: z.ZodObject<{
47
+ quote: z.ZodString;
48
+ occurrence: z.ZodOptional<z.ZodNumber>;
49
+ }, z.core.$strict>;
50
+ field: z.ZodEnum<{
51
+ moves: "moves";
52
+ shots: "shots";
53
+ }>;
54
+ name: z.ZodString;
55
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
56
+ why: z.ZodString;
57
+ }, z.core.$strict>>>;
45
58
  tariff: z.ZodOptional<z.ZodString>;
46
59
  price_lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
60
  label: z.ZodString;
@@ -251,6 +264,19 @@ export declare const workflowQuoteBindingRead: z.ZodObject<{
251
264
  estimatedFaceWordShare: z.ZodOptional<z.ZodNumber>;
252
265
  minimumApplied: z.ZodBoolean;
253
266
  }, z.core.$strict>>>;
267
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
268
+ anchor: z.ZodObject<{
269
+ quote: z.ZodString;
270
+ occurrence: z.ZodOptional<z.ZodNumber>;
271
+ }, z.core.$strict>;
272
+ field: z.ZodEnum<{
273
+ moves: "moves";
274
+ shots: "shots";
275
+ }>;
276
+ name: z.ZodString;
277
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
278
+ why: z.ZodString;
279
+ }, z.core.$strict>>>;
254
280
  tariff: z.ZodOptional<z.ZodString>;
255
281
  price_lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
282
  label: z.ZodString;
@@ -36,6 +36,19 @@ export declare const workflowQuoteAnswer: z.ZodObject<{
36
36
  estimatedFaceWordShare: z.ZodOptional<z.ZodNumber>;
37
37
  minimumApplied: z.ZodBoolean;
38
38
  }, z.core.$strict>>>;
39
+ suggestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
40
+ anchor: z.ZodObject<{
41
+ quote: z.ZodString;
42
+ occurrence: z.ZodOptional<z.ZodNumber>;
43
+ }, z.core.$strict>;
44
+ field: z.ZodEnum<{
45
+ moves: "moves";
46
+ shots: "shots";
47
+ }>;
48
+ name: z.ZodString;
49
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
50
+ why: z.ZodString;
51
+ }, z.core.$strict>>>;
39
52
  tariff: z.ZodOptional<z.ZodString>;
40
53
  price_lines: z.ZodOptional<z.ZodArray<z.ZodObject<{
41
54
  label: z.ZodString;
@@ -10,6 +10,7 @@ export declare const CREATOR_PROFILE_CREDITS = 20;
10
10
  export declare const CREATOR_PROFILE_PER_HOUR = 30;
11
11
  export declare const CREATOR_PROFILE_WINDOW_SECONDS = 3600;
12
12
  export declare const CREATOR_PROFILE_VIDEOS = 12;
13
+ export declare const CREATOR_PINNED_MAX = 3;
13
14
  export declare const CREATOR_CAPTION_MAX_CHARS = 300;
14
15
  export declare const CREATOR_TOP_X = 2;
15
16
  export declare const CREATOR_PRELIMINARY_HOURS = 48;
@@ -93,6 +94,7 @@ export declare const creatorVideo: z.ZodObject<{
93
94
  }, z.core.$strict>>;
94
95
  x_median: z.ZodNullable<z.ZodNumber>;
95
96
  top: z.ZodBoolean;
97
+ pinned: z.ZodOptional<z.ZodLiteral<true>>;
96
98
  x_preliminary: z.ZodBoolean;
97
99
  breakout: z.ZodBoolean;
98
100
  viral: z.ZodBoolean;
@@ -136,6 +138,7 @@ export declare const creatorProfile: z.ZodObject<{
136
138
  }, z.core.$strict>>;
137
139
  x_median: z.ZodNullable<z.ZodNumber>;
138
140
  top: z.ZodBoolean;
141
+ pinned: z.ZodOptional<z.ZodLiteral<true>>;
139
142
  x_preliminary: z.ZodBoolean;
140
143
  breakout: z.ZodBoolean;
141
144
  viral: z.ZodBoolean;
@@ -241,6 +244,7 @@ export declare const creatorProfileAnswer: z.ZodObject<{
241
244
  }, z.core.$strict>>;
242
245
  x_median: z.ZodNullable<z.ZodNumber>;
243
246
  top: z.ZodBoolean;
247
+ pinned: z.ZodOptional<z.ZodLiteral<true>>;
244
248
  x_preliminary: z.ZodBoolean;
245
249
  breakout: z.ZodBoolean;
246
250
  viral: z.ZodBoolean;
@@ -363,6 +367,7 @@ export interface CreatorSource {
363
367
  export declare function medianOf(values: readonly (number | null)[]): number | null;
364
368
  export declare function xToMedian(views: number | null, median: number | null): number | null;
365
369
  export declare const creatorAuthorUrl: (platform: CreatorPlatform, name: string) => string;
370
+ export declare function pinnedVideos(videos: readonly CreatorSourceVideo[]): Set<CreatorSourceVideo>;
366
371
  export declare function buildCreatorProfile(source: CreatorSource, measuredAt: Date): {
367
372
  profile: CreatorProfile;
368
373
  warnings: string[];
@@ -14,6 +14,8 @@ export const CREATOR_PROFILE_CREDITS = 20;
14
14
  export const CREATOR_PROFILE_PER_HOUR = 30;
15
15
  export const CREATOR_PROFILE_WINDOW_SECONDS = 3600;
16
16
  export const CREATOR_PROFILE_VIDEOS = 12;
17
+ export const CREATOR_PINNED_MAX = 3;
18
+ const PINNED_GAP_MS = 86_400_000;
17
19
  export const CREATOR_CAPTION_MAX_CHARS = 300;
18
20
  export const CREATOR_TOP_X = 2;
19
21
  export const CREATOR_PRELIMINARY_HOURS = 48;
@@ -104,6 +106,8 @@ const measuredVideoShape = {
104
106
  .describe(`The author's text under the video, cut at ${CREATOR_CAPTION_MAX_CHARS} characters; null when there is none.`),
105
107
  x_median: z.number().nonnegative().nullable().describe("views over median_views, one decimal; null when either is unknown or the median is 0."),
106
108
  top: z.boolean().describe(`True when x_median is at least ${CREATOR_TOP_X}.`),
109
+ pinned: z.literal(true).optional().describe("Present and true when the account pins the video on top of its feed. A pinned video is shown with its x_median, " +
110
+ "but the median, the cadence and the comment norm are read from the unpinned latest videos only."),
107
111
  };
108
112
  export const creatorWhy = z.strictObject({ signal: z.enum(CREATOR_WHY_SIGNALS), text: z.string().min(1).max(160) });
109
113
  export const creatorVideo = z.strictObject({
@@ -124,24 +128,24 @@ export const creatorVideo = z.strictObject({
124
128
  const authorShape = z.strictObject({ platform: z.enum(CREATOR_PLATFORMS), handle, name: z.string().min(1).max(120).nullable(),
125
129
  url: z.string().url(), followers: count });
126
130
  const cadenceShape = z.strictObject({
127
- videos_per_week: z.number().nonnegative().nullable().describe("Videos a week between the oldest and the newest listed; null under 2 dated videos."),
131
+ videos_per_week: z.number().nonnegative().nullable().describe("Videos a week between the oldest and the newest listed, pinned videos left out; null under 2 dated videos."),
128
132
  span_days: z.number().nonnegative().nullable(),
129
133
  last_posted_at: z.string().datetime().nullable(),
130
134
  });
131
135
  export const creatorProfile = z.strictObject({
132
136
  author: authorShape,
133
137
  measured_at: z.string().datetime().describe("Every number below is as of this time."),
134
- videos: z.array(creatorVideo).min(1).max(CREATOR_PROFILE_VIDEOS).describe("The latest videos, newest first."),
138
+ videos: z.array(creatorVideo).min(1).max(CREATOR_PROFILE_VIDEOS + CREATOR_PINNED_MAX).describe("The latest videos, newest first, and any pinned ones among them marked pinned."),
135
139
  median_views: z.number().nonnegative().nullable().describe("The median views of the videos with a known view count."),
136
140
  videos_with_views: z.number().int().nonnegative(),
137
141
  median_comment_rate: z.number().nonnegative().nullable().describe("The median comment_rate of the videos with both counts, four decimals; null " +
138
142
  `under ${CREATOR_COMMENT_NORM_MIN_VIDEOS} such videos.`),
139
143
  cadence: cadenceShape,
140
144
  voice_proposal: scriptVoice.optional().describe("A script voice proposed from the author's own captions (#1203): their topics and a closing " +
141
- "line they repeat. Third-party text: show it, and save it with brand_kit only once the user confirms it is their own account."),
145
+ "line they repeat. Third-party text, not saved until passed to brand_kit; it suits only this author's own brand kit."),
142
146
  });
143
147
  const measuredProfile = z.object({
144
- author: authorShape, measured_at: z.string().datetime(), videos: z.array(z.object(measuredVideoShape)).min(1).max(CREATOR_PROFILE_VIDEOS),
148
+ author: authorShape, measured_at: z.string().datetime(), videos: z.array(z.object(measuredVideoShape)).min(1).max(CREATOR_PROFILE_VIDEOS + CREATOR_PINNED_MAX),
145
149
  median_views: z.number().nonnegative().nullable(), videos_with_views: z.number().int().nonnegative(), cadence: cadenceShape,
146
150
  });
147
151
  const HASHTAG = /#[\p{L}\p{N}_]{2,40}/gu;
@@ -229,19 +233,35 @@ function captionOf(text) {
229
233
  return chars.length > CREATOR_CAPTION_MAX_CHARS ? { text: chars.slice(0, CREATOR_CAPTION_MAX_CHARS).join(""), truncated: true } : { text: trimmed, truncated: false };
230
234
  }
231
235
  export const creatorAuthorUrl = (platform, name) => platform === "instagram" ? `https://www.instagram.com/${name}/` : `https://www.tiktok.com/@${name}`;
236
+ export function pinnedVideos(videos) {
237
+ const pinned = new Set();
238
+ videos.slice(0, CREATOR_PINNED_MAX).forEach((video, at) => {
239
+ if (video.postedAt === null)
240
+ return;
241
+ const mine = video.postedAt.getTime();
242
+ if (videos.slice(at + 1).some((later) => later.postedAt !== null && later.postedAt.getTime() - mine > PINNED_GAP_MS))
243
+ pinned.add(video);
244
+ });
245
+ const rest = videos.filter((video) => !pinned.has(video) && video.postedAt !== null).map((video) => video.postedAt.getTime());
246
+ const newestFirst = rest.every((time, at) => at === 0 || rest[at - 1] >= time);
247
+ return pinned.size >= videos.length || !newestFirst ? new Set() : pinned;
248
+ }
232
249
  export function buildCreatorProfile(source, measuredAt) {
233
- const latest = [...source.videos]
250
+ const pinnedSet = pinnedVideos(source.videos);
251
+ const latest = source.videos.filter((video) => !pinnedSet.has(video))
234
252
  .sort((a, b) => (b.postedAt?.getTime() ?? Number.NEGATIVE_INFINITY) - (a.postedAt?.getTime() ?? Number.NEGATIVE_INFINITY))
235
253
  .slice(0, CREATOR_PROFILE_VIDEOS);
254
+ const pinned = source.videos.filter((video) => pinnedSet.has(video));
236
255
  if (latest.length === 0)
237
256
  throw new Error("a creator profile needs at least one video");
238
257
  const median = medianOf(latest.map((video) => video.views));
239
- const videos = latest.map((video) => {
258
+ const measure = (list) => list.map((video) => {
240
259
  const x = xToMedian(video.views, median);
241
260
  return { url: video.url, posted_at: video.postedAt?.toISOString() ?? null, duration_s: video.durationS !== null && video.durationS > 0 ? video.durationS : null,
242
261
  views: video.views, likes: video.likes, comments: video.comments, shares: video.shares, caption: captionOf(video.caption),
243
- x_median: x, top: x !== null && x >= CREATOR_TOP_X };
262
+ x_median: x, top: x !== null && x >= CREATOR_TOP_X, ...(pinnedSet.has(video) ? { pinned: true } : {}) };
244
263
  });
264
+ const videos = measure(latest);
245
265
  const dated = latest.flatMap((video) => (video.postedAt === null ? [] : [video.postedAt.getTime()]));
246
266
  const span = dated.length >= 2 ? (Math.max(...dated) - Math.min(...dated)) / DAY_MS : null;
247
267
  const cadence = {
@@ -253,7 +273,13 @@ export function buildCreatorProfile(source, measuredAt) {
253
273
  const measured = measuredProfile.parse({ author: { platform: source.platform, handle: source.handle,
254
274
  name: source.name?.trim() ? source.name.trim().slice(0, 120) : null, url: creatorAuthorUrl(source.platform, source.handle), followers: source.followers },
255
275
  measured_at: measuredAt.toISOString(), videos, median_views: median, videos_with_views: withViews, cadence });
256
- const profile = creatorProfile.parse(withReadings(measured, latest.map((video) => ({ text: video.caption?.trim() || null, cut: false }))));
276
+ const read = (video) => ({ text: video.caption?.trim() || null, cut: false });
277
+ const base = withReadings(measured, latest.map(read));
278
+ const pinnedRead = pinned.length === 0 ? []
279
+ : withReadings({ ...measured, videos: measure([...latest, ...pinned]) }, [...latest, ...pinned].map(read), latest.length).videos.slice(latest.length);
280
+ const shown = [...base.videos, ...pinnedRead].sort((a, b) => (b.posted_at === null ? Number.NEGATIVE_INFINITY : Date.parse(b.posted_at))
281
+ - (a.posted_at === null ? Number.NEGATIVE_INFINITY : Date.parse(a.posted_at)) || 0);
282
+ const profile = creatorProfile.parse({ ...base, videos: shown });
257
283
  const warnings = [];
258
284
  if (latest.length < CREATOR_PROFILE_VIDEOS)
259
285
  warnings.push(`videos: the account shows ${latest.length} videos, fewer than ${CREATOR_PROFILE_VIDEOS}`);
@@ -288,10 +314,10 @@ function tagsOf({ text, cut }) {
288
314
  return new Set();
289
315
  return new Set([...text.matchAll(HASHTAG)].filter((tag) => !cut || tag.index + tag[0].length < text.length).map((tag) => tag[0].toLowerCase()));
290
316
  }
291
- function withReadings(profile, captions) {
292
- const measuredMs = Date.parse(profile.measured_at), total = profile.videos.length;
317
+ function withReadings(profile, captions, counted = profile.videos.length) {
318
+ const measuredMs = Date.parse(profile.measured_at), total = counted;
293
319
  const rates = profile.videos.map((video) => (video.comments === null || video.views === null || video.views === 0 ? null : video.comments / video.views));
294
- const known = rates.filter((rate) => rate !== null);
320
+ const known = rates.slice(0, counted).filter((rate) => rate !== null);
295
321
  const norm = known.length < CREATOR_COMMENT_NORM_MIN_VIDEOS ? null : medianOf(known);
296
322
  const medianRate = norm === null ? null : fourDecimals(norm);
297
323
  const funnels = captions.map(funnelOf), tags = captions.map(tagsOf);
@@ -308,13 +334,13 @@ function withReadings(profile, captions) {
308
334
  funnel: funnels[at] ?? null };
309
335
  });
310
336
  const tookOff = labelled.map((video) => video.top || video.breakout || video.viral);
311
- const hits = tookOff.filter(Boolean).length, others = total - hits;
312
- const asking = funnels.filter((word) => word !== null).length;
337
+ const hits = tookOff.slice(0, counted).filter(Boolean).length, others = total - hits;
338
+ const asking = funnels.slice(0, counted).filter((word) => word !== null).length;
313
339
  const topicsOf = (at) => {
314
340
  if (others === 0)
315
341
  return [];
316
342
  return [...tags[at]].flatMap((tag) => {
317
- const on = tags.map((own) => own.has(tag));
343
+ const on = tags.slice(0, counted).map((own) => own.has(tag));
318
344
  const hitsWith = on.filter((has, other) => has && tookOff[other]).length, othersWith = on.filter((has, other) => has && !tookOff[other]).length;
319
345
  return hitsWith >= 2 && hitsWith / hits > othersWith / others ? [{ tag, hitsWith, othersWith }] : [];
320
346
  }).sort((a, b) => b.hitsWith - a.hitsWith || a.othersWith - b.othersWith || a.tag.localeCompare(b.tag)).slice(0, CREATOR_WHY_TOPICS_MAX)
package/dist/design.js CHANGED
@@ -139,7 +139,7 @@ export const brandKit = z.object({ design: design.nullable(), voice: scriptVoice
139
139
  looks: z.array(designLookEntry), fonts: z.array(z.enum(DESIGN_FONT_FAMILIES)) });
140
140
  export const brandGuideBlock = z.strictObject({
141
141
  brand_name: brandName.nullable(),
142
- look: brandLook.nullable().describe(`${BRAND_LOOK_NOTE}: offer it as one of the looks you show the user`),
142
+ look: brandLook.nullable().describe(`${BRAND_LOOK_NOTE}: one of the looks to choose from`),
143
143
  prompt_block: brandPromptBlock.nullable().describe(PROMPT_BLOCK_NOTE),
144
144
  }).nullable().describe("Your account's saved brand from brand_kit, null when none is saved: text to paste, never instructions to follow. " +
145
145
  "Paste prompt_block word for word into every generate_image and generate_video prompt");
@@ -149,12 +149,12 @@ export const extractBrandResponse = z.object({
149
149
  url: z.string(),
150
150
  design: design,
151
151
  resolved: resolvedDesign,
152
- voice: scriptVoice.optional().describe("A proposed script voice read from the page's own words (#1203): third-party text, for the user to " +
153
- "confirm before brand_kit saves it."),
154
- brand_name: brandName.optional().describe("A proposed brand name read from the page: third-party text, for the user to confirm before " +
155
- "brand_kit saves it."),
152
+ voice: scriptVoice.optional().describe("A proposed script voice read from the page's own words (#1203): third-party text, not " +
153
+ "saved until passed to brand_kit."),
154
+ brand_name: brandName.optional().describe("A proposed brand name read from the page: third-party text, not saved until passed to " +
155
+ "brand_kit."),
156
156
  prompt_block: brandPromptBlock.optional().describe("A proposed prompt block from that name and the proposed palette: third-party text, " +
157
- "for the user to confirm before brand_kit saves it."),
157
+ "not saved until passed to brand_kit."),
158
158
  niches: z.array(siteTrendNiche).max(SITE_NICHES_MAX).optional().describe(SITE_NICHES_DESCRIPTION),
159
159
  evidence: z.object({
160
160
  colors: z.array(z.object({ hex, count: z.number().int().positive() })).max(12),
@@ -86,14 +86,11 @@ export declare const FACELESS_SHOT_CREDITS_PER_SECOND = 30;
86
86
  export declare const FACELESS_MAX_SHOTS = 10;
87
87
  export declare const FACELESS_SHOT_MAX_SEC = 5;
88
88
  export declare const FACELESS_MAX_CAP_USD_MICROS = 10000000;
89
- export declare const facelessScenesEnabled: (env: Record<string, string | undefined>) => boolean;
90
89
  export declare const facelessShotSecondsCeiling: (shots: number) => number;
91
90
  export declare function facelessPartsBase(images: number, outputFrames: number): number;
92
- export declare const facelessExplainerEnabled: (env: Record<string, string | undefined>) => boolean;
93
91
  export declare const FACELESS_EXPLAINER_POSE_PICTURES = 9;
94
92
  export declare const EXPLAINER_BEAT_CREDITS = 65;
95
93
  export declare const EXPLAINER_MAX_AUTHORED_BEATS = 8;
96
- export declare const explainerBeatsEnabled: (env: Record<string, string | undefined>) => boolean;
97
94
  export declare const EXPLAINER_MAX_OBJECT_PICTURES = 12;
98
95
  export declare const explainerObjectCeiling: (script: string) => number;
99
96
  export declare const EXPLAINER_FILM_CREDITS = 500;
@@ -128,8 +125,6 @@ export declare const EXPLAINER_TIER_TARIFFS: {
128
125
  readonly pro: "skill-agent-opus-v1";
129
126
  };
130
127
  export declare const explainerTierTariff: (tier: ExplainerTier | undefined) => SkillFilmTariff;
131
- export declare const skillAgentEnabled: (env: Record<string, string | undefined>) => boolean;
132
- export declare const explainerFilmOffered: (env: Record<string, string | undefined>) => boolean;
133
128
  export declare const facelessImageCeilings: (selectedFrames: number) => number[];
134
129
  export declare function quoteFaceless(input: {
135
130
  outputFrames: number;