@clipwright/core 0.60.0 → 0.61.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/account-actors.d.ts +0 -43
- package/dist/account-actors.js +0 -55
- package/dist/account.d.ts +0 -6
- package/dist/account.js +0 -18
- package/dist/actor-bounds.d.ts +0 -5
- package/dist/actor-bounds.js +0 -6
- package/dist/actor-qualities.d.ts +0 -3
- package/dist/actor-qualities.js +0 -4
- package/dist/actors.d.ts +0 -16
- package/dist/actors.js +0 -21
- package/dist/ad-guide.js +0 -2
- package/dist/ad-pause-trim.d.ts +0 -5
- package/dist/ad-pause-trim.js +0 -8
- package/dist/api-failure.d.ts +0 -44
- package/dist/api-failure.js +0 -62
- package/dist/aspect.d.ts +0 -29
- package/dist/aspect.js +1 -34
- package/dist/asset-identity.d.ts +0 -2
- package/dist/asset-identity.js +0 -3
- package/dist/assets.d.ts +0 -34
- package/dist/assets.js +0 -42
- package/dist/billing-terms.d.ts +0 -3
- package/dist/billing-terms.js +0 -4
- package/dist/brand-styles.d.ts +0 -6
- package/dist/brand-styles.js +0 -13
- package/dist/broll-policy.js +0 -1
- package/dist/canvas-fit.d.ts +0 -2
- package/dist/canvas-fit.js +0 -4
- package/dist/caption-funnel.d.ts +0 -2
- package/dist/caption-funnel.js +0 -15
- package/dist/caption-geometry.d.ts +0 -6
- package/dist/caption-geometry.js +0 -10
- package/dist/caption-language.d.ts +0 -3
- package/dist/caption-language.js +0 -6
- package/dist/contract-dispositions.d.ts +0 -61
- package/dist/contract-dispositions.js +3 -96
- package/dist/contracts/v1/workflow-brief.d.ts +57 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +114 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +114 -0
- package/dist/contracts/v1/workflow-client.js +0 -1
- package/dist/contracts/v1/workflow-dto.js +0 -1
- package/dist/contracts/v1/workflow-evidence.js +0 -1
- package/dist/contracts/v1/workflow-execution.d.ts +0 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +0 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +171 -0
- package/dist/contracts/v1/workflow-plan.js +0 -1
- package/dist/contracts/v1/workflow-primitives.d.ts +0 -1
- package/dist/contracts/v1/workflow-primitives.js +0 -2
- package/dist/contracts/v1/workflow-run-read.d.ts +0 -1
- package/dist/contracts/v1/workflow-run-read.js +0 -3
- package/dist/creator-profile.d.ts +0 -30
- package/dist/creator-profile.js +0 -45
- package/dist/default-actor.js +0 -2
- package/dist/design.d.ts +0 -17
- package/dist/design.js +0 -18
- package/dist/edit-billing.d.ts +0 -6
- package/dist/edit-billing.js +0 -10
- package/dist/edit-candidate.d.ts +0 -6
- package/dist/edit-candidate.js +0 -9
- package/dist/edit-document.d.ts +0 -12
- package/dist/edit-document.js +0 -15
- package/dist/edit-faceless.d.ts +0 -3
- package/dist/edit-faceless.js +0 -4
- package/dist/edit-long-form.d.ts +0 -13
- package/dist/edit-long-form.js +0 -17
- package/dist/edit-operations.d.ts +0 -1
- package/dist/edit-operations.js +0 -2
- package/dist/edit-primitives.d.ts +0 -3
- package/dist/edit-primitives.js +0 -5
- package/dist/edit-revision.d.ts +0 -4
- package/dist/edit-revision.js +0 -6
- package/dist/edit-rules.d.ts +0 -3
- package/dist/edit-rules.js +0 -9
- package/dist/edit-shots.d.ts +45 -5
- package/dist/edit-shots.js +7 -11
- package/dist/edit-validate.d.ts +0 -10
- package/dist/edit-validate.js +0 -14
- package/dist/edit.js +0 -3
- package/dist/endpoint-notes.d.ts +0 -2
- package/dist/endpoint-notes.js +0 -3
- package/dist/endpoints.d.ts +0 -11
- package/dist/endpoints.js +7 -21
- package/dist/errors.d.ts +0 -42
- package/dist/errors.js +0 -54
- package/dist/explainer-fit.d.ts +0 -7
- package/dist/explainer-fit.js +0 -10
- package/dist/face-billing.d.ts +0 -9
- package/dist/face-billing.js +0 -23
- package/dist/face-delivery.d.ts +0 -1
- package/dist/face-delivery.js +0 -2
- package/dist/faceless-action-shots.d.ts +0 -8
- package/dist/faceless-action-shots.js +0 -8
- package/dist/faceless-customer-anchors.d.ts +0 -1
- package/dist/faceless-customer-anchors.js +0 -2
- package/dist/faceless-cut-style.js +0 -1
- package/dist/faceless-direction-summary.d.ts +0 -2
- package/dist/faceless-direction-summary.js +0 -3
- package/dist/faceless-image-placement.d.ts +0 -2
- package/dist/faceless-image-placement.js +0 -3
- package/dist/faceless-image-qualification.js +0 -2
- package/dist/faceless-media-record.d.ts +0 -6
- package/dist/faceless-media-record.js +0 -11
- package/dist/faceless-price.d.ts +0 -45
- package/dist/faceless-price.js +0 -64
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +0 -26
- package/dist/faceless-public.js +0 -59
- package/dist/faceless-short-61.js +0 -1
- package/dist/faceless-storyboard-timing.js +0 -1
- package/dist/faceless-storyboard-v2-plan.js +0 -1
- package/dist/faceless-storyboard-v2-timing.d.ts +0 -4
- package/dist/faceless-storyboard-v2-timing.js +0 -3
- package/dist/faceless-storyboard-v2.js +0 -1
- package/dist/faceless-storyboard.js +0 -1
- package/dist/faceless-voices.d.ts +0 -16
- package/dist/faceless-voices.js +0 -18
- package/dist/feedback.d.ts +0 -4
- package/dist/feedback.js +0 -5
- package/dist/film-directions.d.ts +0 -2
- package/dist/film-directions.js +0 -7
- package/dist/film-drafts.d.ts +0 -8
- package/dist/film-drafts.js +0 -19
- package/dist/film-guide.d.ts +0 -3
- package/dist/film-guide.js +0 -6
- package/dist/film-styles.d.ts +0 -5
- package/dist/film-styles.js +0 -8
- package/dist/generation-shot.d.ts +0 -5
- package/dist/generation-shot.js +0 -8
- package/dist/generations-output.d.ts +0 -2
- package/dist/generations-output.js +0 -5
- package/dist/generations.d.ts +0 -22
- package/dist/generations.js +21 -44
- package/dist/idempotency.d.ts +1 -21
- package/dist/idempotency.js +8 -29
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -28
- package/dist/live-shot-kinds.d.ts +16 -25
- package/dist/live-shot-kinds.js +12 -28
- package/dist/long-form-pricing.d.ts +0 -5
- package/dist/long-form-pricing.js +0 -6
- package/dist/long-form-profile.d.ts +0 -3
- package/dist/long-form-profile.js +0 -4
- package/dist/long-form-revision.d.ts +0 -9
- package/dist/long-form-revision.js +0 -11
- package/dist/markdown-quote.d.ts +0 -2
- package/dist/markdown-quote.js +0 -3
- package/dist/mascots.d.ts +0 -5
- package/dist/mascots.js +0 -10
- package/dist/max-credits.d.ts +0 -1
- package/dist/max-credits.js +0 -2
- package/dist/mcp-ugc-descriptions.d.ts +0 -2
- package/dist/mcp-ugc-descriptions.js +1 -6
- package/dist/media-timebase.d.ts +0 -2
- package/dist/media-timebase.js +0 -6
- package/dist/motion-styles.d.ts +0 -8
- package/dist/motion-styles.js +0 -11
- package/dist/moves.d.ts +0 -7
- package/dist/moves.js +0 -9
- package/dist/music.d.ts +0 -5
- package/dist/music.js +0 -8
- package/dist/naming.d.ts +0 -3
- package/dist/naming.js +0 -19
- package/dist/openapi.d.ts +0 -13
- package/dist/openapi.js +6 -11
- package/dist/output-provenance.d.ts +0 -4
- package/dist/output-provenance.js +0 -5
- package/dist/own-agent-price.d.ts +19 -22
- package/dist/own-agent-price.js +30 -25
- package/dist/own-agent-runs.d.ts +111 -11
- package/dist/own-agent-runs.js +89 -24
- package/dist/pacing.d.ts +3 -15
- package/dist/pacing.js +18 -18
- package/dist/parts-pricing.d.ts +0 -28
- package/dist/parts-pricing.js +0 -32
- package/dist/post-text.d.ts +0 -2
- package/dist/post-text.js +0 -4
- package/dist/presenter-beats.d.ts +0 -10
- package/dist/presenter-beats.js +0 -14
- package/dist/presenter-matte.d.ts +0 -7
- package/dist/presenter-matte.js +0 -9
- package/dist/presenter-takes.d.ts +0 -3
- package/dist/presenter-takes.js +0 -8
- package/dist/prices.d.ts +2 -8
- package/dist/prices.js +13 -23
- package/dist/public-endpoints.d.ts +0 -11
- package/dist/public-endpoints.js +0 -14
- package/dist/public-responses.d.ts +0 -2
- package/dist/public-responses.js +0 -3
- package/dist/rate-limit.d.ts +0 -24
- package/dist/rate-limit.js +0 -29
- package/dist/reference-analysis.d.ts +57 -34
- package/dist/reference-analysis.js +0 -69
- package/dist/reference-bring.d.ts +33 -0
- package/dist/reference-bring.js +28 -0
- package/dist/reference-display.d.ts +0 -3
- package/dist/reference-display.js +37 -4
- package/dist/reference-kinds.d.ts +0 -4
- package/dist/reference-kinds.js +0 -6
- package/dist/reference-lyrics.d.ts +0 -6
- package/dist/reference-lyrics.js +0 -6
- package/dist/reference-profile.d.ts +270 -39
- package/dist/reference-profile.js +64 -50
- package/dist/reference-staging.d.ts +0 -10
- package/dist/reference-staging.js +0 -14
- package/dist/reference-text-spans.d.ts +0 -4
- package/dist/reference-text-spans.js +0 -7
- package/dist/reference-voice-over.d.ts +0 -6
- package/dist/reference-voice-over.js +0 -7
- package/dist/reference-voice.d.ts +0 -7
- package/dist/reference-voice.js +0 -12
- package/dist/render-backend.d.ts +0 -30
- package/dist/render-backend.js +0 -5
- package/dist/resolved-timeline.d.ts +0 -4
- package/dist/resolved-timeline.js +1 -31
- package/dist/run-media.d.ts +0 -1
- package/dist/run-media.js +0 -2
- package/dist/run-preflight.d.ts +0 -4
- package/dist/run-preflight.js +0 -11
- package/dist/run-static-warnings.d.ts +0 -8
- package/dist/run-static-warnings.js +0 -38
- package/dist/runs.d.ts +0 -32
- package/dist/runs.js +0 -50
- package/dist/scene-bible.d.ts +15 -7
- package/dist/scene-bible.js +15 -10
- package/dist/scene-graph.d.ts +0 -12
- package/dist/scene-graph.js +0 -24
- package/dist/scene-place.d.ts +0 -25
- package/dist/scene-place.js +0 -24
- package/dist/scene-proposal.d.ts +0 -3
- package/dist/scene-proposal.js +0 -9
- package/dist/script-integrity.d.ts +0 -6
- package/dist/script-integrity.js +0 -8
- package/dist/script-voice.d.ts +0 -7
- package/dist/script-voice.js +0 -16
- package/dist/semantic-inserts.d.ts +0 -7
- package/dist/semantic-inserts.js +0 -10
- package/dist/skill-theme-explainer.js +0 -5
- package/dist/skill-theme.d.ts +0 -13
- package/dist/skill-theme.js +0 -25
- package/dist/skills.d.ts +22 -86
- package/dist/skills.js +21 -167
- package/dist/speech-rhythm-contract.js +0 -1
- package/dist/speech-rhythm.d.ts +0 -4
- package/dist/speech-rhythm.js +0 -2
- package/dist/templates/backdrop.d.ts +0 -3
- package/dist/templates/backdrop.js +0 -5
- package/dist/templates/callout.d.ts +0 -4
- package/dist/templates/callout.js +0 -6
- package/dist/templates/chart.d.ts +0 -4
- package/dist/templates/chart.js +0 -6
- package/dist/templates/chat-window.d.ts +0 -8
- package/dist/templates/chat-window.js +0 -10
- package/dist/templates/checklist.d.ts +0 -3
- package/dist/templates/checklist.js +0 -6
- package/dist/templates/comment-cta.d.ts +0 -14
- package/dist/templates/comment-cta.js +0 -19
- package/dist/templates/compare.d.ts +0 -6
- package/dist/templates/compare.js +0 -7
- package/dist/templates/cover-story.d.ts +0 -1
- package/dist/templates/cover-story.js +0 -3
- package/dist/templates/end-card.d.ts +0 -2
- package/dist/templates/end-card.js +0 -3
- package/dist/templates/hand-title.d.ts +0 -5
- package/dist/templates/hand-title.js +0 -9
- package/dist/templates/index.d.ts +0 -57
- package/dist/templates/index.js +0 -60
- package/dist/templates/lower-third.d.ts +0 -4
- package/dist/templates/lower-third.js +0 -5
- package/dist/templates/notification.d.ts +0 -6
- package/dist/templates/notification.js +0 -7
- package/dist/templates/phone-call.d.ts +0 -2
- package/dist/templates/phone-call.js +0 -6
- package/dist/templates/phone-screen.d.ts +0 -5
- package/dist/templates/phone-screen.js +0 -7
- package/dist/templates/pointer-chips.d.ts +0 -4
- package/dist/templates/pointer-chips.js +0 -6
- package/dist/templates/progress.d.ts +0 -3
- package/dist/templates/progress.js +0 -5
- package/dist/templates/quote.d.ts +0 -3
- package/dist/templates/quote.js +0 -4
- package/dist/templates/race.d.ts +0 -5
- package/dist/templates/race.js +0 -7
- package/dist/templates/rating.d.ts +0 -3
- package/dist/templates/rating.js +0 -5
- package/dist/templates/series-frame.d.ts +0 -16
- package/dist/templates/series-frame.js +0 -19
- package/dist/templates/size.d.ts +0 -7
- package/dist/templates/size.js +0 -8
- package/dist/templates/slot.d.ts +0 -2
- package/dist/templates/slot.js +0 -2
- package/dist/templates/sounds.d.ts +0 -12
- package/dist/templates/sounds.js +0 -16
- package/dist/templates/stat.d.ts +0 -3
- package/dist/templates/stat.js +0 -5
- package/dist/templates/tag.d.ts +0 -3
- package/dist/templates/tag.js +0 -5
- package/dist/templates/terminal.d.ts +0 -6
- package/dist/templates/terminal.js +0 -8
- package/dist/templates/theme.d.ts +0 -7
- package/dist/templates/theme.js +0 -9
- package/dist/templates/title-card.d.ts +0 -3
- package/dist/templates/title-card.js +0 -5
- package/dist/templates/video-grid.d.ts +0 -5
- package/dist/templates/video-grid.js +0 -8
- package/dist/templates/word-fill.d.ts +0 -3
- package/dist/templates/word-fill.js +0 -4
- package/dist/templates/word-title.d.ts +0 -2
- package/dist/templates/word-title.js +0 -4
- package/dist/trend-niches.d.ts +0 -11
- package/dist/trend-niches.js +0 -16
- package/dist/trend-search.d.ts +0 -66
- package/dist/trend-search.js +0 -70
- package/dist/tts-backend.d.ts +0 -19
- package/dist/tts-backend.js +0 -7
- package/dist/ugc-call.d.ts +0 -16
- package/dist/ugc-call.js +0 -21
- package/dist/ugc-delivery.d.ts +0 -2
- package/dist/ugc-delivery.js +0 -4
- package/dist/ugc-framing.d.ts +0 -4
- package/dist/ugc-framing.js +0 -6
- package/dist/ugc-interview.d.ts +0 -18
- package/dist/ugc-interview.js +0 -24
- package/dist/ugc-layers.d.ts +0 -39
- package/dist/ugc-layers.js +0 -39
- package/dist/ugc-scenes.d.ts +0 -2
- package/dist/ugc-scenes.js +0 -5
- package/dist/ugc-video-media.d.ts +0 -5
- package/dist/ugc-video-media.js +0 -7
- package/dist/uploads.d.ts +0 -14
- package/dist/uploads.js +0 -17
- package/dist/vendor-response.d.ts +0 -19
- package/dist/vendor-response.js +0 -22
- package/dist/video-size.d.ts +0 -4
- package/dist/video-size.js +0 -7
- package/dist/voice-admission.d.ts +0 -11
- package/dist/voice-admission.js +0 -13
- package/dist/voice-catalog-data.d.ts +0 -2
- package/dist/voice-catalog-data.js +0 -3
- package/dist/voice-catalog.d.ts +0 -6
- package/dist/voice-catalog.js +0 -8
- package/dist/voice-listing.d.ts +0 -6
- package/dist/voice-listing.js +0 -14
- package/dist/voice-pace.d.ts +0 -4
- package/dist/voice-pace.js +0 -7
- package/dist/voice-preview-approval.js +0 -1
- package/dist/voices.d.ts +4 -69
- package/dist/voices.js +3 -88
- package/dist/workflows/catalog.d.ts +0 -2
- package/dist/workflows/catalog.js +0 -4
- package/dist/workflows/film-directions.d.ts +0 -3
- package/dist/workflows/film-directions.js +0 -4
- package/dist/workflows/index.js +0 -1
- package/dist/workflows/methods/faceless-explainer.d.ts +31 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +62 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +31 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +31 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +31 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +31 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +31 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +62 -1
- package/dist/workflows/methods/website-proof-demo.js +0 -2
- package/dist/workflows/motion-director.d.ts +0 -11
- package/dist/workflows/motion-director.js +0 -11
- package/dist/workflows/product-references.js +0 -1
- package/dist/workflows/reference-remake.d.ts +114 -17
- package/dist/workflows/reference-remake.js +0 -167
- package/dist/workflows/remake-chooser.d.ts +0 -6
- package/dist/workflows/remake-chooser.js +0 -4
- package/dist/workflows/remake-motion.d.ts +0 -16
- package/dist/workflows/remake-motion.js +0 -19
- package/dist/workflows/validate.d.ts +0 -1
- package/dist/workflows/validate.js +0 -5
- package/dist/workflows.js +0 -1
- package/package.json +1 -1
- package/dist/account-actors.js.map +0 -1
- package/dist/account.js.map +0 -1
- package/dist/actor-bounds.js.map +0 -1
- package/dist/actor-qualities.js.map +0 -1
- package/dist/actors.js.map +0 -1
- package/dist/ad-guide.js.map +0 -1
- package/dist/ad-pause-trim.js.map +0 -1
- package/dist/api-failure.js.map +0 -1
- package/dist/aspect.js.map +0 -1
- package/dist/asset-identity.js.map +0 -1
- package/dist/assets.js.map +0 -1
- package/dist/billing-terms.js.map +0 -1
- package/dist/brand-styles.js.map +0 -1
- package/dist/broll-policy.js.map +0 -1
- package/dist/canvas-fit.js.map +0 -1
- package/dist/caption-funnel.js.map +0 -1
- package/dist/caption-geometry.js.map +0 -1
- package/dist/caption-language.js.map +0 -1
- package/dist/contract-dispositions.js.map +0 -1
- package/dist/contracts/v1/workflow-brief.js.map +0 -1
- package/dist/contracts/v1/workflow-catalog.js.map +0 -1
- package/dist/contracts/v1/workflow-client.js.map +0 -1
- package/dist/contracts/v1/workflow-dto.js.map +0 -1
- package/dist/contracts/v1/workflow-evidence.js.map +0 -1
- package/dist/contracts/v1/workflow-execution.js.map +0 -1
- package/dist/contracts/v1/workflow-next.js.map +0 -1
- package/dist/contracts/v1/workflow-plan.js.map +0 -1
- package/dist/contracts/v1/workflow-primitives.js.map +0 -1
- package/dist/contracts/v1/workflow-run-read.js.map +0 -1
- package/dist/creator-profile.js.map +0 -1
- package/dist/default-actor.js.map +0 -1
- package/dist/design.js.map +0 -1
- package/dist/edit-billing.js.map +0 -1
- package/dist/edit-candidate.js.map +0 -1
- package/dist/edit-document.js.map +0 -1
- package/dist/edit-faceless.js.map +0 -1
- package/dist/edit-long-form.js.map +0 -1
- package/dist/edit-operations.js.map +0 -1
- package/dist/edit-primitives.js.map +0 -1
- package/dist/edit-revision.js.map +0 -1
- package/dist/edit-rules.js.map +0 -1
- package/dist/edit-shots.js.map +0 -1
- package/dist/edit-validate.js.map +0 -1
- package/dist/edit.js.map +0 -1
- package/dist/endpoint-notes.js.map +0 -1
- package/dist/endpoints.js.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/explainer-fit.js.map +0 -1
- package/dist/face-billing.js.map +0 -1
- package/dist/face-delivery.js.map +0 -1
- package/dist/faceless-action-shots.js.map +0 -1
- package/dist/faceless-customer-anchors.js.map +0 -1
- package/dist/faceless-cut-style.js.map +0 -1
- package/dist/faceless-direction-summary.js.map +0 -1
- package/dist/faceless-image-placement.js.map +0 -1
- package/dist/faceless-image-qualification.js.map +0 -1
- package/dist/faceless-media-record.js.map +0 -1
- package/dist/faceless-price.js.map +0 -1
- package/dist/faceless-public-plan.js.map +0 -1
- package/dist/faceless-public.js.map +0 -1
- package/dist/faceless-short-61.js.map +0 -1
- package/dist/faceless-storyboard-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2-plan.js.map +0 -1
- package/dist/faceless-storyboard-v2-timing.js.map +0 -1
- package/dist/faceless-storyboard-v2.js.map +0 -1
- package/dist/faceless-storyboard.js.map +0 -1
- package/dist/faceless-voices.js.map +0 -1
- package/dist/feedback.js.map +0 -1
- package/dist/film-directions.js.map +0 -1
- package/dist/film-drafts.js.map +0 -1
- package/dist/film-guide.js.map +0 -1
- package/dist/film-styles.js.map +0 -1
- package/dist/generation-shot.js.map +0 -1
- package/dist/generations-output.js.map +0 -1
- package/dist/generations.js.map +0 -1
- package/dist/idempotency.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/live-shot-kinds.js.map +0 -1
- package/dist/long-form-pricing.js.map +0 -1
- package/dist/long-form-profile.js.map +0 -1
- package/dist/long-form-revision.js.map +0 -1
- package/dist/markdown-quote.js.map +0 -1
- package/dist/mascots.js.map +0 -1
- package/dist/max-credits.js.map +0 -1
- package/dist/mcp-ugc-descriptions.js.map +0 -1
- package/dist/media-timebase.js.map +0 -1
- package/dist/motion-styles.js.map +0 -1
- package/dist/moves.js.map +0 -1
- package/dist/music.js.map +0 -1
- package/dist/naming.js.map +0 -1
- package/dist/openapi.js.map +0 -1
- package/dist/output-provenance.js.map +0 -1
- package/dist/own-agent-price.js.map +0 -1
- package/dist/own-agent-runs.js.map +0 -1
- package/dist/pacing.js.map +0 -1
- package/dist/parts-pricing.js.map +0 -1
- package/dist/post-text.js.map +0 -1
- package/dist/presenter-beats.js.map +0 -1
- package/dist/presenter-matte.js.map +0 -1
- package/dist/presenter-takes.js.map +0 -1
- package/dist/prices.js.map +0 -1
- package/dist/public-endpoints.js.map +0 -1
- package/dist/public-responses.js.map +0 -1
- package/dist/rate-limit.js.map +0 -1
- package/dist/reference-analysis.js.map +0 -1
- package/dist/reference-display.js.map +0 -1
- package/dist/reference-kinds.js.map +0 -1
- package/dist/reference-lyrics.js.map +0 -1
- package/dist/reference-profile.js.map +0 -1
- package/dist/reference-staging.js.map +0 -1
- package/dist/reference-text-spans.js.map +0 -1
- package/dist/reference-voice-over.js.map +0 -1
- package/dist/reference-voice.js.map +0 -1
- package/dist/render-backend.js.map +0 -1
- package/dist/resolved-timeline.js.map +0 -1
- package/dist/run-media.js.map +0 -1
- package/dist/run-preflight.js.map +0 -1
- package/dist/run-static-warnings.js.map +0 -1
- package/dist/runs.js.map +0 -1
- package/dist/scene-bible.js.map +0 -1
- package/dist/scene-graph.js.map +0 -1
- package/dist/scene-place.js.map +0 -1
- package/dist/scene-proposal.js.map +0 -1
- package/dist/script-integrity.js.map +0 -1
- package/dist/script-voice.js.map +0 -1
- package/dist/semantic-inserts.js.map +0 -1
- package/dist/skill-theme-explainer.js.map +0 -1
- package/dist/skill-theme.js.map +0 -1
- package/dist/skills.js.map +0 -1
- package/dist/speech-rhythm-contract.js.map +0 -1
- package/dist/speech-rhythm.js.map +0 -1
- package/dist/templates/backdrop.js.map +0 -1
- package/dist/templates/callout.js.map +0 -1
- package/dist/templates/chart.js.map +0 -1
- package/dist/templates/chat-window.js.map +0 -1
- package/dist/templates/checklist.js.map +0 -1
- package/dist/templates/comment-cta.js.map +0 -1
- package/dist/templates/compare.js.map +0 -1
- package/dist/templates/cover-story.js.map +0 -1
- package/dist/templates/end-card.js.map +0 -1
- package/dist/templates/hand-title.js.map +0 -1
- package/dist/templates/index.js.map +0 -1
- package/dist/templates/lower-third.js.map +0 -1
- package/dist/templates/notification.js.map +0 -1
- package/dist/templates/phone-call.js.map +0 -1
- package/dist/templates/phone-screen.js.map +0 -1
- package/dist/templates/pointer-chips.js.map +0 -1
- package/dist/templates/progress.js.map +0 -1
- package/dist/templates/quote.js.map +0 -1
- package/dist/templates/race.js.map +0 -1
- package/dist/templates/rating.js.map +0 -1
- package/dist/templates/series-frame.js.map +0 -1
- package/dist/templates/size.js.map +0 -1
- package/dist/templates/slot.js.map +0 -1
- package/dist/templates/sounds.js.map +0 -1
- package/dist/templates/stat.js.map +0 -1
- package/dist/templates/tag.js.map +0 -1
- package/dist/templates/terminal.js.map +0 -1
- package/dist/templates/theme.js.map +0 -1
- package/dist/templates/title-card.js.map +0 -1
- package/dist/templates/video-grid.js.map +0 -1
- package/dist/templates/word-fill.js.map +0 -1
- package/dist/templates/word-title.js.map +0 -1
- package/dist/trend-niches.js.map +0 -1
- package/dist/trend-search.js.map +0 -1
- package/dist/tts-backend.js.map +0 -1
- package/dist/ugc-call.js.map +0 -1
- package/dist/ugc-delivery.js.map +0 -1
- package/dist/ugc-framing.js.map +0 -1
- package/dist/ugc-interview.js.map +0 -1
- package/dist/ugc-layers.js.map +0 -1
- package/dist/ugc-scenes.js.map +0 -1
- package/dist/ugc-video-media.js.map +0 -1
- package/dist/uploads.js.map +0 -1
- package/dist/vendor-response.js.map +0 -1
- package/dist/video-size.js.map +0 -1
- package/dist/voice-admission.js.map +0 -1
- package/dist/voice-catalog-data.js.map +0 -1
- package/dist/voice-catalog.js.map +0 -1
- package/dist/voice-listing.js.map +0 -1
- package/dist/voice-pace.js.map +0 -1
- package/dist/voice-preview-approval.js.map +0 -1
- package/dist/voices.js.map +0 -1
- package/dist/workflows/catalog.js.map +0 -1
- package/dist/workflows/film-directions.js.map +0 -1
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/methods/faceless-explainer.js.map +0 -1
- package/dist/workflows/methods/kinetic-launch.js.map +0 -1
- package/dist/workflows/methods/product-image-story.js.map +0 -1
- package/dist/workflows/methods/reference-remake.js.map +0 -1
- package/dist/workflows/methods/shared.js.map +0 -1
- package/dist/workflows/methods/ugc-faq-answer.js.map +0 -1
- package/dist/workflows/methods/ugc-product-intro.js.map +0 -1
- package/dist/workflows/methods/website-proof-demo.js.map +0 -1
- package/dist/workflows/motion-director.js.map +0 -1
- package/dist/workflows/product-references.js.map +0 -1
- package/dist/workflows/reference-remake.js.map +0 -1
- package/dist/workflows/remake-chooser.js.map +0 -1
- package/dist/workflows/remake-motion.js.map +0 -1
- package/dist/workflows/validate.js.map +0 -1
- package/dist/workflows.js.map +0 -1
package/dist/brand-styles.js
CHANGED
|
@@ -6,17 +6,12 @@ import { isScenePurple, SCENE_BRAND_TEAL } from "./scene-graph.js";
|
|
|
6
6
|
import { CAPTION_EMPHASIS_LOOKS } from "./skills.js";
|
|
7
7
|
import { skillThemeOverrides } from "./skill-theme.js";
|
|
8
8
|
import { contrastRatio } from "./templates/theme.js";
|
|
9
|
-
// A style built from a reference video (#1364): a named design saved beside the brand kit, with the reference's habits. The proposal is a free
|
|
10
|
-
// reading of an analysis already paid for; the donor gives colours, faces and habits, never its logo, characters or frames.
|
|
11
9
|
export const BRAND_STYLES_PATH = "/v1/brand-styles";
|
|
12
10
|
export const BRAND_STYLE_PROPOSE_PATH = "/v1/brand-styles/propose";
|
|
13
|
-
/** An account keeps at most this many styles. */
|
|
14
11
|
export const BRAND_STYLES_PER_ACCOUNT = 12;
|
|
15
12
|
export const brandStyleName = z.string().regex(/^[a-z0-9][a-z0-9_-]{0,39}$/, "a style name is 1–40 of a-z, 0-9, _ and -, starting with a letter or digit");
|
|
16
|
-
/** A style's design: any brand design but a logo, which a style taken from someone else's video never carries. */
|
|
17
13
|
export const brandStyleDesign = design.refine(value => value.logo_asset_id === undefined, { path: ["logo_asset_id"], message: "a style carries no logo; the brand kit's design holds yours" });
|
|
18
14
|
const EMPHASIS = [...CAPTION_EMPHASIS_LOOKS, "none"];
|
|
19
|
-
/** How the reference moves and captions: kept with the style and shown; the drawing reads its design. */
|
|
20
15
|
export const brandStyleHabits = z.strictObject({
|
|
21
16
|
transition: z.enum(REFERENCE_TRANSITIONS).describe("The reference's most frequent transition between beats"),
|
|
22
17
|
transition_device: z.enum(REFERENCE_TRANSITION_DEVICES).optional().describe("The transition by name when transition is other"),
|
|
@@ -37,7 +32,6 @@ export const brandStyle = z.strictObject({
|
|
|
37
32
|
created_at: z.string(),
|
|
38
33
|
updated_at: z.string(),
|
|
39
34
|
});
|
|
40
|
-
/** The kit as read and saved: its parts, our looks and faces, and the account's saved styles. */
|
|
41
35
|
export const brandKitWithStyles = brandKit.extend({ styles: z.array(brandStyle).default([]) });
|
|
42
36
|
export const proposeBrandStyleInput = z.strictObject({
|
|
43
37
|
analysis_id: referenceAnalysisId.describe("A finished full analyze_reference of this account"),
|
|
@@ -46,16 +40,13 @@ export const proposeBrandStyleInput = z.strictObject({
|
|
|
46
40
|
const HEX = z.string().regex(/^#[0-9A-F]{6}$/);
|
|
47
41
|
export const brandStyleProposal = z.strictObject({
|
|
48
42
|
style: z.strictObject({ name: brandStyleName, design: brandStyleDesign, habits: brandStyleHabits, source_analysis_id: referenceAnalysisId }),
|
|
49
|
-
/** What the proposal was read from. */
|
|
50
43
|
evidence: z.strictObject({
|
|
51
44
|
palette: z.array(HEX).max(8),
|
|
52
45
|
transitions: z.array(z.strictObject({ transition: z.enum(REFERENCE_TRANSITIONS), beats: z.number().int().positive() })),
|
|
53
46
|
}),
|
|
54
|
-
/** Pass to create_film_draft as theme_overrides to draw sample stills in the proposal before saving it. */
|
|
55
47
|
theme_overrides: skillThemeOverrides,
|
|
56
48
|
warnings: z.array(z.string()),
|
|
57
49
|
});
|
|
58
|
-
/** Faces by the reference's caption look, else by its pace: the typeface itself is not read, so the proposal names its pick. */
|
|
59
50
|
const FACES_BY_EMPHASIS = {
|
|
60
51
|
box: { display: "Oswald", body: "Roboto" },
|
|
61
52
|
pill: { display: "Plus Jakarta Sans", body: "Inter" },
|
|
@@ -70,14 +61,12 @@ const FACES_BY_MOTION = {
|
|
|
70
61
|
};
|
|
71
62
|
const RADIUS_BY_EMPHASIS = { box: "square", pill: "pill", punch: "soft", color: "round", none: "soft" };
|
|
72
63
|
const motionOf = (cutEvery) => cutEvery < 1.5 ? "punchy" : cutEvery < 2.5 ? "playful" : cutEvery < 4 ? "premium" : "calm";
|
|
73
|
-
/** Low saturation, or near white or black: a colour that grounds rather than accents. */
|
|
74
64
|
const neutral = (hex) => { const { s, l } = hexToHsl(hex); return s < 0.2 || l > 0.92 || l < 0.12; };
|
|
75
65
|
const mix = (from, to, t) => {
|
|
76
66
|
const [a, b] = [from, to].map(hex => [1, 3, 5].map(at => Number.parseInt(hex.slice(at, at + 2), 16)));
|
|
77
67
|
return `#${a.map((v, i) => Math.round(v + (b[i] - v) * t).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
78
68
|
};
|
|
79
69
|
const TEAL_HUE = hexToHsl(SCENE_BRAND_TEAL).h;
|
|
80
|
-
/** The reference's palette as five brand roles, every text pair readable; a purple is moved to teal and named, as our own looks never hold one. */
|
|
81
70
|
export function paletteFromReference(colours) {
|
|
82
71
|
const warnings = [];
|
|
83
72
|
const repaired = colours.map(hex => {
|
|
@@ -103,7 +92,6 @@ export function paletteFromReference(colours) {
|
|
|
103
92
|
const accentInk = readableShade(contrastRatio(ink, accent) >= contrastRatio(background, accent) ? ink : background, accent);
|
|
104
93
|
return { palette: designPalette.parse({ background, surface, ink, accent, accent_ink: accentInk }), warnings };
|
|
105
94
|
}
|
|
106
|
-
/** A style read from one analysis's profile, free and repeatable: the same profile always proposes the same style. */
|
|
107
95
|
export function proposeStyleFromProfile(profile, input) {
|
|
108
96
|
const { palette, warnings } = paletteFromReference(profile.palette);
|
|
109
97
|
const emphasis = profile.captions.present ? profile.captions.emphasis_style : "none";
|
|
@@ -128,4 +116,3 @@ export function proposeStyleFromProfile(profile, input) {
|
|
|
128
116
|
warnings,
|
|
129
117
|
});
|
|
130
118
|
}
|
|
131
|
-
//# sourceMappingURL=brand-styles.js.map
|
package/dist/broll-policy.js
CHANGED
package/dist/canvas-fit.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/** Ratios this close, in absolute difference, fill the canvas with no bars. */
|
|
2
1
|
export declare const EXACT_FIT_EPSILON = 0.002;
|
|
3
|
-
/** Whether a picture fills the canvas exactly, as `fitClipToCanvas` decides `exact` at `EXACT_FIT_EPSILON`. */
|
|
4
2
|
export declare function isExactFit(picture: {
|
|
5
3
|
width: number;
|
|
6
4
|
height: number;
|
package/dist/canvas-fit.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
// The composition keeps its own copy of these, since it cannot import this package; a parity test holds them equal.
|
|
2
|
-
/** Ratios this close, in absolute difference, fill the canvas with no bars. */
|
|
3
1
|
export const EXACT_FIT_EPSILON = 0.002;
|
|
4
|
-
/** Whether a picture fills the canvas exactly, as `fitClipToCanvas` decides `exact` at `EXACT_FIT_EPSILON`. */
|
|
5
2
|
export function isExactFit(picture, canvas, epsilon) {
|
|
6
3
|
return Math.abs(picture.width / picture.height - canvas.width / canvas.height) <= epsilon;
|
|
7
4
|
}
|
|
8
|
-
//# sourceMappingURL=canvas-fit.js.map
|
package/dist/caption-funnel.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ type Found = {
|
|
|
3
3
|
word: string;
|
|
4
4
|
end: number;
|
|
5
5
|
};
|
|
6
|
-
/** The word a text asks viewers to comment or send (a caption, the spoken words or one screen text), upper case, with the offset its own last */
|
|
7
|
-
/** letter ends at, so a cut caption can tell a word it may have shortened; "any" for any word; else `null`. */
|
|
8
6
|
export declare function captionFunnel(text: string | null | undefined): Found | null;
|
|
9
7
|
export declare const captionFunnelWord: (text: string | null | undefined) => string | null;
|
|
10
8
|
export {};
|
package/dist/caption-funnel.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
// The code word a text asks viewers to comment or send (#917, #1422), read by trend cards, creator profiles and reference analyses alike:
|
|
2
|
-
// "Comment LIST", a Russian "write «ESTIMATE»", a Japanese "「LIST」 then comment". Verb-first languages name it after the verb, verb-last ones before.
|
|
3
1
|
export const CAPTION_FUNNEL_MAX_CHARS = 24;
|
|
4
|
-
/** Imperatives that ask for a comment or a message, the word after them. */
|
|
5
2
|
const VERBS_FIRST = [
|
|
6
3
|
"comment", "type", "drop", "dm", "message", "send", "reply", "write",
|
|
7
4
|
"напиши", "напишите", "пиши", "пишите", "оставь", "оставьте", "отправь", "отправьте", "комментируй", "комментируйте",
|
|
@@ -16,9 +13,7 @@ const VERBS_FIRST = [
|
|
|
16
13
|
"comentează", "scrie", "írd", "kommenteld", "komentiraj", "napiši", "σχολίασε", "γράψε", "напишете", "коментирай",
|
|
17
14
|
"komentari", "ketik", "tulis", "kirim", "bình luận", "comment mo", "i-comment", "評論", "评论", "留言", "私信",
|
|
18
15
|
];
|
|
19
|
-
/** Verbs that close the ask in languages that put the verb last: the quoted or capital word comes just before. */
|
|
20
16
|
const VERBS_LAST = ["コメント", "書いて", "送って", "댓글", "남겨", "적어", "보내", "yaz", "yorum", "gönder", "कमेंट", "लिखें", "लिखो", "लिखिए", "எழுது", "கமெண்ட்"];
|
|
21
|
-
/** Words between the verb and the code word: "DM me", "the word", "in the comments", in each language. */
|
|
22
17
|
const FILLER = new Set([
|
|
23
18
|
"me", "us", "the", "a", "word", "below", "down", "in", "comments", "comment", "dms", "section", "here",
|
|
24
19
|
"мне", "слово", "в", "комментариях", "комментарии", "комменты", "комментах", "директ", "личку", "ниже", "у", "коментарях", "мені",
|
|
@@ -26,7 +21,6 @@ const FILLER = new Set([
|
|
|
26
21
|
"le", "mot", "commentaire", "commentaires", "moi", "dessous", "ci-dessous", "mir", "das", "wort", "die", "kommentare", "unten",
|
|
27
22
|
"parola", "nei", "commenti", "qui", "sotto", "mi", "słowo", "w", "komentarzu", "komentarzach", "poniżej", "het", "woord", "de", "reacties", "hieronder",
|
|
28
23
|
]);
|
|
29
|
-
/** Words that are not a code word when nothing marks one: "comment your thoughts", and the same in each language. */
|
|
30
24
|
const NOT_A_CODE_WORD = new Set([
|
|
31
25
|
"what", "your", "yours", "my", "if", "this", "that", "it", "them", "how", "why", "and", "or", "to", "for", "something", "which", "who", "where", "when",
|
|
32
26
|
"follow", "like", "share", "save", "subscribe", "please", "now", "us", "me", "back", "you", "him", "her",
|
|
@@ -34,23 +28,19 @@ const NOT_A_CODE_WORD = new Set([
|
|
|
34
28
|
"lo", "que", "tu", "tus", "si", "qué", "o", "y", "e", "seu", "sua", "ce", "tes", "ton", "ta", "et", "ou", "dein", "deine", "was", "und", "oder",
|
|
35
29
|
"il", "tuo", "tua", "che", "co", "czy", "i", "wat", "je", "jouw",
|
|
36
30
|
]);
|
|
37
|
-
/** What a viewer gets for the word, right after it: the mark of a code word in plain speech ("comment list and I'll send you…"). */
|
|
38
31
|
const AFTER_WORD = /^[\s,.!:;—–-]*(?:and i\b|and i'll|and i will|and we|and get|and you'll|and you will|to get|to receive|for the|for my|for a|for free|and receive|и я|и мы|и получи|и пришлю|и отправлю|чтобы получить|і я|щоб отримати|y te|y yo|y recibe|para recibir|e eu|e te|e receba|para receber|et je|et on|pour recevoir|und ich|und du|und erhalte|e ti|e io|per ricevere|a ja|i wyślę|żeby dostać|en ik|en ontvang)(?![\p{L}\p{N}])/u;
|
|
39
32
|
const QUOTES = "\"'“”‘’«»„「」『』";
|
|
40
|
-
/** A quoted word, with the space French puts inside « »; bold or italic marks quote it as well: `Comment **EDITOR**`. */
|
|
41
33
|
const MARK = `(?:[${QUOTES}] ?|\\*{1,2})`, UNMARK = `(?: ?[${QUOTES}]|\\*{1,2})`;
|
|
42
34
|
const QUOTED = new RegExp(`^${MARK}([\\p{L}\\p{N}][\\p{L}\\p{N}-]{0,22})${UNMARK}`, "u");
|
|
43
35
|
const CAPS = /^(\p{Lu}[\p{Lu}\p{N}]{1,22})(?![\p{L}\p{N}])/u;
|
|
44
36
|
const PLAIN = /^([\p{L}\p{N}][\p{L}\p{N}-]{1,22})(?![\p{L}\p{N}])/u;
|
|
45
37
|
const ANY = /^(?:anything|any word|any emoji|что угодно|любое слово|cualquier cosa|qualquer coisa|n'importe quoi)(?![\p{L}\p{N}])/u;
|
|
46
38
|
const literal = (word) => word.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
47
|
-
/** A Latin, Cyrillic or Greek verb stands on word boundaries; a CJK, Hangul or Indic one has none to stand on. */
|
|
48
39
|
const bounded = (verb) => (/^[\p{Script=Latin}\p{Script=Cyrillic}\p{Script=Greek}\s'-]+$/u.test(verb)
|
|
49
40
|
? `(?<![\\p{L}\\p{N}])${literal(verb)}(?![\\p{L}\\p{N}])` : literal(verb));
|
|
50
41
|
const VERB_FIRST = new RegExp(VERBS_FIRST.map(bounded).join("|"), "gu");
|
|
51
42
|
const VERB_LAST = new RegExp(`(?:${MARK}([\\p{L}\\p{N}][\\p{L}\\p{N}-]{0,22})${UNMARK}|(?<![\\p{L}\\p{N}])(\\p{Lu}[\\p{Lu}\\p{N}]{1,22})(?![\\p{Lu}\\p{Ll}\\p{N}]))`
|
|
52
43
|
+ `[^\\n]{0,12}?(?:${VERBS_LAST.map(literal).join("|")})`, "gu");
|
|
53
|
-
/** The word after a verb at `from`: past the filler, then quoted, in capitals (unless the verb shouts too), or plain with what the viewer gets. */
|
|
54
44
|
function wordAfter(text, lower, from, shouting) {
|
|
55
45
|
let at = from;
|
|
56
46
|
for (;;) {
|
|
@@ -74,18 +64,14 @@ function wordAfter(text, lower, from, shouting) {
|
|
|
74
64
|
return null;
|
|
75
65
|
return AFTER_WORD.test(lower.slice(at + plain.length, at + plain.length + 40)) ? { word: plain, end: at + plain.length } : null;
|
|
76
66
|
}
|
|
77
|
-
/** The word a text asks viewers to comment or send (a caption, the spoken words or one screen text), upper case, with the offset its own last */
|
|
78
|
-
/** letter ends at, so a cut caption can tell a word it may have shortened; "any" for any word; else `null`. */
|
|
79
67
|
export function captionFunnel(text) {
|
|
80
68
|
if (typeof text !== "string")
|
|
81
69
|
return null;
|
|
82
70
|
const lower = text.toLowerCase();
|
|
83
|
-
// Lower case keeps every offset of these scripts; a text it would reshape is read no further.
|
|
84
71
|
if (lower.length !== text.length)
|
|
85
72
|
return null;
|
|
86
73
|
for (const verb of lower.matchAll(VERB_FIRST)) {
|
|
87
74
|
const said = text.slice(verb.index, verb.index + verb[0].length);
|
|
88
|
-
// "DM" is written in capitals anyway; a longer verb in capitals means the whole line shouts.
|
|
89
75
|
const found = wordAfter(text, lower, verb.index + verb[0].length, said.length > 2 && said === said.toUpperCase() && said !== said.toLowerCase());
|
|
90
76
|
if (found)
|
|
91
77
|
return { word: found.word === "any" ? "any" : found.word.toUpperCase(), end: found.end };
|
|
@@ -98,4 +84,3 @@ export function captionFunnel(text) {
|
|
|
98
84
|
return { word: word.toUpperCase(), end: last.index + last[0].indexOf(word) + word.length };
|
|
99
85
|
}
|
|
100
86
|
export const captionFunnelWord = (text) => captionFunnel(text)?.word ?? null;
|
|
101
|
-
//# sourceMappingURL=caption-funnel.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { LayerRect } from "./ugc-layers.js";
|
|
2
|
-
/** Where captions sit, as a percentage of the height: above the middle the top edge, below it the bottom edge (#884). */
|
|
3
2
|
export declare const CAPTION_POSITION_VERTICAL: {
|
|
4
3
|
readonly top: 20;
|
|
5
4
|
readonly middle: 50;
|
|
@@ -15,11 +14,8 @@ interface PresetGeometry {
|
|
|
15
14
|
padding: number;
|
|
16
15
|
background: boolean;
|
|
17
16
|
}
|
|
18
|
-
/** Font size at a 1080 short side, default height, words per page and background padding of each preset. */
|
|
19
17
|
export declare const CAPTION_GEOMETRY: Record<string, PresetGeometry>;
|
|
20
|
-
/** Style names kept valid for an earlier preset name, as the skill's aliases. */
|
|
21
18
|
export declare const CAPTION_GEOMETRY_ALIASES: Record<string, string>;
|
|
22
|
-
/** A caption style's sizes in px on a canvas: the drawn font size, words per page and vertical padding, as the composition lays a page out. */
|
|
23
19
|
export declare function captionGeometryOf(style: string | undefined, aspectRatio: string, canvas: {
|
|
24
20
|
width: number;
|
|
25
21
|
height: number;
|
|
@@ -29,9 +25,7 @@ export declare function captionGeometryOf(style: string | undefined, aspectRatio
|
|
|
29
25
|
wordsPerLine: number;
|
|
30
26
|
paddingV: number;
|
|
31
27
|
};
|
|
32
|
-
/** The edge a page anchors by at a height: the one asked for, else the top edge up to the middle and the bottom edge below it. */
|
|
33
28
|
export declare const captionEdgeAt: (vertical: number, edge?: CaptionEdge) => CaptionEdge;
|
|
34
|
-
/** The tallest page's box at a height, in shares of the frame: as many lines as words per page, no more than fit; the width the block may take. */
|
|
35
29
|
export declare function captionBandBox(style: string | undefined, aspectRatio: string, canvas: {
|
|
36
30
|
width: number;
|
|
37
31
|
height: number;
|
package/dist/caption-geometry.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
// The caption page's geometry as the composition draws it, for the layout rails before money (#973 S2). The numbers repeat
|
|
2
|
-
// the composition's presets; a parity test holds the two equal.
|
|
3
|
-
/** Where captions sit, as a percentage of the height: above the middle the top edge, below it the bottom edge (#884). */
|
|
4
1
|
export const CAPTION_POSITION_VERTICAL = { top: 20, middle: 50, lower: 70, bottom: 80 };
|
|
5
2
|
export const CAPTION_EDGES = ["top", "center", "bottom"];
|
|
6
3
|
const row = (size, vertical, wordsPerLine, padding = 0) => ({ size, vertical, wordsPerLine, padding, background: padding > 0 });
|
|
7
|
-
/** Font size at a 1080 short side, default height, words per page and background padding of each preset. */
|
|
8
4
|
export const CAPTION_GEOMETRY = {
|
|
9
5
|
hormozi: row(100, 65, 3), accent: row(88, 66, 3), tiktok: row(64, 75, 1), youtube: row(70, 85, 4, 17), instagram: row(56, 70, 2),
|
|
10
6
|
minimalist: row(70, 80, 4, 14), neon: row(56, 70, 2), genz: row(72, 65, 1), campfire: row(60, 72, 3), midnight: row(66, 62, 2),
|
|
@@ -12,15 +8,12 @@ export const CAPTION_GEOMETRY = {
|
|
|
12
8
|
studio: row(71, 84, 4, 19), broadcast: row(74, 88, 4), arcade: row(54, 70, 2), clutch: row(66, 66, 1), bubblegum: row(64, 72, 2),
|
|
13
9
|
crayon: row(58, 72, 2), lyrics: row(90, 76, 4), bassdrop: row(62, 66, 1), punch: row(116, 62, 3),
|
|
14
10
|
};
|
|
15
|
-
/** Style names kept valid for an earlier preset name, as the skill's aliases. */
|
|
16
11
|
export const CAPTION_GEOMETRY_ALIASES = { minimal: "minimalist" };
|
|
17
12
|
const TIKTOK_WORDS_PER_LINE = { "9:16": 2, "16:9": 4, "1:1": 1 };
|
|
18
13
|
const LINE_HEIGHT = 1.3, SIDE_PADDING = 20, EDGE_MARGIN = 0.04, PUNCH_LEAD_SCALE = 0.4;
|
|
19
|
-
/** A caption style's sizes in px on a canvas: the drawn font size, words per page and vertical padding, as the composition lays a page out. */
|
|
20
14
|
export function captionGeometryOf(style, aspectRatio, canvas) {
|
|
21
15
|
const id = CAPTION_GEOMETRY_ALIASES[style ?? ""] ?? style ?? "hormozi", preset = CAPTION_GEOMETRY[id] ?? CAPTION_GEOMETRY.hormozi;
|
|
22
16
|
const scale = Math.min(canvas.width, canvas.height) / 1080;
|
|
23
|
-
// YouTube Pro on 16:9 keeps its own size and the five words and box it had before #1111.
|
|
24
17
|
const wide = id === "youtube" && aspectRatio === "16:9";
|
|
25
18
|
const keyword = Math.round((wide ? 90 : preset.size) * scale);
|
|
26
19
|
const padding = Math.round((wide ? 12 : preset.padding) * scale);
|
|
@@ -28,9 +21,7 @@ export function captionGeometryOf(style, aspectRatio, canvas) {
|
|
|
28
21
|
wordsPerLine: id === "tiktok" ? TIKTOK_WORDS_PER_LINE[aspectRatio] ?? preset.wordsPerLine : wide ? 5 : preset.wordsPerLine,
|
|
29
22
|
paddingV: preset.background ? Math.round(padding * 1.5) : 0 };
|
|
30
23
|
}
|
|
31
|
-
/** The edge a page anchors by at a height: the one asked for, else the top edge up to the middle and the bottom edge below it. */
|
|
32
24
|
export const captionEdgeAt = (vertical, edge) => edge ?? (vertical <= 50 ? "top" : "bottom");
|
|
33
|
-
/** The tallest page's box at a height, in shares of the frame: as many lines as words per page, no more than fit; the width the block may take. */
|
|
34
25
|
export function captionBandBox(style, aspectRatio, canvas, at = {}) {
|
|
35
26
|
const { fontSize, wordsPerLine, paddingV, vertical: preset } = captionGeometryOf(style, aspectRatio, canvas);
|
|
36
27
|
const vertical = at.vertical ?? preset, edge = captionEdgeAt(vertical, at.edge), anchor = (vertical / 100) * canvas.height;
|
|
@@ -40,4 +31,3 @@ export function captionBandBox(style, aspectRatio, canvas, at = {}) {
|
|
|
40
31
|
const width = at.maxWidth ?? (0.9 * (canvas.width - 2 * SIDE_PADDING)) / canvas.width;
|
|
41
32
|
return { left: (1 - width) / 2, top: edge === "top" ? y : edge === "bottom" ? y - height : y - height / 2, width, height };
|
|
42
33
|
}
|
|
43
|
-
//# sourceMappingURL=caption-geometry.js.map
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
/** The language of a script for choosing a narrator: Turkish by its letters (ğ ı İ, or ş with no Polish or Romanian letter), else the font table's.
|
|
2
|
-
* Captions keep `captionLanguageOf`; ASCII-only Turkish stays English. */
|
|
3
1
|
export declare function scriptLanguageOf(script: string): string;
|
|
4
|
-
/** The caption language as the font table reads it, from the letters the script is written in (in core for template text, #778 S3). */
|
|
5
2
|
export declare function captionLanguageOf(script: string): string;
|
package/dist/caption-language.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
/** The language of a script for choosing a narrator: Turkish by its letters (ğ ı İ, or ş with no Polish or Romanian letter), else the font table's.
|
|
2
|
-
* Captions keep `captionLanguageOf`; ASCII-only Turkish stays English. */
|
|
3
1
|
export function scriptLanguageOf(script) {
|
|
4
2
|
const language = captionLanguageOf(script);
|
|
5
|
-
// Turkish circumflex vowels (kâr, hâlâ) make the font table read Vietnamese, so that answer is checked for Turkish letters too.
|
|
6
3
|
if (language !== "pl" && language !== "vi")
|
|
7
4
|
return language;
|
|
8
5
|
if (/[ăĂđĐơƠưƯạ-ỹẠ-Ỹ]/u.test(script))
|
|
@@ -11,7 +8,6 @@ export function scriptLanguageOf(script) {
|
|
|
11
8
|
return "tr";
|
|
12
9
|
return /[şŞ]/u.test(script) && !/[ąćęłńśźżĄĆĘŁŃŚŹŻșțȘȚĂ]/u.test(script) ? "tr" : language;
|
|
13
10
|
}
|
|
14
|
-
/** The caption language as the font table reads it, from the letters the script is written in (in core for template text, #778 S3). */
|
|
15
11
|
export function captionLanguageOf(script) {
|
|
16
12
|
const count = (pattern) => script.match(pattern)?.length ?? 0;
|
|
17
13
|
const scripts = [
|
|
@@ -24,7 +20,5 @@ export function captionLanguageOf(script) {
|
|
|
24
20
|
return top[0];
|
|
25
21
|
if (/[ăâđêôơưạ-ỹ]/iu.test(script))
|
|
26
22
|
return "vi";
|
|
27
|
-
// A Latin letter outside ASCII needs latin-ext; Polish stands for every such language in the table.
|
|
28
23
|
return /[^a-z]/iu.test(script.replace(/[^\p{Script=Latin}]/gu, "")) ? "pl" : "en";
|
|
29
24
|
}
|
|
30
|
-
//# sourceMappingURL=caption-language.js.map
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { makeUgcInputShape } from "./skills.js";
|
|
3
|
-
/** Disposition registry for `make_ugc` input fields: every field must have a recorded */
|
|
4
|
-
/** decision. The type guards completeness; tests at each effect boundary prove truth. */
|
|
5
|
-
/** Public header/quote version: optional visible_ai_label and new-run marking admission policy. */
|
|
6
|
-
/** Internal marking policy/profile identifiers are versioned separately. */
|
|
7
3
|
export declare const CONTRACT_VERSION = "2026-10-18";
|
|
8
4
|
export declare const CONTRACT_VERSION_HEADER = "X-Clipwright-Contract";
|
|
9
|
-
/** An explicit `broll_policy` on a run that shows none of the customer's media. */
|
|
10
5
|
export declare const BROLL_UNUSED_WARNING = "broll_policy has no effect on this video: it shows none of your media";
|
|
11
6
|
export declare const DESIGN_UNUSED_WARNING = "design has no effect on this video: it has no templates and no captions to draw in it";
|
|
12
|
-
/** `implemented`: reaches the vendor, composition tree, or final output processing; `rejected`: 400 before any run or reserve; */
|
|
13
|
-
/** `warned`: accepted with a `warnings[]` entry. `triggersWhen` keeps defaulted fields quiet on the happy path. */
|
|
14
7
|
export type Disposition = {
|
|
15
8
|
kind: "stored";
|
|
16
9
|
message: string;
|
|
@@ -26,8 +19,6 @@ export type Disposition = {
|
|
|
26
19
|
warning: string;
|
|
27
20
|
triggersWhen: "present" | "differs-from-default";
|
|
28
21
|
};
|
|
29
|
-
/** `satisfies` guards completeness; `as const` keeps literal types, from which the rejected */
|
|
30
|
-
/** set is derived below instead of being listed by hand. */
|
|
31
22
|
export declare const FIELD_DISPOSITIONS: {
|
|
32
23
|
readonly script: {
|
|
33
24
|
readonly kind: "implemented";
|
|
@@ -250,7 +241,6 @@ export declare const FIELD_DISPOSITIONS: {
|
|
|
250
241
|
readonly message: "webhook_url is not supported: no webhook is ever delivered. Poll get_run with the run_id instead";
|
|
251
242
|
};
|
|
252
243
|
};
|
|
253
|
-
/** `make_faceless` fields refused by name: its input schema keeps the key and answers with this reason. */
|
|
254
244
|
export declare const FACELESS_REJECTED_FIELDS: {
|
|
255
245
|
readonly voice_id: {
|
|
256
246
|
readonly kind: "rejected";
|
|
@@ -258,52 +248,33 @@ export declare const FACELESS_REJECTED_FIELDS: {
|
|
|
258
248
|
};
|
|
259
249
|
};
|
|
260
250
|
export type ContractField = keyof typeof FIELD_DISPOSITIONS;
|
|
261
|
-
/** Operational switches that change a field's disposition without a code change. A disabled */
|
|
262
|
-
/** switch must reject the field, not accept and ignore it. */
|
|
263
251
|
export interface ContractFlags {
|
|
264
252
|
remoteFetch: boolean;
|
|
265
|
-
/** Composition stage (`CLIPWRIGHT_COMPOSE`). */
|
|
266
253
|
compose: boolean;
|
|
267
|
-
/** Personal actor generation; absent means off. */
|
|
268
254
|
actorGeneration?: boolean;
|
|
269
255
|
longForm?: boolean;
|
|
270
256
|
outputMarking?: boolean;
|
|
271
|
-
/** Music under the voice; absent means off. */
|
|
272
257
|
music?: boolean;
|
|
273
|
-
/** Live shots (#1103); absent means off. */
|
|
274
258
|
liveShots?: boolean;
|
|
275
|
-
/** Scenes made for the run (#1107); absent means off. */
|
|
276
259
|
scenes?: boolean;
|
|
277
|
-
/** Motion styles (#1123); absent means off. */
|
|
278
260
|
motionStyles?: boolean;
|
|
279
|
-
/** The scene director (#1491), on for at least one account; absent means off. */
|
|
280
261
|
sceneDirector?: boolean;
|
|
281
262
|
}
|
|
282
|
-
/** Motion styles have their own switch and draw only where composition does (#1123). */
|
|
283
263
|
export declare function isMotionStylesEnabled(env?: Record<string, string | undefined>): boolean;
|
|
284
264
|
export declare const MOTION_STYLES_DISABLED_MESSAGE = "motion_style is not available right now; omit motion_style";
|
|
285
|
-
/** Scenes ride on long-form and have their own switch (#1107). */
|
|
286
265
|
export declare function isScenesEnabled(env?: Record<string, string | undefined>): boolean;
|
|
287
|
-
/** Live shots ride on long-form and have their own switch (#1103). */
|
|
288
266
|
export declare function isLiveShotsEnabled(env?: Record<string, string | undefined>): boolean;
|
|
289
267
|
export declare const LIVE_SHOTS_DISABLED_MESSAGE = "shots are not available right now; omit shots and product_asset_id";
|
|
290
|
-
/** `create_actor` is open only with the fetch surface: a personal actor cannot render without it. */
|
|
291
268
|
export declare function isActorGenerationEnabled(env?: Record<string, string | undefined>): boolean;
|
|
292
|
-
/** An actor derived from an actor (#898) rides on generation and has its own switch. */
|
|
293
269
|
export declare function isActorViewsEnabled(env?: Record<string, string | undefined>): boolean;
|
|
294
|
-
/** Flags from the environment, read once per process: a flag changes only on restart, */
|
|
295
|
-
/** and `tools/list` must not flicker between calls. */
|
|
296
270
|
export declare function contractFlagsFromEnv(env?: Record<string, string | undefined>): ContractFlags;
|
|
297
271
|
export declare function isLongFormQualificationEnabled(env?: Record<string, string | undefined>): boolean;
|
|
298
272
|
export declare const LONG_FORM_DISABLED_MESSAGE = "long-form qualification is not available right now; pass script without segments or inserts";
|
|
299
|
-
/** A run stored before captions were drawn (no `composition_version`) keeps the lines it was admitted with. */
|
|
300
273
|
export declare function legacyCaptionWarnings(input: {
|
|
301
274
|
captions?: boolean | undefined;
|
|
302
275
|
caption_style?: string | undefined;
|
|
303
276
|
}): string[];
|
|
304
|
-
/** Captions a version-2 run asked for and could not draw with composition off; written by the run. */
|
|
305
277
|
export declare const CAPTIONS_COMPOSE_DISABLED_WARNING = "captions were not drawn: composition is not available right now";
|
|
306
|
-
/** The composition-only parts a run asked for (#778 S2b): a render without composition names them instead of dropping them. */
|
|
307
278
|
export declare function compositionLayerFields(input: {
|
|
308
279
|
overlays?: unknown;
|
|
309
280
|
layout_windows?: unknown;
|
|
@@ -320,31 +291,16 @@ export declare function compositionLayerFields(input: {
|
|
|
320
291
|
})[] | undefined;
|
|
321
292
|
edit_sounds?: boolean | undefined;
|
|
322
293
|
}): string[];
|
|
323
|
-
/** The warning that names undrawn composition-only parts, or none. */
|
|
324
294
|
export declare function compositionLayersNotDrawnWarnings(input: Parameters<typeof compositionLayerFields>[0], reason: string): string[];
|
|
325
|
-
/** Dispositions with flags applied: the base table says what the code can do, this */
|
|
326
|
-
/** says what it offers right now. */
|
|
327
295
|
export declare function resolveDispositions(flags: ContractFlags): Record<ContractField, Disposition>;
|
|
328
|
-
/** The process's effective table, from which every surface is built: `FIELD_DISPOSITIONS` */
|
|
329
|
-
/** with the flags applied. */
|
|
330
296
|
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_framing" | "presenter_gaze" | "presenter_mic" | "presenter_place" | "product_asset_id" | "proposal" | "propose" | "resolution" | "scene" | "scenes" | "script" | "segments" | "shots" | "template_sounds" | "template_theme" | "templates" | "tts_model" | "visible_ai_label" | "voice" | "voice_id" | "voice_pace" | "webhook_url", Disposition>;
|
|
331
297
|
type RejectedField = {
|
|
332
298
|
[K in ContractField]: (typeof FIELD_DISPOSITIONS)[K]["kind"] extends "rejected" ? K : never;
|
|
333
299
|
}[ContractField];
|
|
334
|
-
/** Offered fields come from the base table, in types and values alike: a field switched off */
|
|
335
|
-
/** is a temporary state, not the shape of the contract. */
|
|
336
300
|
type OfferedField = Exclude<ContractField, RejectedField>;
|
|
337
|
-
/** Disposition note for the JSON Schema `description`, from the base table: the schema */
|
|
338
|
-
/** belongs to the client, the flags to the server, whose 400 text names emergency refusals. */
|
|
339
301
|
export declare function dispositionNote(field: ContractField): string | null;
|
|
340
|
-
/** Full input shape where every unhonored field carries its reason. For surfaces that list */
|
|
341
|
-
/** all fields; offer fields to callers from `offeredUgcInputShape` instead. */
|
|
342
302
|
export declare const annotatedUgcInputShape: typeof makeUgcInputShape;
|
|
343
|
-
/** Offered input surface = full shape minus rejected fields, so no schema offers a field */
|
|
344
|
-
/** that then gets a 400. Derived from the registry, so one line moves a field. */
|
|
345
303
|
export declare const offeredUgcInputShape: Pick<typeof makeUgcInputShape, OfferedField>;
|
|
346
|
-
/** Input type for SDK/CLI/MCP, from the offered shape. Separate from `MakeUgcInput` (the */
|
|
347
|
-
/** `z.infer` output, where defaults are required) so callers need not fill every field. */
|
|
348
304
|
export declare const offeredUgcInput: z.ZodObject<{
|
|
349
305
|
script: z.ZodOptional<z.ZodString>;
|
|
350
306
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -4584,11 +4540,8 @@ export declare const offeredUgcInput: z.ZodObject<{
|
|
|
4584
4540
|
max_credits: z.ZodOptional<z.ZodNumber>;
|
|
4585
4541
|
}, z.core.$strip>;
|
|
4586
4542
|
export type MakeUgcInputArgs = z.input<typeof offeredUgcInput>;
|
|
4587
|
-
/** A field's text, also when it sits on the schema an optional or a default wraps. */
|
|
4588
4543
|
export declare const fieldText: (schema: z.ZodType) => string | undefined;
|
|
4589
|
-
/** The full texts quote_ugc says in shorter words; another tool's field with the same text needs none of its own. */
|
|
4590
4544
|
export declare const MCP_UGC_SHORTENED_TEXTS: readonly string[];
|
|
4591
|
-
/** The MCP offer: the same fields with the slim template and overlay items and shorter texts, which keep tools/list small (#778 S3, D3; #973 S1; #1045). */
|
|
4592
4545
|
export declare const mcpUgcInputShape: {
|
|
4593
4546
|
script: z.ZodOptional<z.ZodString>;
|
|
4594
4547
|
segments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -5074,35 +5027,21 @@ export declare const mcpUgcInputShape: {
|
|
|
5074
5027
|
style: z.ZodOptional<z.ZodString>;
|
|
5075
5028
|
}, z.core.$strict>>;
|
|
5076
5029
|
};
|
|
5077
|
-
/** One rejected field found in the input: its name and the refusal reason. */
|
|
5078
5030
|
export interface RejectedFieldHit {
|
|
5079
5031
|
field: ContractField;
|
|
5080
5032
|
message: string;
|
|
5081
5033
|
}
|
|
5082
|
-
/** Rejected fields present in the input. Called by the API (400 before a run or a */
|
|
5083
|
-
/** reserve), by MCP and by the SDK. */
|
|
5084
5034
|
export declare function rejectedFields(input: Readonly<Record<string, unknown>>, env?: Record<string, string | undefined>): RejectedFieldHit[];
|
|
5085
|
-
/** A body key outside the contract and the field it resembles, if any. */
|
|
5086
5035
|
export interface UnknownFieldHit {
|
|
5087
5036
|
field: string;
|
|
5088
5037
|
suggestion?: string | undefined;
|
|
5089
5038
|
}
|
|
5090
|
-
/** Fields offered to the client; rejected ones are not listed. */
|
|
5091
5039
|
export declare const ACCEPTED_UGC_FIELDS: string[];
|
|
5092
|
-
/** Keys outside `fields` (the contract by default). Rejected contract fields are not */
|
|
5093
|
-
/** included: `rejectedFields` names them with their reason. */
|
|
5094
5040
|
export declare function unknownFields(raw: unknown, fields?: readonly string[]): UnknownFieldHit[];
|
|
5095
|
-
/** Registry warnings for a parsed run input; defaults are filled in, so `===` tells silence */
|
|
5096
|
-
/** from an explicit different value. Dynamic warnings come from their own generators. */
|
|
5097
5041
|
export declare function dispositionWarnings(input: Readonly<Record<string, unknown>>): string[];
|
|
5098
|
-
/** Fields with an `implemented` disposition, input to the coverage meta-tests. From the */
|
|
5099
|
-
/** base table: proof belongs to the code, and switching a field off does not revoke it. */
|
|
5100
5042
|
export declare const IMPLEMENTED_FIELDS: ContractField[];
|
|
5101
|
-
/** Separate effect boundaries: outgoing vendor requests, composition trees, and final */
|
|
5102
|
-
/** output processing each have their own behavior tests and coverage meta-test. */
|
|
5103
5043
|
export declare const EGRESS_PROVEN_FIELDS: ContractField[];
|
|
5104
5044
|
export declare const COMPOSITION_PROVEN_FIELDS: ContractField[];
|
|
5105
|
-
/** A field the request resolves into other fields before any run exists, so no later stage sees it. */
|
|
5106
5045
|
export declare const ADMISSION_PROVEN_FIELDS: ContractField[];
|
|
5107
5046
|
export declare const FINALIZATION_PROVEN_FIELDS: ContractField[];
|
|
5108
5047
|
export {};
|