@clipwright/core 0.59.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 +6 -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 +61 -3
- package/dist/contracts/v1/workflow-brief.js +0 -13
- package/dist/contracts/v1/workflow-catalog.d.ts +118 -0
- package/dist/contracts/v1/workflow-catalog.js +0 -3
- package/dist/contracts/v1/workflow-client.d.ts +116 -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 +47 -1
- package/dist/contracts/v1/workflow-execution.js +0 -4
- package/dist/contracts/v1/workflow-next.d.ts +13 -2
- package/dist/contracts/v1/workflow-next.js +0 -3
- package/dist/contracts/v1/workflow-plan.d.ts +177 -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 +15 -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 +29 -11
- package/dist/face-billing.js +6 -25
- 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 +27 -0
- package/dist/faceless-direction-summary.js +8 -0
- 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 +40 -35
- package/dist/faceless-price.js +35 -49
- package/dist/faceless-public-plan.d.ts +0 -13
- package/dist/faceless-public-plan.js +0 -11
- package/dist/faceless-public.d.ts +63 -22
- package/dist/faceless-public.js +23 -58
- 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 +3 -0
- package/dist/index.js +3 -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 +2 -9
- 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 +8 -24
- package/dist/parts-pricing.js +19 -30
- 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 +4 -5
- 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 +16 -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 +1 -15
- package/dist/uploads.js +3 -20
- 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 +2 -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 +33 -0
- package/dist/workflows/methods/faceless-explainer.js +0 -1
- package/dist/workflows/methods/kinetic-launch.d.ts +66 -1
- package/dist/workflows/methods/kinetic-launch.js +0 -2
- package/dist/workflows/methods/product-image-story.d.ts +33 -0
- package/dist/workflows/methods/product-image-story.js +0 -1
- package/dist/workflows/methods/reference-remake.d.ts +33 -0
- package/dist/workflows/methods/reference-remake.js +0 -1
- package/dist/workflows/methods/shared.d.ts +33 -1
- package/dist/workflows/methods/shared.js +0 -3
- package/dist/workflows/methods/ugc-faq-answer.d.ts +33 -0
- package/dist/workflows/methods/ugc-faq-answer.js +0 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +33 -0
- package/dist/workflows/methods/ugc-product-intro.js +0 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +66 -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-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
|
@@ -32,8 +32,6 @@ import { MAX_MOVES, ugcMove } from '../moves.js';
|
|
|
32
32
|
import { lookName } from './motion-director.js';
|
|
33
33
|
import { preferChosen } from './remake-chooser.js';
|
|
34
34
|
import { beatCue, FLASH_SNAP_S, planMotion } from './remake-motion.js';
|
|
35
|
-
// The reference-remake compiler (#857 S2a): a profile and an accepted script become a complete plan whose native input is a make_ugc input.
|
|
36
|
-
/** The steps a product demo takes, then a still hold (#1307 S2): with the hold, at most four beats in one clip. */
|
|
37
35
|
export const DEMO_MAX_STEPS = 3;
|
|
38
36
|
const remakeFields = {
|
|
39
37
|
plan_id: workflowId.optional(), base_version: saveWorkflowPlan.shape.base_version.optional(),
|
|
@@ -90,9 +88,7 @@ const revisionPair = (value, context) => {
|
|
|
90
88
|
context.addIssue({ code: z.ZodIssueCode.custom, path: ['plan_id'], message: 'plan_id and base_version must be supplied together' });
|
|
91
89
|
}
|
|
92
90
|
};
|
|
93
|
-
/** What the compiler reads: the profile itself. */
|
|
94
91
|
export const planReferenceRemake = z.strictObject(remakeFields).superRefine(revisionPair);
|
|
95
|
-
/** What a client sends (#1172): the profile, or the analysis_id of an analysis the server reads it from. */
|
|
96
92
|
export const planReferenceRemakeRequest = z.strictObject({ ...remakeFields,
|
|
97
93
|
reference_profile: remakeFields.reference_profile.optional(),
|
|
98
94
|
analysis_id: referenceAnalysisId.optional().describe('The analysis_id of a succeeded full analyze_reference: the server reads its reference_profile. ' +
|
|
@@ -107,16 +103,12 @@ const CLAUSE_COST = 6;
|
|
|
107
103
|
const TEXT_KINDS = new Set(['title_card', 'tag']);
|
|
108
104
|
const MEDIA_KINDS = { overlay_media: 'overlays', insert_media: 'inserts', layout_split: 'layout_windows' };
|
|
109
105
|
const MARKER = 'ref-long-form';
|
|
110
|
-
/** Beats that show the product: a card of their words does not stand in for it. */
|
|
111
106
|
const SHOWN_ROLES = new Set(['demo', 'before_after']);
|
|
112
|
-
/** The share of a reference's length without its presenter past which a faceless video is the closer remake. */
|
|
113
107
|
const FACELESS_SHARE = 0.8;
|
|
114
108
|
const GENERATE = 'pass a ready ast_* asset, or make one separately with generate_image or generate_video (its own quote), then compile again';
|
|
115
109
|
const TERMINAL_SCREEN = /\bterminal\b|\bcommand[- ]line\b|\bconsole\b|\bshell\b|\bcli\b/i;
|
|
116
110
|
const CHAT_SCREEN = /\bchat|\bmessag|\bconversation|\bprompt\b|\bassistant\b|\bdms?\b|\brepl(?:y|ies)\b/i;
|
|
117
111
|
const PHONE_SCREEN = /\b(?:smart)?phones?\b|\bmobile\b|\biphone\b|\bandroid\b|\breels?\b|\bfeed\b|\btiktok\b|\binstagram\b|\bshorts\b|\block ?screen\b/i;
|
|
118
|
-
/** The drawn kind an analyser device stands for (#1112, #1113): a terminal, a chat or a phone on a product screen, a collage of clips, a full-frame
|
|
119
|
-
* kinetic title, arrows marking the subject. */
|
|
120
112
|
function drawnKindOf(graphic) {
|
|
121
113
|
if (graphic.source_kind === 'product_ui' || graphic.source_kind === 'screenshot') {
|
|
122
114
|
return TERMINAL_SCREEN.test(graphic.label_hint) ? 'terminal' : CHAT_SCREEN.test(graphic.label_hint) ? 'chat_window'
|
|
@@ -128,30 +120,22 @@ function drawnKindOf(graphic) {
|
|
|
128
120
|
return 'pointer_chips';
|
|
129
121
|
return graphic.device === 'text_effect' && graphic.position === 'full_screen' ? 'word_title' : undefined;
|
|
130
122
|
}
|
|
131
|
-
/** The saved plan keeps the reference's techniques, not its words: the remake copies no line of it, and the analysis keeps them already. */
|
|
132
123
|
const withoutWords = ({ transcript: _transcript, hook: _hook, ...profile }) => profile;
|
|
133
|
-
/** What the actor does in a live shot for each gesture the reference presenter makes; `other` names nothing to draw. */
|
|
134
124
|
const GESTURE_ACTIONS = { both_hands_to_viewer: 'reaches both hands toward the viewer',
|
|
135
125
|
point_at_viewer: 'points at the viewer', point_at_element: 'points to the side of the frame', count_on_fingers: 'counts the points on their fingers',
|
|
136
126
|
hold_object: 'holds an object up to the camera', open_palms: 'opens both palms toward the viewer', wave: 'waves at the viewer', shrug: 'shrugs',
|
|
137
127
|
thumbs_up: 'gives a thumbs up', other: undefined };
|
|
138
128
|
const REACTION = 'reacts to the words with a warm smile and a nod';
|
|
139
|
-
/** The longest demo clip: the longest live shot take the run renders. Words past it are the presenter's usual take. */
|
|
140
129
|
export const DEMO_CLIP_MAX_S = 15;
|
|
141
130
|
const heldAt = (product) => product.placement === 'hand' ? `in one hand at chest height, its label to the camera`
|
|
142
131
|
: 'standing beside the presenter within reach, its label to the camera';
|
|
143
|
-
/** A gesture's action with the product named when the gesture holds something. */
|
|
144
132
|
const gestureAction = (kind, product) => kind === 'hold_object' && product ? `holds the ${product.name} up to the camera, its label toward the lens` : GESTURE_ACTIONS[kind];
|
|
145
|
-
/** The demo as one clip of `seconds` (#1307 S2): it opens on one product already where the shots hold it, each step once, then a still hold;
|
|
146
|
-
* every second is owned by a beat, so the clip has no seconds to repeat a step in. */
|
|
147
133
|
export function demoShot(product, seconds) {
|
|
148
134
|
const hold = product.placement === 'hand'
|
|
149
135
|
? { action: `The presenter holds the ${product.name} still at chest height, its label to the camera, and smiles`,
|
|
150
136
|
end_state: `The presenter holds the ${product.name} at chest height, its label to the camera` }
|
|
151
137
|
: { action: `The presenter rests both hands beside the ${product.name} and smiles at the camera`,
|
|
152
138
|
end_state: `The ${product.name} stands beside the presenter, its label to the camera` };
|
|
153
|
-
// The hold goes last whenever the clip has a second for it: without it the clip's last seconds repeat a step. Short of seconds, the steps
|
|
154
|
-
// become one beat that does each in turn.
|
|
155
139
|
const merged = { action: product.demo.map(step => step.action.replace(/[.!?]+$/, '')).join(', then '), end_state: product.demo.at(-1).end_state };
|
|
156
140
|
const steps = seconds >= product.demo.length + 1 ? [...product.demo, hold] : seconds >= 2 ? [merged, hold] : [merged];
|
|
157
141
|
const length = Math.max(steps.length, Math.min(seconds, steps.length * SHOT_BEAT_MAX_S)), base = Math.floor(length / steps.length);
|
|
@@ -174,20 +158,14 @@ export function demoShot(product, seconds) {
|
|
|
174
158
|
};
|
|
175
159
|
}
|
|
176
160
|
const SHOT_SIZE_RANK = { close: 0, wide: 1, full: 2 };
|
|
177
|
-
/** An acting shot's first frame, wider than the take (#1175 S7): the beat's measured size when wider (medium and wide are the wide view), else */
|
|
178
|
-
/** wide on a close take, since an action needs the hands in frame; undefined keeps the take's view. */
|
|
179
161
|
function shotFramingOf(size, take) {
|
|
180
162
|
const measured = size === 'full' ? 'full' : size === 'medium' || size === 'wide' ? 'wide' : size === 'close' ? 'close' : undefined;
|
|
181
163
|
const wanted = measured ?? 'wide';
|
|
182
164
|
return wanted !== 'close' && SHOT_SIZE_RANK[wanted] > SHOT_SIZE_RANK[take] ? wanted : undefined;
|
|
183
165
|
}
|
|
184
|
-
/** A layer sits under the captions when its top is at most this share of the height below them and its centre this share of the width off theirs. */
|
|
185
166
|
const UNDER_CAPTIONS = 0.03;
|
|
186
|
-
/** A full-frame picture or card the reference showed this long or less was flashed, not held (#1196). */
|
|
187
167
|
const FLASH_HOLD_S = 1.2;
|
|
188
|
-
/** With no caption box measured, a centred layer whose top lies this far below where top-anchored captions start: a line to a short block. */
|
|
189
168
|
const UNMEASURED_CAPTIONS_BELOW = [0.03, 0.15];
|
|
190
|
-
/** The cuts a hook's live shot may take of ours, flash first: both are pictures only, so none adds a sound the customer did not ask for. */
|
|
191
169
|
const HOOK_SHOT_CUTS = ['flash', 'light_leak'];
|
|
192
170
|
const ENTER_OF = { pop: 'pop', fade: 'fade', slide: 'slide', scale_up: 'scale_up', tilt_in: 'tilt_in' };
|
|
193
171
|
const EXIT_OF = { cut: 'cut', fade: 'fade', slide: 'slide', pop: 'pop_out' };
|
|
@@ -197,18 +175,13 @@ const median = (values) => {
|
|
|
197
175
|
const sorted = [...values].sort((a, b) => a - b), mid = sorted.length >> 1;
|
|
198
176
|
return sorted.length % 2 ? sorted[mid] : (sorted[mid - 1] + sorted[mid]) / 2;
|
|
199
177
|
};
|
|
200
|
-
/** What a scene draws for each device a scene can draw (#1107); footage, photos, 3D and effects need media or a look the format lacks. */
|
|
201
178
|
const SCENE_DEVICES = { icon: 'a simple flat icon', emoji: 'a flat drawn icon in place of an emoji',
|
|
202
179
|
sticker: 'a sticker-style badge', arrow: 'a hand-drawn arrow pointing at the subject', highlight: 'a pen stroke under the key words',
|
|
203
180
|
text_effect: 'an animated word effect', chart: 'a simple animated chart', map: 'a simple stylised map with a pin', other: 'a simple motion graphic' };
|
|
204
|
-
/** Devices that carry the beat's words. */
|
|
205
181
|
const WORD_DEVICES = new Set(['sticker', 'highlight', 'text_effect']);
|
|
206
|
-
/** A quoted span in straight or typographic quotes, each closed by its own pair; an apostrophe inside a word opens none. */
|
|
207
182
|
const QUOTED = /"[^"]*"|(?<![\p{L}\p{N}])'[^']*'(?![\p{L}\p{N}])|‘[^’]*’|“[^”]*”|„[^“”]*[“”]|«[^»]*»|‹[^›]*›/gu;
|
|
208
183
|
const COLOUR_WORDS = /#[0-9a-f]{3,8}\b|\b(red|orange|yellow|green|teal|cyan|blue|navy|indigo|purple|violet|lilac|lavender|magenta|pink|brown|beige|black|white|gr[ae]y|gold|silver|neon|pastel|dark|light|bright)\b/giu;
|
|
209
|
-
/** Name words that say nothing of the line a picture belongs on. */
|
|
210
184
|
const NAME_NOISE = new Set(['image', 'photo', 'picture', 'pic', 'shot', 'screenshot', 'video', 'clip', 'final', 'copy', 'new', 'the', 'and', 'with', 'for']);
|
|
211
|
-
/** One word, inflected or not: equal, a shared stem of four letters, or a three-letter word and a four-letter one that open alike (pay, paid). */
|
|
212
185
|
function sameStem(left, right) {
|
|
213
186
|
if (left === right)
|
|
214
187
|
return true;
|
|
@@ -220,14 +193,11 @@ function sameStem(left, right) {
|
|
|
220
193
|
}
|
|
221
194
|
const nameWords = (name) => [...new Set(name.toLowerCase().split(/[^\p{L}\p{N}]+/u)
|
|
222
195
|
.filter(word => word.length >= 3 && !/^\p{N}+$/u.test(word) && !NAME_NOISE.has(word)))];
|
|
223
|
-
/** A drawn mark on something in the reference's own shot (#1172): a circle around it, an arrow at it. */
|
|
224
196
|
const MARKED = /\b(?:around|circling|encircling|circles|pointing (?:at|to)|points (?:at|to)|aimed at|marking)\s+((?:[\p{L}-]+\s*){1,4})/iu;
|
|
225
197
|
const MARK_PLACE = new Set(['the', 'a', 'an', 'left', 'right', 'top', 'bottom', 'upper', 'lower', 'middle', 'centre', 'center', 'first', 'second',
|
|
226
198
|
'third', 'other', 'each', 'both', 'two', 'three', 'small', 'big', 'large', 'side']);
|
|
227
199
|
const MARK_STOP = new Set(['with', 'and', 'in', 'on', 'of', 'at', 'while', 'as', 'to', 'from', 'over', 'under', 'near']);
|
|
228
|
-
/** What our own shot always holds: the presenter. */
|
|
229
200
|
const PRESENTER_WORDS = ['presenter', 'person', 'man', 'woman', 'face', 'head', 'hand', 'hands', 'speaker', 'host', 'creator', 'actor'];
|
|
230
|
-
/** The object a reference graphic marks in its own shot, as the analyser wrote it, or undefined when it marks none. */
|
|
231
201
|
function markedObject(label) {
|
|
232
202
|
const found = MARKED.exec(label.replace(QUOTED, ' ').replace(COLOUR_WORDS, ' '));
|
|
233
203
|
if (!found)
|
|
@@ -241,12 +211,8 @@ function markedObject(label) {
|
|
|
241
211
|
const object = words.filter(word => !MARK_PLACE.has(word));
|
|
242
212
|
return object.length ? object : undefined;
|
|
243
213
|
}
|
|
244
|
-
/** The reference's own call for engagement on its closing beat: likes, follows, a comment. */
|
|
245
214
|
const ENGAGEMENT = /\b(?:like|likes|follow|subscribe|comment|share|save|favou?rite|bell|heart)/i;
|
|
246
|
-
/** The analysis's name for a graphic in its gap list: its device, else its own kind. */
|
|
247
215
|
export const sceneGapWhat = (graphic) => graphic.device && graphic.device !== 'other' ? graphic.device.replace(/_/g, ' ') : graphic.source_kind;
|
|
248
|
-
/** A scene's brief from the analyser's reading of a graphic, with the reference's quoted words and colours left out: the scene is ours.
|
|
249
|
-
* The beat's role closes it, so the scene's author can choose motion that serves the beat. */
|
|
250
216
|
export function sceneBriefOf(graphic, asked, site, words, role) {
|
|
251
217
|
const label = graphic.label_hint.replace(QUOTED, ' ').replace(COLOUR_WORDS, ' ').replace(/\s+/g, ' ').trim().slice(0, 120);
|
|
252
218
|
const device = graphic.device ?? 'other', what = SCENE_DEVICES[device];
|
|
@@ -259,7 +225,6 @@ export function sceneBriefOf(graphic, asked, site, words, role) {
|
|
|
259
225
|
: WORD_DEVICES.has(device) ? words.slice(0, SCENE_TEXT_MAX_CHARS) : undefined;
|
|
260
226
|
return { brief: brief.replace(/[\p{Cc}]/gu, ' '), ...(text ? { text } : {}) };
|
|
261
227
|
}
|
|
262
|
-
/** The reference presenter's face while its graphics show (#973 S5): each element's box over its face-unit twin gives the face; freezes stand in. */
|
|
263
228
|
function referenceFaceOf(profile) {
|
|
264
229
|
const staging = profile.staging, { width, height } = profile.source;
|
|
265
230
|
if (!staging)
|
|
@@ -294,8 +259,6 @@ export function referenceScriptWords(script) {
|
|
|
294
259
|
}
|
|
295
260
|
return words;
|
|
296
261
|
}
|
|
297
|
-
/** Beats share the words by their share of the reference, cut at the nearest sentence end, or clause end at a cost. With fewer sentence ends than
|
|
298
|
-
* beats, neighbours of one role share a span first, latest first as a close stacks its CTA beats; then the shortest inner beats give up their words. */
|
|
299
262
|
export const proportionalSpans = ({ profile, words }) => {
|
|
300
263
|
const length = (group) => group.reduce((sum, index) => sum + profile.beats[index].end_frac - profile.beats[index].start_frac, 0);
|
|
301
264
|
const breaks = words.flatMap((word, index) => word.stop && index + 1 < words.length ? [{ at: index + 1, cost: word.stop === 'sentence' ? 0 : CLAUSE_COST }] : []);
|
|
@@ -331,9 +294,6 @@ export const proportionalSpans = ({ profile, words }) => {
|
|
|
331
294
|
});
|
|
332
295
|
return spans;
|
|
333
296
|
};
|
|
334
|
-
/** The call phone's place and rise from the reference's staging (#914 D1e): its measured rect and face-relative twin, a rise anchored on the call's
|
|
335
|
-
* freeze, behind the presenter. Each part the composition cannot draw, or the staging did not measure, keeps the call scene's default and is named;
|
|
336
|
-
* a profile without staging leaves the call as it was. */
|
|
337
297
|
function callStageOf(profile, listening, note) {
|
|
338
298
|
const staging = profile.staging, beat = profile.beats[listening];
|
|
339
299
|
if (!staging)
|
|
@@ -367,16 +327,12 @@ function callStageOf(profile, listening, note) {
|
|
|
367
327
|
note(listening, `the call phone's measured staging (${stage.error.issues[0]?.message ?? 'out of bounds'})`, 'the reference call scene\'s place and rise');
|
|
368
328
|
return stage.success ? stage.data : undefined;
|
|
369
329
|
}
|
|
370
|
-
/** `choose`: the server's chooser among looks the plan adds of its own (#1121); absent, the compiler keeps its own order.
|
|
371
|
-
* `facts`: the names and roles of the request's assets, which place an asset on the line it shows (#1170). */
|
|
372
330
|
export function compileReferenceRemake(input, capabilities, planSpans = proportionalSpans, choose, facts) {
|
|
373
331
|
const parsed = planReferenceRemake.safeParse(input);
|
|
374
332
|
if (!parsed.success)
|
|
375
333
|
return { kind: 'invalid', issues: parsed.error.issues.map(issue => ({ kind: 'invalid_request', path: issue.path.join('.'), message: issue.message })) };
|
|
376
334
|
const request = parsed.data, { script } = request, profile = request.reference_profile;
|
|
377
|
-
// The product's words reach a clip model, which draws what a sentence names: they describe what is visible (#1307 S2).
|
|
378
335
|
const said = request.product ? [['product.name', request.product.name], ...(request.product.demo ?? []).flatMap((step, at) => [[`product.demo.${at}.action`, step.action], [`product.demo.${at}.end_state`, step.end_state]]),
|
|
379
|
-
// The cast acts in the demo clip beside its words.
|
|
380
336
|
...request.product.demo ? (request.cast ?? []).flatMap((person, at) => person.action ? [[`cast.${at}.action`, person.action]] : []) : []] : [];
|
|
381
337
|
const negated = said.flatMap(([path, text]) => { const word = negationIn(text); return word === null ? [] : [{ path, word }]; });
|
|
382
338
|
if (negated.length)
|
|
@@ -385,8 +341,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
385
341
|
const words = referenceScriptWords(script), tokens = lexicalTokens(script), language = captionLanguageOf(script);
|
|
386
342
|
if (words.length === 0)
|
|
387
343
|
return { kind: 'invalid', issues: [{ kind: 'invalid_request', path: 'script', message: 'The script has no words to place beats on.' }] };
|
|
388
|
-
// The quote's own length estimate and limit, so a compiled plan is never refused there as too long.
|
|
389
|
-
// Untrimmed, the longest the quote can time the take, so a plan that compiles is never refused there; the voice names its language's pace.
|
|
390
344
|
const duration = estimateDurationSec(script, resolveTtsModel({ voice: request.voice, voice_id: request.voice_id, script }), { voice: request.voice });
|
|
391
345
|
if (duration > LONG_FORM_QUALIFICATION_MAX_DURATION_SEC)
|
|
392
346
|
return { kind: 'invalid', issues: [{ kind: 'invalid_request', path: 'script',
|
|
@@ -399,7 +353,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
399
353
|
planSemanticInserts(script, []);
|
|
400
354
|
}
|
|
401
355
|
catch (error) {
|
|
402
|
-
// The chunk test mirrors planSemanticInserts, with break tags taken out so each fault gets its own advice.
|
|
403
356
|
const unsupported = (chunk) => { const n = lexicalTokens(chunk).length; return n > 1 || (n === 0 && !/^\p{P}+$/u.test(chunk)); };
|
|
404
357
|
const bad = [...new Set(script.replace(new RegExp(BREAK_TAG_SOURCE, 'g'), ' ').match(/\S+/gu)?.filter(unsupported) ?? [])].slice(0, 3);
|
|
405
358
|
const fixes = [
|
|
@@ -414,21 +367,14 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
414
367
|
}
|
|
415
368
|
}
|
|
416
369
|
const templatesOff = executor?.field_dispositions.templates === 'rejected';
|
|
417
|
-
// Scenes made for the run (#1107): the graphics they draw, by `beat:graphic`, leave the gap list and are recorded as scenes in the plan.
|
|
418
370
|
const scenesOn = longForm && executor?.field_dispositions.scenes === 'implemented', scened = new Set();
|
|
419
|
-
// The reference's caption height, where the run draws caption_position (#884); otherwise the style's own place.
|
|
420
371
|
const captionsPlaced = executor?.field_dispositions.caption_position === 'implemented';
|
|
421
|
-
// A wide or full reference asks for that view where the field is honoured; graphics follow that face (#884 S5d). A personal actor asks too
|
|
422
|
-
// (#1175 S7): one with the view renders it, one without renders close and admission's warnings[] say so.
|
|
423
372
|
const framing = (profile.presenter_framing === 'wide' || profile.presenter_framing === 'full')
|
|
424
373
|
&& executor?.field_dispositions.presenter_framing === 'implemented' ? profile.presenter_framing : 'close';
|
|
425
|
-
// Every library actor has a wide view; a personal one may not, so its graphics keep off the close face as well.
|
|
426
374
|
const placeFramings = framing !== 'close' && actorIdScope(request.actor_id) !== 'clipwright' ? ['close', framing] : [framing];
|
|
427
|
-
// Library mic views are wide only, so a close plan asks for none.
|
|
428
375
|
const mic = framing === 'wide' && profile.presenter_mic === true && executor?.field_dispositions.presenter_mic === 'implemented';
|
|
429
376
|
const notes = [];
|
|
430
377
|
const note = (beat, what, substitute) => notes.push({ what: what.slice(0, 200), beat_index: beat, suggested_substitute: substitute.slice(0, 200) });
|
|
431
|
-
// A mic the plan cannot ask for is named, never dropped silently (rule 3): mic views are waist-up only (#1175 S7 acceptance r1).
|
|
432
378
|
if (!mic && profile.presenter_mic === true && executor?.field_dispositions.presenter_mic === 'implemented') {
|
|
433
379
|
note(0, 'the reference presenter\'s handheld mic', `no mic: mic views are waist-up only, and this plan frames the presenter ${framing}`);
|
|
434
380
|
}
|
|
@@ -473,7 +419,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
473
419
|
return ranges.filter(range => words.slice(range.start, range.end).some(word => !word.tag));
|
|
474
420
|
};
|
|
475
421
|
const wordAt = (span, share) => quote(Math.min(span.end - 1, span.start + Math.max(1, Math.floor(share * (span.end - span.start)))), 2, span.end);
|
|
476
|
-
/** A word in capitals the closing words ask the viewer to write ("FİYAT"), with a tag of its words: the word before it to its clause's end. */
|
|
477
422
|
const commentCall = (span, clauses) => {
|
|
478
423
|
for (let at = span.start; at < span.end; at++) {
|
|
479
424
|
const word = words[at], written = script.slice(word.from, word.to).replace(/^[^\p{L}]+|[^\p{L}]+$/gu, '');
|
|
@@ -488,10 +433,8 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
488
433
|
}
|
|
489
434
|
return undefined;
|
|
490
435
|
};
|
|
491
|
-
/** The words of what our shots can show: the script, the assets' names and the presenter (#1172). */
|
|
492
436
|
const shownWords = () => [...tokens.flatMap(token => token.split(/[^\p{L}\p{N}]+/u)),
|
|
493
437
|
...request.assets.flatMap(asset => nameWords(facts?.get(asset.asset_id)?.name ?? '')), ...PRESENTER_WORDS].filter(word => word.length >= 3);
|
|
494
|
-
// Measured staging drawn as the reference drew it (#973 S5): a box under the captions, on the face or on the frame, its entry from our list.
|
|
495
438
|
const canvas = frameCanvasOf(DEFAULT_ASPECT_RATIO), measuredFace = referenceFaceOf(profile);
|
|
496
439
|
const presenterOk = longForm && executor?.field_dispositions.presenter_place === 'implemented';
|
|
497
440
|
const presenter = measuredFace && presenterOk ? presenterPlace.safeParse(measuredFace).data : undefined;
|
|
@@ -501,11 +444,9 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
501
444
|
: presenterOk ? 'the actor\'s own framing: the face size is outside what the presenter can be framed to' : 'the actor\'s own framing');
|
|
502
445
|
}
|
|
503
446
|
const face = plannedFace(DEFAULT_ASPECT_RATIO, canvas, framing, presenter);
|
|
504
|
-
/** Elements whose staging the plan draws or names on its own; the rest get the one note below. */
|
|
505
447
|
const drawn = new Set(), touched = [];
|
|
506
448
|
const gaps = { entry: [], exit: [], styles: new Map(), templates: [], inferred: [],
|
|
507
449
|
fitted: [] };
|
|
508
|
-
// A box never measured on the frames is an estimate, and a note says so (#930 S2).
|
|
509
450
|
const sourceOf = (element) => element.rect_method?.startsWith('estimated') ? 'vision-pass' : 'measured';
|
|
510
451
|
const elementOf = (beat, graphic) => profile.staging?.elements.find(entry => entry.beat_index === beat && entry.graphic_index === graphic && entry.rect_hold);
|
|
511
452
|
const captionsSeen = profile.captions.present && !profile.captions.hidden_under_graphics;
|
|
@@ -517,12 +458,10 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
517
458
|
const gap = rect.top - box.top - box.height;
|
|
518
459
|
return Math.abs(centre - box.left - box.width / 2) <= UNDER_CAPTIONS && gap >= -0.005 && gap <= UNDER_CAPTIONS ? { gap: round(Math.max(0, gap)) } : undefined;
|
|
519
460
|
}
|
|
520
|
-
// No box: caption lines are centred, and a top-anchored block starts at its position's height while a bottom-anchored one ends there.
|
|
521
461
|
const at = CAPTION_POSITION_VERTICAL[profile.captions.position] / 100, topEdge = captionEdgeAt(at * 100) === 'top';
|
|
522
462
|
const [low, high] = topEdge ? [at + UNMEASURED_CAPTIONS_BELOW[0], at + UNMEASURED_CAPTIONS_BELOW[1]] : [at - 0.005, at + UNDER_CAPTIONS];
|
|
523
463
|
return Math.abs(centre - 0.5) <= UNDER_CAPTIONS && rect.top >= low && rect.top <= high ? {} : undefined;
|
|
524
464
|
};
|
|
525
|
-
/** The element's place on our presenter, or 'face' when it would cover our face; `own` is a template's own rect, which never stands by captions. */
|
|
526
465
|
const stagedPlace = (element, own) => {
|
|
527
466
|
const rect = element.rect_hold, under = own ? undefined : underCaptions(rect);
|
|
528
467
|
const parsed = place.safeParse(under ? { relative_to: 'captions', side: 'below', ...(under.gap === undefined ? {} : { gap: under.gap }), width: round(rect.width) }
|
|
@@ -537,12 +476,10 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
537
476
|
const onFace = sharedArea(shown, face);
|
|
538
477
|
if (onFace > FACE_COVER_SHARE * face.width * face.height)
|
|
539
478
|
return 'face';
|
|
540
|
-
// The reference's own touch of its presenter's face is kept on purpose and said once in the plan, not on every render (#1049).
|
|
541
479
|
if (onFace > 0)
|
|
542
480
|
touched.push(element.beat_index);
|
|
543
481
|
return { place: onFace > 0 ? { ...parsed.data, allow_face: true } : parsed.data, inferred: false };
|
|
544
482
|
};
|
|
545
|
-
/** Where a reference moment falls in its beat: the share of the beat's spoken words up to it, else of its seconds. */
|
|
546
483
|
const shareAt = (beat, t) => {
|
|
547
484
|
const source = profile.beats[beat], said = (profile.transcript ?? []).filter(word => word.start_s >= source.start_s && word.start_s < source.end_s);
|
|
548
485
|
let at = 0;
|
|
@@ -550,7 +487,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
550
487
|
at = index; });
|
|
551
488
|
return { said, at, share: said.length ? (at + 0.5) / said.length : Math.min(1, Math.max(0, (t - source.start_s) / (source.end_s - source.start_s))) };
|
|
552
489
|
};
|
|
553
|
-
/** The word the reference showed it on, at the same share of our beat's words, and its measured lead or lag on that word. */
|
|
554
490
|
const enterOf = (element, beat, span) => {
|
|
555
491
|
const shown = element.entry?.first_visible_s;
|
|
556
492
|
if (shown === undefined)
|
|
@@ -577,7 +513,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
577
513
|
return { ...(enter ? { enter, ...(duration ? { enter_duration_s: Math.min(1.5, Math.max(0.05, round(duration, 2))) } : {}) } : {}),
|
|
578
514
|
...(exit && exit !== 'cut' ? { exit } : {}) };
|
|
579
515
|
};
|
|
580
|
-
/** A split's or full-frame picture's measured entry and exit: a split enters as an overlay does, an insert cuts; the rest is named (rule 3). */
|
|
581
516
|
const cutsOf = (element, beat, kind, enters) => {
|
|
582
517
|
const style = element.entry?.style, leave = element.exit?.style, enter = enters && style ? ENTER_OF[style] : undefined;
|
|
583
518
|
const moved = (value) => value !== undefined && value !== 'cut' && value !== 'unknown';
|
|
@@ -586,7 +521,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
586
521
|
note(beat, `${kind}: its ${lost.join(' and ')} (reference staging)`, 'a cut');
|
|
587
522
|
return enter ? { enter } : {};
|
|
588
523
|
};
|
|
589
|
-
/** The split's media side and share from the measured box (#1030): a band from the frame edge it touches, else from the side its centre is on. */
|
|
590
524
|
const splitOf = (element, beat, kind) => {
|
|
591
525
|
const rect = element.rect_hold, bottom = rect.top + rect.height, edge = 0.05;
|
|
592
526
|
const media_side = rect.top <= edge ? 'top' : bottom >= 1 - edge ? 'bottom' : rect.top + rect.height / 2 < 0.5 ? 'top' : 'bottom';
|
|
@@ -598,15 +532,12 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
598
532
|
note(beat, `${kind}: its ${sourceOf(element)} box, ${off.join(', ')}`, `a full-width band on the ${media_side}, ${media_share} of the height`);
|
|
599
533
|
return { media_side, media_share, ...cutsOf(element, beat, kind, true) };
|
|
600
534
|
};
|
|
601
|
-
/** A product screen's split (#1161): the band on the side the reference showed it, half the frame's height, so a screenshot reads. */
|
|
602
535
|
const screenSplitOf = (element, position, beat) => {
|
|
603
536
|
const rect = element?.rect_hold, media_side = rect ? (rect.top + rect.height / 2 < 0.5 ? 'top' : 'bottom')
|
|
604
537
|
: position.startsWith('bottom') ? 'bottom' : 'top';
|
|
605
538
|
note(beat, `overlay_media ${rect ? `in its ${sourceOf(element)} box` : `at ${position}`}`, `a split: your screen fills the ${media_side} half and the presenter the other, so the screen reads and the face stays clear`);
|
|
606
539
|
return { layout: 'split', media_side, media_share: SPLIT_MEDIA_SHARE.default, ...(element ? cutsOf(element, beat, 'overlay_media', true) : {}) };
|
|
607
540
|
};
|
|
608
|
-
/** A full-frame picture takes its measured box when the box is smaller than the frame (#1030) and fit auto: the run then places it by its own shape,
|
|
609
|
-
* in that box or the whole frame, scrolled or panned to show all of it (#1031, #1051 S2). */
|
|
610
541
|
const insertFrameOf = (element, media, beat, kind) => {
|
|
611
542
|
const rect = element?.rect_hold, margin = 0.02;
|
|
612
543
|
const inset = rect && (rect.left > margin || rect.top > margin || rect.left + rect.width < 1 - margin || rect.top + rect.height < 1 - margin);
|
|
@@ -624,8 +555,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
624
555
|
gaps.fitted.push(beat);
|
|
625
556
|
return { fit: 'auto', ...(box ? { box } : {}) };
|
|
626
557
|
};
|
|
627
|
-
/** A full-frame picture or card the reference only flashed covers the words its measured time takes at our pace, from the beat's first;
|
|
628
|
-
* the presenter or the next shot says the rest (#1196). */
|
|
629
558
|
const flashed = (element, span) => {
|
|
630
559
|
const shown = element?.entry?.first_visible_s, gone = element?.exit?.last_visible_s;
|
|
631
560
|
if (shown === undefined || gone === undefined || gone - shown > FLASH_HOLD_S)
|
|
@@ -635,7 +564,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
635
564
|
};
|
|
636
565
|
const spans = planSpans({ profile, words });
|
|
637
566
|
const beatAt = (word) => Math.max(0, spans.findIndex(span => span !== null && word >= span.start && word < span.end));
|
|
638
|
-
/** The first script words a quote of the request names, on the beat holding them. */
|
|
639
567
|
const find = (text) => {
|
|
640
568
|
const matches = quoteOccurrences(tokens, text);
|
|
641
569
|
return matches[0] && { anchor: { quote: text, ...(matches.length > 1 ? { occurrence: 0 } : {}) }, start: matches[0].startWord,
|
|
@@ -643,7 +571,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
643
571
|
};
|
|
644
572
|
const missing = (path, text) => ({ kind: 'invalid', issues: [{ kind: 'invalid_request', path,
|
|
645
573
|
message: `"${text}" is not in the script: quote its words as written.` }] });
|
|
646
|
-
// An asset pinned to its words always shows there (#1170): in the reference's picture place on that beat, else over the whole frame.
|
|
647
574
|
const pins = [];
|
|
648
575
|
for (const [at, asset] of request.assets.entries()) {
|
|
649
576
|
const found = asset.anchor === undefined ? undefined : find(asset.anchor);
|
|
@@ -652,7 +579,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
652
579
|
if (found)
|
|
653
580
|
pins.push({ ...found, asset, at, used: false });
|
|
654
581
|
}
|
|
655
|
-
// The user's shot notes (#1172): the reference's graphics on their words go, and their template shows there.
|
|
656
582
|
const edits = [];
|
|
657
583
|
for (const [at, edit] of (request.line_edits ?? []).entries()) {
|
|
658
584
|
const found = find(edit.quote);
|
|
@@ -662,11 +588,8 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
662
588
|
}
|
|
663
589
|
const editsOn = (span) => edits.filter(edit => edit.start < span.end && span.start < edit.end);
|
|
664
590
|
const layers = [];
|
|
665
|
-
/** Layers the request named itself: a run refusing one refuses the compile, never drops it (#1172). */
|
|
666
591
|
const requested = new Map();
|
|
667
592
|
const pool = request.assets.filter(asset => asset.anchor === undefined), images = () => pool.filter(asset => asset.media_type === 'image').length;
|
|
668
|
-
// An unpinned asset whose name says a beat's words waits for that beat (#1170): the beat matching most of its name, the earliest on a tie.
|
|
669
|
-
// Only beats that take a picture count; a word every asset's name holds (the brand) says nothing.
|
|
670
593
|
const slots = profile.beats.flatMap((beat, index) => spans[index] && !editsOn(spans[index]).length && (beat.presenter_behaviour === 'absent'
|
|
671
594
|
|| beat.graphics.some(graphic => (drawnKindOf(graphic) ?? graphic.kind) in MEDIA_KINDS || graphic.source_kind === 'logo_card')) ? [index] : []);
|
|
672
595
|
const namesOf = new Map(pool.flatMap(asset => { const fact = facts?.get(asset.asset_id); return fact ? [[asset, nameWords(fact.name)]] : []; }));
|
|
@@ -682,12 +605,8 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
682
605
|
lineOf.set(asset, { beat, score });
|
|
683
606
|
}
|
|
684
607
|
}
|
|
685
|
-
/** How each asset not pinned got its place, for the note that names every guessed place (#1170). */
|
|
686
608
|
const guessed = [];
|
|
687
|
-
/** Beats compiled to the end; a beat the presenter leaves with nothing of its own is compiled after the rest, so beat order says nothing here.
|
|
688
|
-
* A beat with a pinned asset counts from the start: the pin takes its picture place. */
|
|
689
609
|
const served = new Set(pins.map(pin => pin.beat));
|
|
690
|
-
/** The beat's own named asset first (a product photo on a beat that shows the product breaks a tie), else the first no other beat still waits for. */
|
|
691
610
|
const usableFor = (image, beat) => pool.filter(asset => {
|
|
692
611
|
const named = lineOf.get(asset)?.beat;
|
|
693
612
|
return (!image || asset.media_type === 'image') && (named === undefined || named === beat || served.has(named));
|
|
@@ -704,14 +623,11 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
704
623
|
return asset;
|
|
705
624
|
};
|
|
706
625
|
const pinOn = (beat, image) => pins.find(pin => !pin.used && pin.beat === beat && (!image || pin.asset.media_type === 'image'));
|
|
707
|
-
/** The layer drawing a graphic the analyser could not name a kind for; it counts as drawn only if the layer survives to the plan. */
|
|
708
626
|
const drawnDevices = new Map();
|
|
709
627
|
const waiting = [];
|
|
710
628
|
const anchored = [];
|
|
711
|
-
/** Beats whose words keep the presenter in the frame: no full-frame layer and no window, so a framing may sit on them. */
|
|
712
629
|
const onScreen = [];
|
|
713
630
|
const stressed = [];
|
|
714
|
-
/** The closing beat a site's end card goes on: the last call to action with words of its own, else the last beat with words (#1161). */
|
|
715
631
|
const worded = (at) => { const span = spans[at]; return Boolean(span && quote(span.start, 6, span.end)); };
|
|
716
632
|
const cta = profile.beats.findLastIndex((beat, at) => beat.role === 'cta' && worded(at));
|
|
717
633
|
const closing = cta >= 0 ? cta : profile.beats.findLastIndex((_beat, at) => worded(at));
|
|
@@ -729,16 +645,13 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
729
645
|
const beatWords = own;
|
|
730
646
|
const clauses = parts(span);
|
|
731
647
|
const gapOf = (graphic) => graphic.kind === 'unmapped' ? sceneGapWhat(graphic) : drawnKindOf(graphic) ?? graphic.kind;
|
|
732
|
-
// A line the user edited shows what the edit says (#1172): the reference's graphics on the beat go, each named.
|
|
733
648
|
const edited = editsOn(span);
|
|
734
649
|
for (const graphic of edited.length ? beat.graphics : []) {
|
|
735
650
|
if (graphic.kind !== 'particles')
|
|
736
651
|
note(index, gapOf(graphic), `your line edit on "${edited[0].anchor.quote}"`);
|
|
737
652
|
}
|
|
738
|
-
// `hidden` also counts a template whose kind draws full-frame by default, as quote and compare do: captions are hidden under it too.
|
|
739
653
|
let placed, layered = false, fullFrame = edited.some(edit => edit.template && (edit.template.placement
|
|
740
654
|
?? TEMPLATE_KINDS.find(entry => entry.kind === edit.template.kind)?.placements[0]) === 'full'), windowed = false, hidden = fullFrame;
|
|
741
|
-
// The reference's own call for likes or follows, on a closing beat whose words ask for a comment word of ours, becomes a tag of our words (#1172).
|
|
742
655
|
const asked = beat.role === 'cta' && !edited.length ? commentCall(span, clauses) : undefined;
|
|
743
656
|
const engaged = asked && !templatesOff ? beat.graphics.filter(graphic => ENGAGEMENT.test(graphic.label_hint) && !((drawnKindOf(graphic) ?? graphic.kind) in MEDIA_KINDS)) : [];
|
|
744
657
|
if (asked && engaged.length) {
|
|
@@ -748,8 +661,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
748
661
|
cover_words: asked.cover_words, data: { text: asked.text } } });
|
|
749
662
|
placed = 'tag';
|
|
750
663
|
}
|
|
751
|
-
// Specific graphics first: a text card is what a beat falls back to.
|
|
752
|
-
// A scene comes after the library's own kinds, a device a drawn kind shows among them (#1112), and before a text card (#1107).
|
|
753
664
|
const rank = (graphic) => {
|
|
754
665
|
const kind = drawnKindOf(graphic) ?? graphic.kind;
|
|
755
666
|
return TEXT_KINDS.has(graphic.kind) ? 2 : kind === 'unmapped' || kind === 'scene' ? 1 : 0;
|
|
@@ -758,10 +669,8 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
758
669
|
const component = drawnKindOf(graphic), kind = component ?? graphic.kind;
|
|
759
670
|
if (kind === 'particles')
|
|
760
671
|
continue;
|
|
761
|
-
// A graphic no kind draws becomes a scene made for the run where it can be drawn (#1107); the analyser's word on it then goes.
|
|
762
672
|
if (kind === 'unmapped' || kind === 'scene') {
|
|
763
673
|
const made = scenesOn ? sceneBriefOf(graphic, kind === 'scene', request.site, beatWords.anchor.quote, beat.role) : undefined;
|
|
764
|
-
// A mark on something in the reference's shot (a circle around a device) is drawn only where our shot can hold that thing (#1172).
|
|
765
674
|
const marked = made && !layered ? markedObject(graphic.label_hint) : undefined;
|
|
766
675
|
if (marked && !marked.some(word => shownWords().some(token => sameStem(word, token)))) {
|
|
767
676
|
note(index, `${gapOf(graphic)} marking the ${marked.join(' ')} in the reference's shot`, 'not drawn: none of your shots or assets shows it');
|
|
@@ -785,7 +694,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
785
694
|
fullFrame ||= placement === 'full';
|
|
786
695
|
continue;
|
|
787
696
|
}
|
|
788
|
-
// A logo card is a brand picture: it shows as an overlay while an image is left in assets, else as the text card it maps to (#973 S5).
|
|
789
697
|
const room = layers.filter(layer => layer.field === 'overlays').length < MAX_OVERLAYS;
|
|
790
698
|
const wantsLogo = graphic.source_kind === 'logo_card' && longForm && !layered;
|
|
791
699
|
const logo = wantsLogo && (usableFor(true, index).length > 0 || pinOn(index, true) !== undefined) && room;
|
|
@@ -799,8 +707,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
799
707
|
note(index, `${kind} (one media layer per beat)`, 'the first one shows here');
|
|
800
708
|
continue;
|
|
801
709
|
}
|
|
802
|
-
// Where the reference's presenter is gone, its split or overlay picture fills the frame (#1060). On a beat that shows the product, the
|
|
803
|
-
// product's screen takes half the frame as a split, so it reads and the face stays clear by layout, not by a corner (#1161).
|
|
804
710
|
const screen = !logo && kind === 'overlay_media' && SHOWN_ROLES.has(beat.role) && beat.presenter_behaviour !== 'absent'
|
|
805
711
|
&& layers.filter(layer => layer.field === 'layout_windows').length < MAX_LAYOUT_WINDOWS;
|
|
806
712
|
const field = logo ? 'overlays' : beat.presenter_behaviour === 'absent' ? 'inserts' : screen ? 'layout_windows'
|
|
@@ -822,7 +728,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
822
728
|
pin.used = true;
|
|
823
729
|
const asset = pin?.asset ?? take(logo, index);
|
|
824
730
|
const { kind: _kind, ...item } = { ...envelope(field === 'inserts' ? 'insert_media' : media), asset_id: asset.asset_id, media_type: asset.media_type };
|
|
825
|
-
// A pinned asset keeps the reference's place on the beat and shows on its own words.
|
|
826
731
|
const push = (value) => {
|
|
827
732
|
const { enter_offset_s: _offset, ...rest } = value, layer = { field, beat: index, kind: media,
|
|
828
733
|
item: pin ? { ...rest, anchor: pin.anchor, cover_words: pin.end - pin.start } : value };
|
|
@@ -841,7 +746,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
841
746
|
continue;
|
|
842
747
|
}
|
|
843
748
|
const position = graphic.position.replace(/^split_/, ''), wanted = OVERLAY_POSITIONS.includes(position) ? position : 'top_right';
|
|
844
|
-
// Off the face: the reference place, else a corner on its side (right by default), a band last.
|
|
845
749
|
const side = wanted.endsWith('left') ? 'left' : 'right', rank = (place) => place.endsWith(side) ? 0 : place.includes('_') ? 1 : 2;
|
|
846
750
|
const clear = (place) => placeFramings.every(each => !rectsOverlap(overlayRect(place, frameCanvasOf(DEFAULT_ASPECT_RATIO)), faceZone(DEFAULT_ASPECT_RATIO, each)));
|
|
847
751
|
const placed = clear(wanted) ? wanted : [...OVERLAY_POSITIONS].sort((left, right) => rank(left) - rank(right)).find(clear) ?? wanted;
|
|
@@ -883,7 +787,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
883
787
|
}
|
|
884
788
|
const item = { ...envelope(built.kind),
|
|
885
789
|
...(built.placement ? { placement: built.placement } : {}), data: built.data };
|
|
886
|
-
// A measured box over the presenter takes the template whole, drawn as its kind draws with no place of its own (#973 S4, S5).
|
|
887
790
|
const element = elementOf(index, beat.graphics.indexOf(graphic)), definition = TEMPLATE_KINDS.find(entry => entry.kind === built.kind);
|
|
888
791
|
if ((built.placement ?? definition?.placements[0]) === 'full' && !definition?.quotes && !definition?.spreads)
|
|
889
792
|
Object.assign(item, flashed(element, span));
|
|
@@ -900,7 +803,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
900
803
|
item.place = staged.place;
|
|
901
804
|
gaps.templates.push(index);
|
|
902
805
|
}
|
|
903
|
-
// A reference place over the face gives way to the kind's default, which every kind keeps off it.
|
|
904
806
|
if (!item.place && 'position' in built.data && placeFramings.some(each => templateFaceWarnings({ templates: [item], presenter_framing: each }).length)) {
|
|
905
807
|
const { position: _position, ...data } = built.data;
|
|
906
808
|
item.data = data;
|
|
@@ -914,7 +816,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
914
816
|
fullFrame ||= built.placement === 'full';
|
|
915
817
|
hidden ||= (built.placement ?? definition?.placements[0]) === 'full';
|
|
916
818
|
}
|
|
917
|
-
// A site asks for an end card on the closing beat even where the reference shows none (#1161); it takes the place of a text card there.
|
|
918
819
|
if (request.site && index === closing && edited.length)
|
|
919
820
|
note(index, 'an end card for your site', `your line edit on "${edited[0].anchor.quote}"`);
|
|
920
821
|
else if (request.site && index === closing && !layers.some(layer => layer.kind === 'end_card')) {
|
|
@@ -923,7 +824,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
923
824
|
const built = templatesOff || (placed && text < 0) || full ? undefined
|
|
924
825
|
: template('end_card', { kind: 'end_card', source_kind: 'end_card', position: 'center', state_changes: [], label_hint: '' }, span, clauses, false);
|
|
925
826
|
if (built && 'data' in built && built.kind === 'end_card') {
|
|
926
|
-
// A text card is the beat's only graphic (it ranks last), so what stays full-frame after it goes is an insert.
|
|
927
827
|
if (text >= 0) {
|
|
928
828
|
layers.splice(text, 1);
|
|
929
829
|
fullFrame = layers.some(layer => layer.beat === index && layer.field === 'inserts');
|
|
@@ -937,7 +837,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
937
837
|
: 'one graphic per beat'})`, placed ? `the ${placed} on these words` : 'the presenter speaks these words without it');
|
|
938
838
|
}
|
|
939
839
|
}
|
|
940
|
-
// A beat the presenter leaves with nothing of its own on the frame waits for the media every graphic leaves over, else a title card (#1060).
|
|
941
840
|
const waits = beat.presenter_behaviour === 'absent' && !fullFrame && !placed && !layered && !edited.length;
|
|
942
841
|
const finish = () => {
|
|
943
842
|
if (waits) {
|
|
@@ -961,7 +860,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
961
860
|
fullFrame = hidden = true;
|
|
962
861
|
}
|
|
963
862
|
}
|
|
964
|
-
// A pin still unplaced fills the frame on its words below.
|
|
965
863
|
fullFrame ||= pins.some(pin => !pin.used && pin.beat === index);
|
|
966
864
|
if (beat.presenter_behaviour === 'absent' && !fullFrame) {
|
|
967
865
|
const over = placed ?? (layered ? 'logo_card' : undefined);
|
|
@@ -973,7 +871,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
973
871
|
if (!fullFrame && !windowed)
|
|
974
872
|
onScreen.push({ beat: index, anchor: own.anchor, cover_words: span.end - own.start });
|
|
975
873
|
const emphasised = profile.captions.present && profile.captions.emphasis_style !== 'none' && (beat.role === 'hook' || beat.role === 'cta');
|
|
976
|
-
// A full-frame layer covers the beat's every word, and captions are hidden under it (#1049).
|
|
977
874
|
if (emphasised && (fullFrame || hidden))
|
|
978
875
|
note(index, 'caption emphasis on this beat (a full-frame insert or template covers its words, and captions are hidden there)', 'none here');
|
|
979
876
|
else if (emphasised) {
|
|
@@ -992,7 +889,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
992
889
|
else
|
|
993
890
|
finish();
|
|
994
891
|
});
|
|
995
|
-
// Each waiting beat goes in beat order, as if it had been compiled in place.
|
|
996
892
|
if (waiting.length) {
|
|
997
893
|
for (const finish of waiting)
|
|
998
894
|
finish();
|
|
@@ -1000,7 +896,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1000
896
|
onScreen.sort((left, right) => left.beat - right.beat);
|
|
1001
897
|
stressed.sort((left, right) => left.from - right.from);
|
|
1002
898
|
}
|
|
1003
|
-
// A pin no picture place of the reference took fills the frame on its words; an edit's template shows on its own (#1170, #1172).
|
|
1004
899
|
for (const pin of pins.filter(entry => !entry.used)) {
|
|
1005
900
|
if (!longForm)
|
|
1006
901
|
return { kind: 'invalid', issues: [{ kind: 'invalid_request', path: `assets.${pin.at}.anchor`,
|
|
@@ -1027,8 +922,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1027
922
|
}
|
|
1028
923
|
if (requested.size)
|
|
1029
924
|
layers.sort((left, right) => left.beat - right.beat);
|
|
1030
|
-
// The reference's cuts and flashes inside a beat its presenter leaves cut our picture there too (#1085): to a spare one of its kind, else the
|
|
1031
|
-
// same picture at a new crop; a clip cuts only to a spare clip. Moments a flash's length apart are one cut, on the cut if they hold one.
|
|
1032
925
|
const moments = (profile.staging?.anchors ?? []).filter(entry => /^(cut|flash)#/.test(entry.id)).sort((left, right) => left.t_s - right.t_s);
|
|
1033
926
|
const uncut = [];
|
|
1034
927
|
for (const layer of layers.filter(entry => entry.field === 'inserts' && profile.beats[entry.beat].presenter_behaviour === 'absent' && !requested.has(entry))) {
|
|
@@ -1048,7 +941,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1048
941
|
let from = span.end - item.cover_words;
|
|
1049
942
|
for (const t of cuts) {
|
|
1050
943
|
const found = quote(span.start + Math.min(length - 1, Math.max(1, Math.round(shareAt(layer.beat, t).share * length))), 2, span.end);
|
|
1051
|
-
// The shot before the cut keeps only words before it in its anchor.
|
|
1052
944
|
const kept = found && found.start > from ? quote(from, Math.min(4, found.start - from), found.start) : undefined;
|
|
1053
945
|
if (!found || kept?.start !== from)
|
|
1054
946
|
continue;
|
|
@@ -1093,7 +985,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1093
985
|
const first = Math.max(0, pieces.findIndex(piece => piece.end > ready));
|
|
1094
986
|
let after = span.start;
|
|
1095
987
|
return pieces.slice(first, first + most).flatMap(piece => {
|
|
1096
|
-
// A row's quote names no word: the run takes its first match from the row before on, so the word chosen must be that match.
|
|
1097
988
|
let at;
|
|
1098
989
|
for (let from = Math.max(piece.start, ready); from < piece.end && !at; from++) {
|
|
1099
990
|
const found = quote(from, 2, piece.end);
|
|
@@ -1111,14 +1002,11 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1111
1002
|
return [{ text, quote: at.anchor.quote }];
|
|
1112
1003
|
});
|
|
1113
1004
|
};
|
|
1114
|
-
// The first row is clicked once the kind is drawn, at the fastest pace a voice reads, with a word to spare (#1049); a phrase spoken
|
|
1115
|
-
// before then introduces the rows. Without two rows that way the rows are chosen as before, and the run moves a click itself and says so.
|
|
1116
1005
|
const shownAt = (TEMPLATE_KINDS.find(entry => entry.kind === kind)?.beatsFrom ?? TEMPLATE_ENTER_FRAMES + 1) / CANVAS_FPS;
|
|
1117
1006
|
const led = pick(span.start + Math.ceil(shownAt * WORDS_PER_SECOND_MAX) + 1), kept = led.length >= 2 ? led : pick(span.start);
|
|
1118
1007
|
return kept.length >= 2 ? kept : pick(span.start, false);
|
|
1119
1008
|
};
|
|
1120
1009
|
const number = words.slice(span.start, span.end).find(word => !word.tag && /^\d+(?:[.,]\d+)?$/.test(word.token));
|
|
1121
|
-
// A screen of two parts (a prompt and its replies, a command and its status) takes the clauses, or a one-clause beat cut at its middle word.
|
|
1122
1010
|
const middle = span.start + Math.floor((span.end - span.start) / 2);
|
|
1123
1011
|
const halves = clauses.length >= 2 ? clauses : [{ start: span.start, end: middle }, { start: middle, end: span.end }];
|
|
1124
1012
|
switch (kind) {
|
|
@@ -1170,7 +1058,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1170
1058
|
return text ? { kind, data: { text } } : textCard();
|
|
1171
1059
|
}
|
|
1172
1060
|
case 'end_card': {
|
|
1173
|
-
// The card prints the site itself: the label stops before it, spoken ("x dot io") or written, and drops the preposition left over.
|
|
1174
1061
|
const parts = (text) => lexicalTokens(text.replace(/[./_@:&+]+/gu, ' ')).filter(part => !['www', 'http', 'https'].includes(part));
|
|
1175
1062
|
const site = parts(request.site ?? '');
|
|
1176
1063
|
const named = (at) => site.length > 0 && words.slice(at, at + 2 * site.length).flatMap(word => parts(word.token))
|
|
@@ -1192,8 +1079,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1192
1079
|
: textCard('fewer than two short phrases for its command and status');
|
|
1193
1080
|
}
|
|
1194
1081
|
case 'phone_screen': {
|
|
1195
|
-
// The reel plays on the phone, its phrases chips on the screen's side; a ready clip fills the screen, a gradient without one.
|
|
1196
|
-
// One phrase plays on its own, from the phone's first frame: a beat of one clause is not cut into single words.
|
|
1197
1082
|
const whole = label(span.start, span.end, 24);
|
|
1198
1083
|
const [first, ...more] = clauses.length >= 2 ? rows(24, 3, kind) : whole ? [{ text: whole }] : [];
|
|
1199
1084
|
const clip = pool.find(asset => asset.media_type === 'video');
|
|
@@ -1206,7 +1091,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1206
1091
|
.map(({ quote, ...state }) => ({ ...state, ...(quote ? { at: quote } : {}) })) } };
|
|
1207
1092
|
}
|
|
1208
1093
|
case 'pointer_chips': {
|
|
1209
|
-
// Chips on the arrow's side point across the presenter's body, below the face; a measured box places them whole, as any template.
|
|
1210
1094
|
const items = rows(20, 3, kind), side = /left/.test(graphic.position) ? 'left' : 'right';
|
|
1211
1095
|
if (!items.length)
|
|
1212
1096
|
return textCard('no words short enough for its chips');
|
|
@@ -1224,7 +1108,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1224
1108
|
...(title ? { title } : {}) } };
|
|
1225
1109
|
}
|
|
1226
1110
|
case 'word_title': {
|
|
1227
|
-
// The beat's words in turn, a word or two each, each on its own words as spoken.
|
|
1228
1111
|
const entries = [];
|
|
1229
1112
|
for (let at = span.start; at < span.end && entries.length < 8;) {
|
|
1230
1113
|
const found = quote(at, 2, span.end);
|
|
@@ -1235,7 +1118,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1235
1118
|
entries.push({ text, at: found.anchor.quote });
|
|
1236
1119
|
at = found.end;
|
|
1237
1120
|
}
|
|
1238
|
-
// The first entry shows from the template's first frame (#1129): words before its own are said under it.
|
|
1239
1121
|
const late = entries.length && quote(span.start, 2, span.end)?.anchor.quote !== entries[0].at;
|
|
1240
1122
|
return entries.length ? { kind, placement: 'full', data: { words: entries },
|
|
1241
1123
|
...(late ? { first: `its first entry "${entries[0].text}" shows from the title's first frame, before its words are spoken` } : {}) }
|
|
@@ -1246,10 +1128,7 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1246
1128
|
default: return { missing: `it needs ${kind === 'callout' ? 'a point on screen to mark' : 'a name and a role'}`, substitute: 'the presenter speaks these words without it' };
|
|
1247
1129
|
}
|
|
1248
1130
|
}
|
|
1249
|
-
// A beat where the presenter listens to recorded audio is the reference's call (S5, D9): the client's lines open after the last quote before it,
|
|
1250
|
-
// and the call brings its own in-call phone over the gap, so the reference's phone graphic goes.
|
|
1251
1131
|
const listening = profile.beats.findIndex(beat => beat.presenter_behaviour === 'listening' && beat.sounds.some(sound => sound.kind === 'recorded_audio'));
|
|
1252
|
-
// The call opens on the sentence end nearest the beat's start, never inside a sentence (#924: reel B's opened after "That's why these days").
|
|
1253
1132
|
const beatStart = listening >= 0 ? spans[listening]?.start : undefined;
|
|
1254
1133
|
const resumeAt = beatStart === undefined ? undefined : words.flatMap((word, index) => word.stop === 'sentence' && index + 1 < words.length ? [index + 1] : [])
|
|
1255
1134
|
.reduce((best, at) => best === undefined || Math.abs(at - beatStart) < Math.abs(best - beatStart) ? at : best, undefined);
|
|
@@ -1264,7 +1143,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1264
1143
|
else if (listening >= 0 && !before)
|
|
1265
1144
|
note(listening, 'the reference\'s call (no sentence end with words after it to open it on)', 'the presenter keeps talking');
|
|
1266
1145
|
else if (listening >= 0 && before && request.call) {
|
|
1267
|
-
// The call's phone replaces the reference's, never a card the request named on the same beat (#1205).
|
|
1268
1146
|
const asked = edits.find(edit => edit.template?.kind === 'phone_call' && editsOn(spans[listening]).includes(edit));
|
|
1269
1147
|
if (asked)
|
|
1270
1148
|
return { kind: 'invalid', issues: [{ kind: 'invalid_request', path: `line_edits.${asked.at}`,
|
|
@@ -1274,18 +1152,14 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1274
1152
|
phone: { ...CALL_PHONE_DEFAULTS, ...request.call.phone }, ...(stage ? { stage } : {}) };
|
|
1275
1153
|
for (const layer of layers.filter(layer => layer.beat === listening && layer.kind === 'phone_call'))
|
|
1276
1154
|
layers.splice(layers.indexOf(layer), 1);
|
|
1277
|
-
// The call's own phone draws the staging, so the dropped card's word on it goes too.
|
|
1278
1155
|
for (const entry of notes.filter(entry => entry.beat_index === listening && entry.what.startsWith('phone_call: its ')))
|
|
1279
1156
|
notes.splice(notes.indexOf(entry), 1);
|
|
1280
1157
|
}
|
|
1281
|
-
// Measured staging is drawn for overlays, templates over the presenter, splits, full-frame media and the call's phone: any other measured graphic
|
|
1282
|
-
// the plan places keeps its default place, and says so once per beat and kind (rule 3).
|
|
1283
1158
|
const placed = new Set(layers.filter(layer => layer.field !== 'framing' && layer.field !== 'caption_emphasis').map(layer => layer.beat));
|
|
1284
1159
|
const named = new Set();
|
|
1285
1160
|
for (const element of profile.staging?.elements ?? []) {
|
|
1286
1161
|
const graphic = element.graphic_index === null ? undefined : profile.beats[element.beat_index]?.graphics[element.graphic_index];
|
|
1287
1162
|
const key = `${element.beat_index}:${graphic?.kind}`;
|
|
1288
|
-
// A graphic the analysis could not name is the analysis's own gap, not a place the plan moved (#1060).
|
|
1289
1163
|
const span = spans[element.beat_index];
|
|
1290
1164
|
if (!graphic || graphic.kind === 'unmapped' || graphic.kind === 'particles' || !placed.has(element.beat_index) || named.has(key) || drawn.has(element.id)
|
|
1291
1165
|
|| (call && element.beat_index === listening && element.kind === 'phone_call') || (span && editsOn(span).length))
|
|
@@ -1312,13 +1186,11 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1312
1186
|
if (gaps.inferred.length) {
|
|
1313
1187
|
note(gaps.inferred[0], `the reference's caption box, for the graphics on beats ${beatsOf(gaps.inferred)} (not measured)`, `placed under the captions: each sits centred just below where the reference's ${profile.captions.position} captions are`);
|
|
1314
1188
|
}
|
|
1315
|
-
// Camera, transitions, flashes and edit sounds go to the layer that owns each beat (#1051 S1); what the plan adds is listed in brief.added.
|
|
1316
1189
|
const motion = planMotion({ beats: profile.beats, flashes: profile.staging?.anchors.flatMap(entry => entry.id.startsWith('flash#') ? [entry.t_s] : []) ?? [],
|
|
1317
1190
|
worded: spans.map(Boolean), layers, onScreen, longForm, addMoves: request.add_moves, ...(choose ? { choose } : {}),
|
|
1318
1191
|
script: { words: words.map(word => ({ token: word.token, ...(word.stop ? { stop: word.stop } : {}),
|
|
1319
1192
|
...(word.stop === 'sentence' && /\?["'”’»)\]]*$/u.test(script.slice(word.from, word.to)) ? { question: true } : {}) })),
|
|
1320
1193
|
spans, word_s: duration / words.length, emphasis: stressed, quote, cards: !templatesOff } });
|
|
1321
|
-
// A device the director adds goes whole, every layer of it, when the run refuses one, and its line in brief.added with it (#1051 S5).
|
|
1322
1194
|
const moves = new Map(), ours = new Map();
|
|
1323
1195
|
for (const { layer: index, set, added } of motion.patches) {
|
|
1324
1196
|
const layer = layers[index];
|
|
@@ -1349,9 +1221,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1349
1221
|
}
|
|
1350
1222
|
for (const entry of motion.notes)
|
|
1351
1223
|
note(entry.beat, entry.what, entry.substitute);
|
|
1352
|
-
// Live shots, when asked (#1103): a beat whose presenter speaks or reacts on screen, with no full-frame layer or window on its words, is a shot of
|
|
1353
|
-
// our actor; the longest are kept, and a framing on a shot's words gives way to it.
|
|
1354
|
-
// On by default since #1175 S7, on the beats where the reference presenter moves: the gestures the analysis saw, each with its frames.
|
|
1355
1224
|
const shotsOn = longForm && executor?.field_dispositions.shots === 'implemented';
|
|
1356
1225
|
const shotsAsked = request.live_shots !== false;
|
|
1357
1226
|
if (request.live_shots && !shotsOn) {
|
|
@@ -1363,7 +1232,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1363
1232
|
&& (layer.item.placement ?? TEMPLATE_KINDS.find(entry => entry.kind === layer.kind)?.placements[0]) === 'full');
|
|
1364
1233
|
const product = request.product;
|
|
1365
1234
|
const holding = product ? { product: { placement: product.placement } } : {};
|
|
1366
|
-
// The reference's demo, with the product's steps given, is one clip of the actor using it (#1307 S2): adjacent demo beats join the first.
|
|
1367
1235
|
const demoBeat = (index) => profile.beats[index].role === 'demo' && profile.beats[index].presenter_behaviour !== 'listening';
|
|
1368
1236
|
const demoEnds = new Map(), joined = new Map();
|
|
1369
1237
|
let lead;
|
|
@@ -1387,7 +1255,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1387
1255
|
note(beat, `the reference's demo of the product (beats ${group})`, `the presenter's usual take: pass product.demo, the steps of using your ${product.name}, to show it in the presenter's hands`);
|
|
1388
1256
|
}
|
|
1389
1257
|
}
|
|
1390
|
-
/** The words a demo clip covers: up to the longest clip at the slowest pace, cut at a clause end inside it; the presenter says the rest. */
|
|
1391
1258
|
const clipEnd = (start, end) => {
|
|
1392
1259
|
const most = Math.floor(DEMO_CLIP_MAX_S * WORDS_PER_SECOND_MIN + 1e-9);
|
|
1393
1260
|
if (end - start <= most)
|
|
@@ -1417,7 +1284,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1417
1284
|
return [];
|
|
1418
1285
|
if (request.live_shots === undefined && !beat.gestures?.length)
|
|
1419
1286
|
return [];
|
|
1420
|
-
// Beats sharing one span of words take one shot, and a call never opens inside a shot's words.
|
|
1421
1287
|
if (onScreen.slice(0, at).some(entry => spans[entry.beat].start === span.start) || (call && resumeAt > span.start && resumeAt < span.end))
|
|
1422
1288
|
return [];
|
|
1423
1289
|
if (layers.some(layer => covers(layer) && meets(layer, span.start, span.end)))
|
|
@@ -1425,7 +1291,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1425
1291
|
const action = [...new Set([...beat.gestures ?? []].sort((a, b) => a.at_s - b.at_s).flatMap(entry => gestureAction(entry.kind, product) ?? []))].join(', then ');
|
|
1426
1292
|
const acted = beat.presenter_behaviour === 'reacting' || !!action;
|
|
1427
1293
|
const wider = shotFramingOf(beat.shot_size, framing);
|
|
1428
|
-
// The request's cast stands beside the actor in every acting shot (#1192): those shots share one setup, so one cast; so does the product.
|
|
1429
1294
|
const shot = { id: `ref-${index + 1}-shot`, anchor: { startWord: span.start, endWord: span.end },
|
|
1430
1295
|
...beat.presenter_behaviour === 'reacting' ? { kind: 'action', action: action || REACTION }
|
|
1431
1296
|
: action ? { kind: 'talking_action', action } : { kind: 'talking' },
|
|
@@ -1433,7 +1298,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1433
1298
|
return [{ beat: index, words: span.end - span.start, shot, demo: undefined }];
|
|
1434
1299
|
});
|
|
1435
1300
|
const kept = new Set([...wanted].sort((a, b) => b.words - a.words || a.beat - b.beat).slice(0, MAX_LIVE_SHOTS));
|
|
1436
|
-
/** Each demo clip's layer, with the last reference beat it shows. */
|
|
1437
1301
|
const demos = new Map();
|
|
1438
1302
|
for (const entry of wanted) {
|
|
1439
1303
|
const { beat, shot } = entry;
|
|
@@ -1456,7 +1320,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1456
1320
|
note(layer.beat, `the reference's cut to a ${item.size} framing${item.transition ? ` with a ${item.transition}` : ''}`, 'the live shot on these words');
|
|
1457
1321
|
}
|
|
1458
1322
|
const layer = { field: 'shots', beat, kind: `${shot.kind} shot`, item: shot };
|
|
1459
|
-
// A hook shot cuts to the presenter on a flash, ours unless add_moves is false (#1129); a chooser may pick another cut it draws (#1121).
|
|
1460
1323
|
if (request.add_moves !== false && profile.beats[beat].role === 'hook' && end < words.length) {
|
|
1461
1324
|
const cue = beatCue(profile.beats[beat]);
|
|
1462
1325
|
const [look] = preferChosen(HOOK_SHOT_CUTS, { slot: 'live_shot_transition', beat, role: 'hook', ...(cue ? { cue } : {}) }, choose);
|
|
@@ -1475,7 +1338,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1475
1338
|
const musicOn = executor?.field_dispositions.music === 'implemented';
|
|
1476
1339
|
if (request.music !== undefined || music >= 0) {
|
|
1477
1340
|
const what = music >= 0 ? 'the music bed' : 'music under the voice';
|
|
1478
|
-
// Without music on the server a reference's bed keeps its line word for word, so today's plans stay byte for byte.
|
|
1479
1341
|
if (!musicOn)
|
|
1480
1342
|
note(Math.max(music, 0), what, music >= 0 ? 'no music; Clipwright adds none yet' : 'no music: music is not available on this server');
|
|
1481
1343
|
else if (request.music === undefined)
|
|
@@ -1485,14 +1347,12 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1485
1347
|
const stylesOn = executor?.field_dispositions.motion_style === 'implemented';
|
|
1486
1348
|
if (request.motion_style !== undefined && !stylesOn)
|
|
1487
1349
|
note(0, 'the motion style you asked for', 'plain: motion styles are not available on this server');
|
|
1488
|
-
// The narration chases the presenter's measured pace through the voice's speed; a model without one leaves the voice as the lever.
|
|
1489
1350
|
const speechModel = resolveTtsModel({ voice: request.voice, voice_id: request.voice_id, script });
|
|
1490
1351
|
const pace = narrationPaceFromVoice(profile.voice), fixedPace = FIXED_PACE_MODELS.has(speechModel);
|
|
1491
1352
|
if (pace.kind === 'unmeasured')
|
|
1492
1353
|
note(0, `narration pace (${pace.reason})`, 'the voice speaks at its own pace');
|
|
1493
1354
|
else if (fixedPace) {
|
|
1494
1355
|
const named = measuredPaceOf(request.voice), gap = (wps) => Math.abs(wps - pace.target_wps);
|
|
1495
|
-
// Only voices nearer than the named one: the nearest of a gender can still be farther off.
|
|
1496
1356
|
const nearer = ['female', 'male'].map(gender => [gender, voicesNearestPace(pace.target_wps, gender, 2, named?.voice)
|
|
1497
1357
|
.filter(entry => !named || gap(entry.words_per_second) < gap(named.words_per_second))])
|
|
1498
1358
|
.filter(([, voices]) => voices.length).map(([gender, voices]) => `${gender} ${voices.map(entry => `${entry.voice} ${entry.words_per_second}`).join(', ')}`);
|
|
@@ -1506,8 +1366,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1506
1366
|
else if (pace.clamped) {
|
|
1507
1367
|
note(0, `narration pace ${pace.target_wps} words/s of the reference presenter (speed ${pace.wanted} wanted)`, `voice_pace ${pace.voice_pace}, the end of the speed range: the narration may run ${pace.wanted > pace.voice_pace ? 'slower' : 'faster'} than the reference`);
|
|
1508
1368
|
}
|
|
1509
|
-
// Speed first, then pauses past the presenter's word-gap medians are cut; the request's own win, as a reference's gaps may be a song's (#1308).
|
|
1510
|
-
// A remake is an ad: without the reference's own pauses it takes the ad-style default (#1136).
|
|
1511
1369
|
const pauseTrim = request.pause_trim === undefined ? pauseTrimFromVoice(profile.voice) : undefined;
|
|
1512
1370
|
const pauseTargets = request.pause_trim ?? pauseTrim?.targets ?? { ...AD_PAUSE_TRIM };
|
|
1513
1371
|
if (request.pause_trim === undefined && !pauseTrim?.targets)
|
|
@@ -1516,10 +1374,8 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1516
1374
|
note(0, `narration pauses ${key} ${Math.round(median_s * 100) / 100} s of the reference presenter`, `pause_trim ${key} ${PAUSE_TRIM_CEILING_S}, the longest target: these pauses may run shorter than the reference`);
|
|
1517
1375
|
}
|
|
1518
1376
|
const captionStyle = profile.captions.words_per_caption_max <= 2 ? 'tiktok' : profile.captions.words_per_caption_max <= 4 ? 'hormozi' : 'youtube';
|
|
1519
|
-
// The reference's caption height, unless the band would sit on our presenter's face there: then the nearest clear height, lower on a tie (#1049).
|
|
1520
1377
|
const height = CAPTION_POSITION_VERTICAL, referenceAt = profile.captions.position;
|
|
1521
1378
|
const onFace = (position) => sharedArea(captionBandBox(captionStyle, DEFAULT_ASPECT_RATIO, canvas, { vertical: height[position] }), face) > 0;
|
|
1522
|
-
// A graphic placed by the captions keeps the reference's relation to them, so the band stays and the plan names the face it covers.
|
|
1523
1379
|
const byCaptions = layers.some(layer => layer.item.place?.relative_to === 'captions');
|
|
1524
1380
|
const captionPosition = byCaptions ? referenceAt : Object.keys(height)
|
|
1525
1381
|
.sort((a, b) => Math.abs(height[a] - height[referenceAt]) - Math.abs(height[b] - height[referenceAt]) || height[b] - height[a])
|
|
@@ -1528,8 +1384,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1528
1384
|
note(0, `captions at the reference's ${referenceAt} height (there they would cover the presenter's face)`, captionPosition !== referenceAt
|
|
1529
1385
|
? `${captionPosition} captions, clear of the face` : byCaptions ? 'kept there: graphics stand by the captions' : 'kept there: no caption height is clear of the face');
|
|
1530
1386
|
}
|
|
1531
|
-
// A clip shorter than its words would freeze on its last frame: it covers only the words it outlasts at the slowest pace, and the presenter
|
|
1532
|
-
// says the rest (#1198). A fit that leaves the run more presenter shots than it renders is undone first, below.
|
|
1533
1387
|
const fitted = new Map();
|
|
1534
1388
|
for (const layer of layers.filter(entry => entry.field === 'inserts')) {
|
|
1535
1389
|
const item = layer.item;
|
|
@@ -1546,7 +1400,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1546
1400
|
layer.item = { ...item, anchor: short.anchor, cover_words: short.end - short.start };
|
|
1547
1401
|
}
|
|
1548
1402
|
let native = {}, marked = false;
|
|
1549
|
-
// Every pass that does not break drops one layer or adds the one marker, so the loop ends.
|
|
1550
1403
|
for (;;) {
|
|
1551
1404
|
const field = (name) => { const items = layers.filter(layer => layer.field === name).map(layer => layer.item); return items.length ? { [name]: items } : {}; };
|
|
1552
1405
|
native = { script, actor_id: request.actor_id, ...(framing !== 'close' ? { presenter_framing: framing } : {}), ...(mic ? { presenter_mic: true } : {}),
|
|
@@ -1556,7 +1409,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1556
1409
|
...field('caption_emphasis'), ...field('templates'), ...field('scenes'), ...field('overlays'), ...field('inserts'), ...field('layout_windows'), ...field('framing'),
|
|
1557
1410
|
...(call ? { call } : {}), ...field('shots'),
|
|
1558
1411
|
...product && layers.some(layer => layer.field === 'shots' && layer.item.product) ? { product_asset_id: product.asset_id } : {} };
|
|
1559
|
-
// Cut sounds only when the client asks: on a remake they sounded too loud on every cut (#1076).
|
|
1560
1412
|
if (request.edit_sounds === true && soundsOn && cutToSound())
|
|
1561
1413
|
native.edit_sounds = true;
|
|
1562
1414
|
if (request.music !== undefined && musicOn)
|
|
@@ -1565,12 +1417,10 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1565
1417
|
native.motion_style = request.motion_style;
|
|
1566
1418
|
if (presenter && isNarratedUgcInput(native))
|
|
1567
1419
|
native.presenter_place = presenter;
|
|
1568
|
-
// The quote refuses customer media without this policy; the note below discloses it (rule 3).
|
|
1569
1420
|
if (['overlays', 'inserts', 'layout_windows'].some(name => native[name]) || templateMediaOf(native.templates).length) {
|
|
1570
1421
|
native.broll_policy = 'anyone';
|
|
1571
1422
|
}
|
|
1572
1423
|
const checked = makeUgcInput.safeParse(native);
|
|
1573
|
-
// A call the run refuses goes, and the presenter keeps talking there.
|
|
1574
1424
|
const refusedCall = checked.error?.issues.find(entry => entry.path[0] === 'call');
|
|
1575
1425
|
if (refusedCall && call) {
|
|
1576
1426
|
call = undefined;
|
|
@@ -1591,8 +1441,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1591
1441
|
}
|
|
1592
1442
|
continue;
|
|
1593
1443
|
}
|
|
1594
|
-
// A move the run refuses goes before the layer does: the refused layer's own, else one on a layer the refusal names.
|
|
1595
|
-
// A refusal of a transition takes only the transition it names: the refused layer's own, or the cited layer's "whose …" (#1198 item 7).
|
|
1596
1444
|
const passing = /would show (a hidden presenter frame|the presenter between)/.test(issue.message);
|
|
1597
1445
|
const blamed = (layer) => {
|
|
1598
1446
|
const { keys } = moves.get(layer), id = layer.item.id;
|
|
@@ -1615,7 +1463,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1615
1463
|
note(moved.beat, `${moved.kind}: its ${keys.map(key => key.replace('_', ' ')).join(' and ')} (${issue.message})`, keys.map(key => key === 'transition' ? 'a cut' : 'a still picture').join(' and '));
|
|
1616
1464
|
continue;
|
|
1617
1465
|
}
|
|
1618
|
-
// A layer the request named stays: a reference layer the refusal also names goes instead, else the compile is refused (#1172).
|
|
1619
1466
|
const cited = (layer) => issue.message.includes(`"${layer.item.id}"`);
|
|
1620
1467
|
const instead = requested.has(dropped) ? layers.find(layer => layer !== dropped && !requested.has(layer) && cited(layer)) : dropped;
|
|
1621
1468
|
if (!instead)
|
|
@@ -1627,7 +1474,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1627
1474
|
note(instead.beat, `${instead.kind} (${issue.message})`, 'left out; edit the plan to place it');
|
|
1628
1475
|
continue;
|
|
1629
1476
|
}
|
|
1630
|
-
// The quote's actor-shot limit: the insert covering the fewest words goes first, a requested one only when no other is left.
|
|
1631
1477
|
const inserts = layers.filter(layer => layer.field === 'inserts');
|
|
1632
1478
|
const plan = inserts.length ? planSemanticInserts(script, inserts.map(layer => {
|
|
1633
1479
|
const item = layer.item;
|
|
@@ -1653,8 +1499,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1653
1499
|
note(dropped.beat, `${dropped.kind} (inserts leave ${shots} actor appearances; a run renders 1 to ${MAX_NARRATED_ACTOR_SHOTS})`, 'left out; the presenter speaks these words');
|
|
1654
1500
|
continue;
|
|
1655
1501
|
}
|
|
1656
|
-
// The quote's take budget (#1197), so the plan is never refused at quote: past it a live shot goes, the one on the fewest words first;
|
|
1657
|
-
// with no shot left, a picture the plan placed itself; with only the request's own pictures left, the compile is refused in the quote's words.
|
|
1658
1502
|
const overBudget = ugcMarkedComponentsRefusal(checked.data, executor?.field_dispositions.visible_ai_label === 'implemented');
|
|
1659
1503
|
if (overBudget) {
|
|
1660
1504
|
const wordsOf = (layer) => { const range = rangeOf(layer); return range ? range.coverWord - range.startWord : 0; };
|
|
@@ -1685,7 +1529,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1685
1529
|
note(picture.beat, `${picture.kind} (${overBudget})`, 'left out; the presenter speaks these words');
|
|
1686
1530
|
continue;
|
|
1687
1531
|
}
|
|
1688
|
-
// A remake bills on the long-form tariff: with nothing else narrated, a medium framing (scale 1) over the whole script makes it so.
|
|
1689
1532
|
const lead = longForm && !marked && !isNarratedUgcInput(native) ? quote(0, 6, words.length) : undefined;
|
|
1690
1533
|
if (lead) {
|
|
1691
1534
|
marked = true;
|
|
@@ -1719,13 +1562,11 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1719
1562
|
'each shot kind bills its own presenter-second price'] : [],
|
|
1720
1563
|
...[...demos].filter(([layer]) => layers.includes(layer)).map(([layer, last]) => `the demo on beats ${layer.beat + 1}${last > layer.beat ? `–${last + 1}` : ''}: ` +
|
|
1721
1564
|
`one live shot of the presenter using your ${product.name}, from a first frame with it ${product.placement === 'hand' ? 'in hand' : 'beside them'}`)];
|
|
1722
|
-
// Every place the compiler chose for an unpinned asset is named (#1170): the line its name matches, else its order in assets.
|
|
1723
1565
|
const shownBy = (asset) => layers.find(layer => JSON.stringify(layer.item).includes(`"${asset.asset_id}"`));
|
|
1724
1566
|
for (const { asset, beat } of guessed.filter(entry => entry.how === 'name' && shownBy(entry.asset))) {
|
|
1725
1567
|
const name = facts?.get(asset.asset_id)?.name, at = shownBy(asset).item.anchor?.quote;
|
|
1726
1568
|
note(beat, `an anchor for your ${asset.media_type} ${asset.asset_id}${name ? ` ("${name.slice(0, 60)}")` : ''}`, `shown${at ? ` on "${at}"` : ''}, the line its name matches; pass its anchor to place it elsewhere`);
|
|
1727
1569
|
}
|
|
1728
|
-
// An asset whose line showed something else is told apart from one no line names.
|
|
1729
1570
|
for (const named of [false, true]) {
|
|
1730
1571
|
const byOrder = guessed.filter(entry => entry.how === 'order' && shownBy(entry.asset) && lineOf.has(entry.asset) === named);
|
|
1731
1572
|
if (byOrder.length) {
|
|
@@ -1734,7 +1575,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1734
1575
|
}
|
|
1735
1576
|
}
|
|
1736
1577
|
const disclosed = notes.length;
|
|
1737
|
-
// A reference with almost no presenter is closer to a faceless video, and the cover over ours is still billed (#1060).
|
|
1738
1578
|
const away = profile.beats.reduce((sum, beat) => sum + (beat.presenter_behaviour === 'absent' ? beat.end_frac - beat.start_frac : 0), 0);
|
|
1739
1579
|
if (profile.format === 'faceless' || profile.format === 'broll' || away >= FACELESS_SHARE - 1e-9) {
|
|
1740
1580
|
note(0, 'a video with no presenter on screen for most of its length', 'a presenter video that covers its presenter there, and a covered presenter ' +
|
|
@@ -1748,7 +1588,6 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1748
1588
|
|| (layer.field === 'templates' && templateMediaOf([layer.item]).length > 0));
|
|
1749
1589
|
note(media?.beat ?? 0, 'a check that your media shows no people', 'your media is shown as you supplied it (broll_policy=anyone)');
|
|
1750
1590
|
}
|
|
1751
|
-
// Billing and media terms go first, so the 40-entry cap below never cuts them (rule 3).
|
|
1752
1591
|
notes.unshift(...notes.splice(disclosed));
|
|
1753
1592
|
let beats = [];
|
|
1754
1593
|
try {
|
|
@@ -1758,18 +1597,13 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1758
1597
|
catch {
|
|
1759
1598
|
note(0, 'advisory beat anchors (the script holds a tag that plan beats cannot count words through)', 'the plan keeps no beats; the graphics still sit on their words');
|
|
1760
1599
|
}
|
|
1761
|
-
// A device's layer the run schema dropped above leaves the device undrawn: its line and its analyser kind stay.
|
|
1762
1600
|
const converted = new Map([...drawnDevices].filter(([layer]) => layers.includes(layer)).map(([layer, graphic]) => [graphic, layer.kind]));
|
|
1763
|
-
// Past the bound the compiler's own gaps come first, then one analyser entry for each beat whose undrawn graphic needs one (the schema refuses it bare).
|
|
1764
|
-
// A scene the run refused went with its layer, and its graphic stays a gap.
|
|
1765
1601
|
for (const key of [...scened])
|
|
1766
1602
|
if (!layers.some(layer => layer.field === 'scenes' && `${layer.beat}` === key.split(':')[0]))
|
|
1767
1603
|
scened.delete(key);
|
|
1768
1604
|
const needsEntry = (beat) => profile.beats[beat].graphics.some((graphic, at) => (graphic.kind === 'particles' || graphic.kind === 'unmapped')
|
|
1769
1605
|
&& !converted.has(graphic) && !scened.has(`${beat}:${at}`));
|
|
1770
|
-
// A plan that plays the call drops the analyser's word that recorded audio is not played on its beat: the client would read both.
|
|
1771
1606
|
const heard = call ? profile.unmapped.filter(entry => entry.beat_index !== listening || !/recorded/i.test(entry.what)) : profile.unmapped;
|
|
1772
|
-
// A device a drawn kind now shows, or a graphic drawn as a scene, takes its analyser line with it: one line for each, named as the analysis names it.
|
|
1773
1607
|
const shown = [...converted.keys()].map(graphic => ({ beat: profile.beats.findIndex(beat => beat.graphics.includes(graphic)), what: sceneGapWhat(graphic) }))
|
|
1774
1608
|
.concat([...scened].map(key => {
|
|
1775
1609
|
const [beat, at] = key.split(':').map(Number);
|
|
@@ -1811,4 +1645,3 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1811
1645
|
return document.success ? { kind: 'compiled', document: document.data }
|
|
1812
1646
|
: { kind: 'invalid', issues: document.error.issues.map(issue => ({ kind: 'invalid_plan', path: issue.path.join('.'), message: issue.message })) };
|
|
1813
1647
|
}
|
|
1814
|
-
//# sourceMappingURL=reference-remake.js.map
|