vidspotai-shared 1.0.82 → 1.0.83
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/lib/globals/aiModels/enums.d.ts +11 -1
- package/lib/globals/aiModels/enums.d.ts.map +1 -1
- package/lib/globals/aiModels/enums.js +24 -1
- package/lib/globals/aiModels/index.d.ts.map +1 -1
- package/lib/globals/aiModels/index.js +2 -0
- package/lib/globals/aiModels/providers/anthropic.d.ts +12 -0
- package/lib/globals/aiModels/providers/anthropic.d.ts.map +1 -0
- package/lib/globals/aiModels/providers/anthropic.js +88 -0
- package/lib/globals/aiModels/providers/google.d.ts.map +1 -1
- package/lib/globals/aiModels/providers/google.js +82 -0
- package/lib/globals/aiModels/providers/openai.d.ts.map +1 -1
- package/lib/globals/aiModels/providers/openai.js +63 -4
- package/lib/globals/aiModels/tierHelpers.d.ts +12 -0
- package/lib/globals/aiModels/tierHelpers.d.ts.map +1 -1
- package/lib/globals/aiModels/tierHelpers.js +83 -0
- package/lib/globals/aiModels/types.d.ts +19 -0
- package/lib/globals/aiModels/types.d.ts.map +1 -1
- package/lib/globals/types.d.ts +120 -1
- package/lib/globals/types.d.ts.map +1 -1
- package/lib/globals/types.js +135 -1
- package/lib/models/agent.model.d.ts +41 -1
- package/lib/models/agent.model.d.ts.map +1 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +1 -0
- package/lib/models/social.model.d.ts +180 -0
- package/lib/models/social.model.d.ts.map +1 -0
- package/lib/models/social.model.js +2 -0
- package/lib/models/user.model.d.ts +10 -0
- package/lib/models/user.model.d.ts.map +1 -1
- package/lib/models/video.model.d.ts +6 -0
- package/lib/models/video.model.d.ts.map +1 -1
- package/lib/schemas/brief.schema.d.ts +46 -0
- package/lib/schemas/brief.schema.d.ts.map +1 -1
- package/lib/schemas/brief.schema.js +72 -1
- package/lib/schemas/index.d.ts +1 -0
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +1 -0
- package/lib/schemas/project.schema.d.ts +67 -0
- package/lib/schemas/project.schema.d.ts.map +1 -1
- package/lib/schemas/project.schema.js +12 -0
- package/lib/schemas/social.schema.d.ts +91 -0
- package/lib/schemas/social.schema.d.ts.map +1 -0
- package/lib/schemas/social.schema.js +114 -0
- package/lib/schemas/videoPlan.schema.d.ts +114 -0
- package/lib/schemas/videoPlan.schema.d.ts.map +1 -1
- package/lib/schemas/videoPlan.schema.js +141 -1
- package/lib/services/agent/chatAgent.d.ts +25 -1
- package/lib/services/agent/chatAgent.d.ts.map +1 -1
- package/lib/services/agent/chatAgent.js +145 -9
- package/lib/services/agent/costPreflight.d.ts +11 -1
- package/lib/services/agent/costPreflight.d.ts.map +1 -1
- package/lib/services/agent/costPreflight.js +18 -1
- package/lib/services/agent/covers/coverPlanner.d.ts +41 -0
- package/lib/services/agent/covers/coverPlanner.d.ts.map +1 -0
- package/lib/services/agent/covers/coverPlanner.js +278 -0
- package/lib/services/agent/covers/covers.schema.d.ts +158 -0
- package/lib/services/agent/covers/covers.schema.d.ts.map +1 -0
- package/lib/services/agent/covers/covers.schema.js +166 -0
- package/lib/services/agent/covers/index.d.ts +3 -0
- package/lib/services/agent/covers/index.d.ts.map +1 -0
- package/lib/services/agent/covers/index.js +18 -0
- package/lib/services/agent/critic.d.ts +10 -0
- package/lib/services/agent/critic.d.ts.map +1 -1
- package/lib/services/agent/critic.js +37 -1
- package/lib/services/agent/editClassifier.d.ts +2 -2
- package/lib/services/agent/editClassifier.js +2 -2
- package/lib/services/agent/editExisting/editAssembler.d.ts +78 -0
- package/lib/services/agent/editExisting/editAssembler.d.ts.map +1 -0
- package/lib/services/agent/editExisting/editAssembler.js +172 -0
- package/lib/services/agent/editExisting/editExisting.schema.d.ts +119 -0
- package/lib/services/agent/editExisting/editExisting.schema.d.ts.map +1 -0
- package/lib/services/agent/editExisting/editExisting.schema.js +157 -0
- package/lib/services/agent/editExisting/highlightPicker.d.ts +48 -0
- package/lib/services/agent/editExisting/highlightPicker.d.ts.map +1 -0
- package/lib/services/agent/editExisting/highlightPicker.js +199 -0
- package/lib/services/agent/editExisting/index.d.ts +4 -0
- package/lib/services/agent/editExisting/index.d.ts.map +1 -0
- package/lib/services/agent/editExisting/index.js +19 -0
- package/lib/services/agent/eval/seedBriefs.d.ts +4 -3
- package/lib/services/agent/eval/seedBriefs.d.ts.map +1 -1
- package/lib/services/agent/eval/seedBriefs.js +283 -3
- package/lib/services/agent/eval/types.d.ts +10 -0
- package/lib/services/agent/eval/types.d.ts.map +1 -1
- package/lib/services/agent/executor/core.d.ts +70 -0
- package/lib/services/agent/executor/core.d.ts.map +1 -0
- package/lib/services/agent/executor/core.js +250 -0
- package/lib/services/agent/executor/duration.d.ts +20 -0
- package/lib/services/agent/executor/duration.d.ts.map +1 -0
- package/lib/services/agent/executor/duration.js +46 -0
- package/lib/services/agent/executor/index.d.ts +15 -0
- package/lib/services/agent/executor/index.d.ts.map +1 -0
- package/lib/services/agent/executor/index.js +32 -0
- package/lib/services/agent/executor/types.d.ts +183 -0
- package/lib/services/agent/executor/types.d.ts.map +1 -0
- package/lib/services/agent/executor/types.js +29 -0
- package/lib/services/agent/executor/visual.d.ts +32 -0
- package/lib/services/agent/executor/visual.d.ts.map +1 -0
- package/lib/services/agent/executor/visual.js +400 -0
- package/lib/services/agent/executor/voice.d.ts +17 -0
- package/lib/services/agent/executor/voice.d.ts.map +1 -0
- package/lib/services/agent/executor/voice.js +119 -0
- package/lib/services/agent/extendChain.d.ts +101 -0
- package/lib/services/agent/extendChain.d.ts.map +1 -0
- package/lib/services/agent/extendChain.js +177 -0
- package/lib/services/agent/index.d.ts +11 -1
- package/lib/services/agent/index.d.ts.map +1 -1
- package/lib/services/agent/index.js +11 -1
- package/lib/services/agent/llmCaller.d.ts +7 -8
- package/lib/services/agent/llmCaller.d.ts.map +1 -1
- package/lib/services/agent/llmCallerAnthropic.d.ts +44 -31
- package/lib/services/agent/llmCallerAnthropic.d.ts.map +1 -1
- package/lib/services/agent/llmCallerAnthropic.js +135 -60
- package/lib/services/agent/llmCallerFactory.d.ts +34 -0
- package/lib/services/agent/llmCallerFactory.d.ts.map +1 -0
- package/lib/services/agent/llmCallerFactory.js +31 -0
- package/lib/services/agent/llmCallerGemini.d.ts +62 -0
- package/lib/services/agent/llmCallerGemini.d.ts.map +1 -0
- package/lib/services/agent/llmCallerGemini.js +235 -0
- package/lib/services/agent/llmCallerOpenai.d.ts +56 -0
- package/lib/services/agent/llmCallerOpenai.d.ts.map +1 -0
- package/lib/services/agent/llmCallerOpenai.js +230 -0
- package/lib/services/agent/llmCallerRegistry.d.ts.map +1 -1
- package/lib/services/agent/llmCallerRegistry.js +7 -7
- package/lib/services/agent/llmCallerRouting.d.ts +63 -0
- package/lib/services/agent/llmCallerRouting.d.ts.map +1 -0
- package/lib/services/agent/llmCallerRouting.js +124 -0
- package/lib/services/agent/llmModelRegistry.d.ts +59 -0
- package/lib/services/agent/llmModelRegistry.d.ts.map +1 -0
- package/lib/services/agent/llmModelRegistry.js +168 -0
- package/lib/services/agent/llmRetry.d.ts +57 -0
- package/lib/services/agent/llmRetry.d.ts.map +1 -0
- package/lib/services/agent/llmRetry.js +102 -0
- package/lib/services/agent/modelRouter.d.ts +3 -3
- package/lib/services/agent/modelRouter.d.ts.map +1 -1
- package/lib/services/agent/modelRouter.js +27 -13
- package/lib/services/agent/planMutations.d.ts +54 -1
- package/lib/services/agent/planMutations.d.ts.map +1 -1
- package/lib/services/agent/planMutations.js +78 -0
- package/lib/services/agent/planner/Planner.d.ts +0 -17
- package/lib/services/agent/planner/Planner.d.ts.map +1 -1
- package/lib/services/agent/planner/Planner.js +67 -303
- package/lib/services/agent/planner/overlayRegen.d.ts +38 -0
- package/lib/services/agent/planner/overlayRegen.d.ts.map +1 -0
- package/lib/services/agent/planner/overlayRegen.js +145 -0
- package/lib/services/agent/planner/plannerMessages.d.ts +34 -0
- package/lib/services/agent/planner/plannerMessages.d.ts.map +1 -0
- package/lib/services/agent/planner/plannerMessages.js +185 -0
- package/lib/services/agent/planner/promptSections.d.ts +12 -0
- package/lib/services/agent/planner/promptSections.d.ts.map +1 -1
- package/lib/services/agent/planner/promptSections.js +57 -0
- package/lib/services/agent/planner/scriptFirstPlanner.d.ts +35 -0
- package/lib/services/agent/planner/scriptFirstPlanner.d.ts.map +1 -0
- package/lib/services/agent/planner/scriptFirstPlanner.js +140 -0
- package/lib/services/agent/planner/structuralRules.d.ts +10 -0
- package/lib/services/agent/planner/structuralRules.d.ts.map +1 -1
- package/lib/services/agent/planner/structuralRules.js +92 -9
- package/lib/services/agent/planner/validators.d.ts +18 -0
- package/lib/services/agent/planner/validators.d.ts.map +1 -1
- package/lib/services/agent/planner/validators.js +97 -0
- package/lib/services/agent/planner.d.ts +2 -1
- package/lib/services/agent/planner.d.ts.map +1 -1
- package/lib/services/agent/planner.js +5 -1
- package/lib/services/agent/priorProject.d.ts +26 -0
- package/lib/services/agent/priorProject.d.ts.map +1 -0
- package/lib/services/agent/priorProject.js +51 -0
- package/lib/services/agent/providerFallback/chains.d.ts.map +1 -1
- package/lib/services/agent/providerFallback/chains.js +27 -15
- package/lib/services/agent/repurpose/index.d.ts +3 -0
- package/lib/services/agent/repurpose/index.d.ts.map +1 -0
- package/lib/services/agent/repurpose/index.js +18 -0
- package/lib/services/agent/repurpose/repurpose.schema.d.ts +132 -0
- package/lib/services/agent/repurpose/repurpose.schema.d.ts.map +1 -0
- package/lib/services/agent/repurpose/repurpose.schema.js +144 -0
- package/lib/services/agent/repurpose/shortsPicker.d.ts +25 -0
- package/lib/services/agent/repurpose/shortsPicker.d.ts.map +1 -0
- package/lib/services/agent/repurpose/shortsPicker.js +218 -0
- package/lib/services/agent/runHelpers.d.ts +21 -2
- package/lib/services/agent/runHelpers.d.ts.map +1 -1
- package/lib/services/agent/runHelpers.js +71 -2
- package/lib/services/agent/tools/animateImage.tool.d.ts +1 -0
- package/lib/services/agent/tools/animateImage.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/animateImage.tool.js +12 -0
- package/lib/services/agent/tools/chapterOutline.tool.d.ts +42 -0
- package/lib/services/agent/tools/chapterOutline.tool.d.ts.map +1 -0
- package/lib/services/agent/tools/chapterOutline.tool.js +115 -0
- package/lib/services/agent/tools/composeScene.tool.d.ts +63 -0
- package/lib/services/agent/tools/composeScene.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/estimateCost.tool.d.ts +27 -0
- package/lib/services/agent/tools/estimateCost.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/estimateCost.tool.js +55 -7
- package/lib/services/agent/tools/extendVideo.tool.d.ts +26 -0
- package/lib/services/agent/tools/extendVideo.tool.d.ts.map +1 -0
- package/lib/services/agent/tools/extendVideo.tool.js +149 -0
- package/lib/services/agent/tools/generateScript.tool.d.ts +184 -0
- package/lib/services/agent/tools/generateScript.tool.d.ts.map +1 -0
- package/lib/services/agent/tools/generateScript.tool.js +123 -0
- package/lib/services/agent/tools/generateVideo.tool.d.ts +1 -0
- package/lib/services/agent/tools/generateVideo.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/generateVideo.tool.js +20 -1
- package/lib/services/agent/tools/index.d.ts +4 -0
- package/lib/services/agent/tools/index.d.ts.map +1 -1
- package/lib/services/agent/tools/index.js +4 -0
- package/lib/services/agent/tools/matchBrollToScript.tool.d.ts +50 -0
- package/lib/services/agent/tools/matchBrollToScript.tool.d.ts.map +1 -0
- package/lib/services/agent/tools/matchBrollToScript.tool.js +139 -0
- package/lib/services/agent/tools/planVideo.tool.d.ts +56 -0
- package/lib/services/agent/tools/planVideo.tool.d.ts.map +1 -1
- package/lib/services/agent/tools/planVideo.tool.js +3 -3
- package/lib/services/agent/tools/render.tool.d.ts +21 -0
- package/lib/services/agent/tools/render.tool.d.ts.map +1 -1
- package/lib/services/aiGen/aiGenFactory.service.d.ts.map +1 -1
- package/lib/services/aiGen/aiGenFactory.service.js +18 -3
- package/lib/services/aiGen/providers/anthropic/anthropic.service.d.ts +26 -0
- package/lib/services/aiGen/providers/anthropic/anthropic.service.d.ts.map +1 -0
- package/lib/services/aiGen/providers/anthropic/anthropic.service.js +95 -0
- package/lib/services/aiGen/providers/google/google.service.d.ts +24 -1
- package/lib/services/aiGen/providers/google/google.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/google/google.service.js +87 -243
- package/lib/services/aiGen/providers/google/googleErrors.d.ts +13 -0
- package/lib/services/aiGen/providers/google/googleErrors.d.ts.map +1 -0
- package/lib/services/aiGen/providers/google/googleErrors.js +102 -0
- package/lib/services/aiGen/providers/google/googleFetch.d.ts +8 -0
- package/lib/services/aiGen/providers/google/googleFetch.d.ts.map +1 -0
- package/lib/services/aiGen/providers/google/googleFetch.js +96 -0
- package/lib/services/aiGen/providers/google/googleMusic.d.ts +15 -0
- package/lib/services/aiGen/providers/google/googleMusic.d.ts.map +1 -0
- package/lib/services/aiGen/providers/google/googleMusic.js +77 -0
- package/lib/services/aiGen/providers/kling/kling.service.d.ts +7 -3
- package/lib/services/aiGen/providers/kling/kling.service.d.ts.map +1 -1
- package/lib/services/aiGen/providers/kling/kling.service.js +23 -367
- package/lib/services/aiGen/providers/kling/klingCredits.d.ts +9 -0
- package/lib/services/aiGen/providers/kling/klingCredits.d.ts.map +1 -0
- package/lib/services/aiGen/providers/kling/klingCredits.js +63 -0
- package/lib/services/aiGen/providers/kling/klingRequests.d.ts +32 -0
- package/lib/services/aiGen/providers/kling/klingRequests.d.ts.map +1 -0
- package/lib/services/aiGen/providers/kling/klingRequests.js +194 -0
- package/lib/services/aiGen/providers/kling/klingStatus.d.ts +16 -0
- package/lib/services/aiGen/providers/kling/klingStatus.d.ts.map +1 -0
- package/lib/services/aiGen/providers/kling/klingStatus.js +173 -0
- package/lib/services/bullmq.service.d.ts +61 -0
- package/lib/services/bullmq.service.d.ts.map +1 -1
- package/lib/services/bullmq.service.js +101 -1
- package/lib/services/crypto/index.d.ts +2 -0
- package/lib/services/crypto/index.d.ts.map +1 -0
- package/lib/services/crypto/index.js +17 -0
- package/lib/services/crypto/tokenVault.d.ts +47 -0
- package/lib/services/crypto/tokenVault.d.ts.map +1 -0
- package/lib/services/crypto/tokenVault.js +179 -0
- package/lib/services/editor/captionStyleHint.d.ts +3 -0
- package/lib/services/editor/captionStyleHint.d.ts.map +1 -0
- package/lib/services/editor/captionStyleHint.js +112 -0
- package/lib/services/editor/planToProject.d.ts +7 -66
- package/lib/services/editor/planToProject.d.ts.map +1 -1
- package/lib/services/editor/planToProject.helpers.d.ts +40 -0
- package/lib/services/editor/planToProject.helpers.d.ts.map +1 -0
- package/lib/services/editor/planToProject.helpers.js +177 -0
- package/lib/services/editor/planToProject.js +197 -180
- package/lib/services/editor/planToProject.types.d.ts +94 -0
- package/lib/services/editor/planToProject.types.d.ts.map +1 -0
- package/lib/services/editor/planToProject.types.js +2 -0
- package/lib/services/firestore.service.d.ts +5 -0
- package/lib/services/firestore.service.d.ts.map +1 -1
- package/lib/services/firestore.service.js +13 -0
- package/lib/services/index.d.ts +12 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +12 -0
- package/lib/services/promptEnhancer/index.d.ts +18 -0
- package/lib/services/promptEnhancer/index.d.ts.map +1 -0
- package/lib/services/promptEnhancer/index.js +33 -0
- package/lib/services/promptEnhancer/models.d.ts +54 -0
- package/lib/services/promptEnhancer/models.d.ts.map +1 -0
- package/lib/services/promptEnhancer/models.js +37 -0
- package/lib/services/promptEnhancer/profiles/agent.profile.d.ts +14 -0
- package/lib/services/promptEnhancer/profiles/agent.profile.d.ts.map +1 -0
- package/lib/services/promptEnhancer/profiles/agent.profile.js +40 -0
- package/lib/services/promptEnhancer/profiles/avatar.profile.d.ts +13 -0
- package/lib/services/promptEnhancer/profiles/avatar.profile.d.ts.map +1 -0
- package/lib/services/promptEnhancer/profiles/avatar.profile.js +40 -0
- package/lib/services/promptEnhancer/profiles/base.d.ts +28 -0
- package/lib/services/promptEnhancer/profiles/base.d.ts.map +1 -0
- package/lib/services/promptEnhancer/profiles/base.js +35 -0
- package/lib/services/promptEnhancer/profiles/image.profile.d.ts +11 -0
- package/lib/services/promptEnhancer/profiles/image.profile.d.ts.map +1 -0
- package/lib/services/promptEnhancer/profiles/image.profile.js +42 -0
- package/lib/services/promptEnhancer/profiles/index.d.ts +12 -0
- package/lib/services/promptEnhancer/profiles/index.d.ts.map +1 -0
- package/lib/services/promptEnhancer/profiles/index.js +33 -0
- package/lib/services/promptEnhancer/profiles/video.profile.d.ts +15 -0
- package/lib/services/promptEnhancer/profiles/video.profile.d.ts.map +1 -0
- package/lib/services/promptEnhancer/profiles/video.profile.js +81 -0
- package/lib/services/promptEnhancer/promptEnhancer.service.d.ts +45 -0
- package/lib/services/promptEnhancer/promptEnhancer.service.d.ts.map +1 -0
- package/lib/services/promptEnhancer/promptEnhancer.service.js +157 -0
- package/lib/services/promptEnhancer/schema.d.ts +19 -0
- package/lib/services/promptEnhancer/schema.d.ts.map +1 -0
- package/lib/services/promptEnhancer/schema.js +43 -0
- package/lib/services/promptEnhancer/types.d.ts +112 -0
- package/lib/services/promptEnhancer/types.d.ts.map +1 -0
- package/lib/services/promptEnhancer/types.js +2 -0
- package/lib/services/socialAI/captionGen.d.ts +81 -0
- package/lib/services/socialAI/captionGen.d.ts.map +1 -0
- package/lib/services/socialAI/captionGen.js +206 -0
- package/lib/services/socialAI/hookScore.d.ts +85 -0
- package/lib/services/socialAI/hookScore.d.ts.map +1 -0
- package/lib/services/socialAI/hookScore.js +170 -0
- package/lib/services/socialAI/index.d.ts +3 -0
- package/lib/services/socialAI/index.d.ts.map +1 -0
- package/lib/services/socialAI/index.js +18 -0
- package/lib/services/socialAccounts/index.d.ts +2 -0
- package/lib/services/socialAccounts/index.d.ts.map +1 -0
- package/lib/services/socialAccounts/index.js +17 -0
- package/lib/services/socialAccounts/socialAccountService.d.ts +25 -0
- package/lib/services/socialAccounts/socialAccountService.d.ts.map +1 -0
- package/lib/services/socialAccounts/socialAccountService.js +105 -0
- package/lib/services/socialEngage/factory.d.ts +7 -0
- package/lib/services/socialEngage/factory.d.ts.map +1 -0
- package/lib/services/socialEngage/factory.js +25 -0
- package/lib/services/socialEngage/index.d.ts +6 -0
- package/lib/services/socialEngage/index.d.ts.map +1 -0
- package/lib/services/socialEngage/index.js +21 -0
- package/lib/services/socialEngage/meta.engage.d.ts +17 -0
- package/lib/services/socialEngage/meta.engage.d.ts.map +1 -0
- package/lib/services/socialEngage/meta.engage.js +128 -0
- package/lib/services/socialEngage/metaWebhook.d.ts +50 -0
- package/lib/services/socialEngage/metaWebhook.d.ts.map +1 -0
- package/lib/services/socialEngage/metaWebhook.js +93 -0
- package/lib/services/socialEngage/types.d.ts +72 -0
- package/lib/services/socialEngage/types.d.ts.map +1 -0
- package/lib/services/socialEngage/types.js +10 -0
- package/lib/services/socialEngage/youtube.engage.d.ts +9 -0
- package/lib/services/socialEngage/youtube.engage.d.ts.map +1 -0
- package/lib/services/socialEngage/youtube.engage.js +87 -0
- package/lib/services/socialFormat/aspectGeometry.d.ts +74 -0
- package/lib/services/socialFormat/aspectGeometry.d.ts.map +1 -0
- package/lib/services/socialFormat/aspectGeometry.js +135 -0
- package/lib/services/socialFormat/index.d.ts +2 -0
- package/lib/services/socialFormat/index.d.ts.map +1 -0
- package/lib/services/socialFormat/index.js +19 -0
- package/lib/services/socialInsights/index.d.ts +3 -0
- package/lib/services/socialInsights/index.d.ts.map +1 -0
- package/lib/services/socialInsights/index.js +18 -0
- package/lib/services/socialInsights/recommendations.d.ts +131 -0
- package/lib/services/socialInsights/recommendations.d.ts.map +1 -0
- package/lib/services/socialInsights/recommendations.js +277 -0
- package/lib/services/socialInsights/timeBuckets.d.ts +35 -0
- package/lib/services/socialInsights/timeBuckets.d.ts.map +1 -0
- package/lib/services/socialInsights/timeBuckets.js +78 -0
- package/lib/services/socialMetrics/factory.d.ts +5 -0
- package/lib/services/socialMetrics/factory.d.ts.map +1 -0
- package/lib/services/socialMetrics/factory.js +24 -0
- package/lib/services/socialMetrics/index.d.ts +6 -0
- package/lib/services/socialMetrics/index.d.ts.map +1 -0
- package/lib/services/socialMetrics/index.js +21 -0
- package/lib/services/socialMetrics/meta.metrics.d.ts +22 -0
- package/lib/services/socialMetrics/meta.metrics.d.ts.map +1 -0
- package/lib/services/socialMetrics/meta.metrics.js +137 -0
- package/lib/services/socialMetrics/tiktok.metrics.d.ts +8 -0
- package/lib/services/socialMetrics/tiktok.metrics.d.ts.map +1 -0
- package/lib/services/socialMetrics/tiktok.metrics.js +43 -0
- package/lib/services/socialMetrics/types.d.ts +54 -0
- package/lib/services/socialMetrics/types.d.ts.map +1 -0
- package/lib/services/socialMetrics/types.js +2 -0
- package/lib/services/socialMetrics/youtube.metrics.d.ts +8 -0
- package/lib/services/socialMetrics/youtube.metrics.d.ts.map +1 -0
- package/lib/services/socialMetrics/youtube.metrics.js +43 -0
- package/lib/services/socialOAuth/factory.d.ts +7 -0
- package/lib/services/socialOAuth/factory.d.ts.map +1 -0
- package/lib/services/socialOAuth/factory.js +42 -0
- package/lib/services/socialOAuth/index.d.ts +11 -0
- package/lib/services/socialOAuth/index.d.ts.map +1 -0
- package/lib/services/socialOAuth/index.js +26 -0
- package/lib/services/socialOAuth/linkedin.oauth.d.ts +14 -0
- package/lib/services/socialOAuth/linkedin.oauth.d.ts.map +1 -0
- package/lib/services/socialOAuth/linkedin.oauth.js +127 -0
- package/lib/services/socialOAuth/meta.oauth.d.ts +31 -0
- package/lib/services/socialOAuth/meta.oauth.d.ts.map +1 -0
- package/lib/services/socialOAuth/meta.oauth.js +214 -0
- package/lib/services/socialOAuth/oauthState.d.ts +14 -0
- package/lib/services/socialOAuth/oauthState.d.ts.map +1 -0
- package/lib/services/socialOAuth/oauthState.js +66 -0
- package/lib/services/socialOAuth/pinterest.oauth.d.ts +15 -0
- package/lib/services/socialOAuth/pinterest.oauth.d.ts.map +1 -0
- package/lib/services/socialOAuth/pinterest.oauth.js +126 -0
- package/lib/services/socialOAuth/threads.oauth.d.ts +14 -0
- package/lib/services/socialOAuth/threads.oauth.d.ts.map +1 -0
- package/lib/services/socialOAuth/threads.oauth.js +129 -0
- package/lib/services/socialOAuth/tiktok.oauth.d.ts +15 -0
- package/lib/services/socialOAuth/tiktok.oauth.d.ts.map +1 -0
- package/lib/services/socialOAuth/tiktok.oauth.js +151 -0
- package/lib/services/socialOAuth/types.d.ts +67 -0
- package/lib/services/socialOAuth/types.d.ts.map +1 -0
- package/lib/services/socialOAuth/types.js +2 -0
- package/lib/services/socialOAuth/x.oauth.d.ts +17 -0
- package/lib/services/socialOAuth/x.oauth.d.ts.map +1 -0
- package/lib/services/socialOAuth/x.oauth.js +134 -0
- package/lib/services/socialOAuth/youtube.oauth.d.ts +15 -0
- package/lib/services/socialOAuth/youtube.oauth.d.ts.map +1 -0
- package/lib/services/socialOAuth/youtube.oauth.js +156 -0
- package/lib/services/socialPublish/factory.d.ts +5 -0
- package/lib/services/socialPublish/factory.d.ts.map +1 -0
- package/lib/services/socialPublish/factory.js +32 -0
- package/lib/services/socialPublish/index.d.ts +10 -0
- package/lib/services/socialPublish/index.d.ts.map +1 -0
- package/lib/services/socialPublish/index.js +25 -0
- package/lib/services/socialPublish/linkedin.publish.d.ts +9 -0
- package/lib/services/socialPublish/linkedin.publish.d.ts.map +1 -0
- package/lib/services/socialPublish/linkedin.publish.js +143 -0
- package/lib/services/socialPublish/meta.publish.d.ts +28 -0
- package/lib/services/socialPublish/meta.publish.d.ts.map +1 -0
- package/lib/services/socialPublish/meta.publish.js +149 -0
- package/lib/services/socialPublish/pinterest.publish.d.ts +13 -0
- package/lib/services/socialPublish/pinterest.publish.d.ts.map +1 -0
- package/lib/services/socialPublish/pinterest.publish.js +130 -0
- package/lib/services/socialPublish/threads.publish.d.ts +12 -0
- package/lib/services/socialPublish/threads.publish.d.ts.map +1 -0
- package/lib/services/socialPublish/threads.publish.js +96 -0
- package/lib/services/socialPublish/tiktok.publish.d.ts +13 -0
- package/lib/services/socialPublish/tiktok.publish.d.ts.map +1 -0
- package/lib/services/socialPublish/tiktok.publish.js +118 -0
- package/lib/services/socialPublish/types.d.ts +47 -0
- package/lib/services/socialPublish/types.d.ts.map +1 -0
- package/lib/services/socialPublish/types.js +2 -0
- package/lib/services/socialPublish/x.publish.d.ts +12 -0
- package/lib/services/socialPublish/x.publish.d.ts.map +1 -0
- package/lib/services/socialPublish/x.publish.js +147 -0
- package/lib/services/socialPublish/youtube.publish.d.ts +9 -0
- package/lib/services/socialPublish/youtube.publish.d.ts.map +1 -0
- package/lib/services/socialPublish/youtube.publish.js +107 -0
- package/lib/services/stock/index.d.ts +2 -0
- package/lib/services/stock/index.d.ts.map +1 -0
- package/lib/services/stock/index.js +17 -0
- package/lib/services/stock/realPersonSafety.d.ts +99 -0
- package/lib/services/stock/realPersonSafety.d.ts.map +1 -0
- package/lib/services/stock/realPersonSafety.js +248 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +1 -0
- package/lib/utils/renderTier.d.ts +26 -0
- package/lib/utils/renderTier.d.ts.map +1 -0
- package/lib/utils/renderTier.js +34 -0
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* - critic : vision QA across scenes, rubric-following
|
|
10
10
|
* - reference : ingest a TikTok/Reel URL, extract structure
|
|
11
11
|
*
|
|
12
|
-
* The actual LLM call is delegated to an injected LlmCaller (
|
|
13
|
-
*
|
|
12
|
+
* The actual LLM call is delegated to an injected LlmCaller (the native
|
|
13
|
+
* ProviderRoutingLlmCaller wired at the host layer) — this keeps the
|
|
14
14
|
* agent code provider-agnostic and easy to A/B test against the eval set.
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -21,32 +21,46 @@ exports.DEFAULT_MODEL_ROUTING = {
|
|
|
21
21
|
planner: { modelId: "claude-sonnet-4-6", provider: "anthropic" },
|
|
22
22
|
executor: { modelId: "claude-haiku-4-5", provider: "anthropic" },
|
|
23
23
|
// Critic rubrics today (continuity / consistency / voSync / costVsTier)
|
|
24
|
-
// are pure perception + structured-output tasks
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
//
|
|
24
|
+
// are pure perception + structured-output tasks. Gemini 3.5 Flash is the
|
|
25
|
+
// current Flash tier (q4/s4) — stronger on perception than 2.5 Flash and
|
|
26
|
+
// still far cheaper than Sonnet on vision. Cost note: 3.5 Flash bills
|
|
27
|
+
// ~5× the 2.5 Flash rate ($1.50/$9 vs $0.30/$2.50 per 1M), so per-scene
|
|
28
|
+
// critic spend rises accordingly; if that bites at volume, drop back to
|
|
29
|
+
// "gemini-2.5-flash" (the cost-optimal option). The brand-safety rubric is
|
|
30
|
+
// parked; when it returns, route only that axis to Sonnet (policy slice).
|
|
29
31
|
critic: {
|
|
30
|
-
modelId: "gemini-
|
|
32
|
+
modelId: "gemini-3.5-flash",
|
|
31
33
|
provider: "google",
|
|
32
34
|
vision: true,
|
|
33
35
|
},
|
|
36
|
+
// Reference ingest (TikTok/Reel → structure) is low-volume and benefits
|
|
37
|
+
// from the strongest Pro vision. Gemini 3.1 Pro is the current top Gemini.
|
|
34
38
|
reference: {
|
|
35
|
-
modelId: "gemini-
|
|
39
|
+
modelId: "gemini-3.1-pro",
|
|
36
40
|
provider: "google",
|
|
37
41
|
vision: true,
|
|
38
42
|
},
|
|
39
43
|
},
|
|
40
44
|
fallback: {
|
|
41
|
-
router: { modelId: "gpt-5-mini", provider: "openai" },
|
|
42
|
-
planner: { modelId: "gpt-5", provider: "openai" },
|
|
43
|
-
executor
|
|
45
|
+
router: { modelId: "gpt-5.4-mini", provider: "openai" },
|
|
46
|
+
planner: { modelId: "gpt-5.5", provider: "openai" },
|
|
47
|
+
// executor fallback repointed off DeepSeek → OpenAI mini when the native
|
|
48
|
+
// provider callers replaced the Vercel AI Gateway (we ship native callers
|
|
49
|
+
// only for anthropic/openai/google; the dispatcher throws on "deepseek").
|
|
50
|
+
// gpt-5.4-mini is the current cheap fast tier + handles the executor's
|
|
51
|
+
// mechanical tool-routing. See LLM_NATIVE_MIGRATION_PLAN decision #1.
|
|
52
|
+
// REMOVED FOR v2 — kept for reference:
|
|
53
|
+
// executor: { modelId: "deepseek-chat", provider: "deepseek" },
|
|
54
|
+
// PRIOR (retired ids): router/executor gpt-5-mini, planner gpt-5.
|
|
55
|
+
executor: { modelId: "gpt-5.4-mini", provider: "openai" },
|
|
44
56
|
// Sonnet is the Critic fallback — it costs more but is the safest
|
|
45
57
|
// bet when Flash refuses or returns malformed structured output.
|
|
46
58
|
critic: { modelId: "claude-sonnet-4-6", provider: "anthropic", vision: true },
|
|
47
59
|
reference: { modelId: "claude-sonnet-4-6", provider: "anthropic" },
|
|
48
60
|
},
|
|
49
|
-
|
|
61
|
+
// Opus 4.8 is the current top Opus tier (4.7 is now legacy). Premium briefs
|
|
62
|
+
// route the planner here.
|
|
63
|
+
premiumPlanner: { modelId: "claude-opus-4-8", provider: "anthropic" },
|
|
50
64
|
};
|
|
51
65
|
class ModelRouter {
|
|
52
66
|
constructor(policy = exports.DEFAULT_MODEL_ROUTING) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { Project } from "../../schemas/project.schema";
|
|
1
|
+
import type { Clip, Project } from "../../schemas/project.schema";
|
|
2
|
+
import type { RegenComponent } from "../credits/pricing";
|
|
2
3
|
/**
|
|
3
4
|
* planMutations — Stage 7-prep helper for the agent permission flow.
|
|
4
5
|
*
|
|
@@ -43,4 +44,56 @@ export declare function findClipsNeedingPermission(currentProject: Project | nul
|
|
|
43
44
|
* straight through.
|
|
44
45
|
*/
|
|
45
46
|
export declare function requiresUserConfirmation(currentProject: Project | null | undefined): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Stage 7 (lock enforcement) — the clips from `currentProject` that a
|
|
49
|
+
* regeneration must NOT overwrite: every protected clip (locked or
|
|
50
|
+
* user-placed) whose id the user did NOT explicitly approve to mutate.
|
|
51
|
+
*
|
|
52
|
+
* `allowedMutations` is the set of clip ids the user OK'd in the
|
|
53
|
+
* confirmation modal (echoed back through /execute-confirmed → the run
|
|
54
|
+
* doc → the job payload). A protected clip absent from that set is frozen:
|
|
55
|
+
* planToProject reuses it verbatim instead of rebuilding it from
|
|
56
|
+
* plan+outcome, because the user's edits (trim, volume, text, position)
|
|
57
|
+
* live only on the clip object — they're nowhere in the plan, so a rebuild
|
|
58
|
+
* would silently discard them.
|
|
59
|
+
*
|
|
60
|
+
* Returns `[]` when there's no prior project (first run on an empty canvas)
|
|
61
|
+
* or nothing is protected — the common path, a clean no-op.
|
|
62
|
+
*/
|
|
63
|
+
export declare function computePreservedClips(currentProject: Project | null | undefined, allowedMutations?: readonly string[]): Clip[];
|
|
64
|
+
/** Per-scene sets of asset kinds whose generation can be skipped on regen. */
|
|
65
|
+
export interface FrozenScenes {
|
|
66
|
+
/** Scene indices whose visual clip(s) are preserved — skip provider gen. */
|
|
67
|
+
visual: Set<number>;
|
|
68
|
+
/** Scene indices whose voiceover clip is preserved — skip TTS. */
|
|
69
|
+
voiceover: Set<number>;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Gap #1 follow-up (skip-generation) — derive, from the preserved clips, which
|
|
73
|
+
* scenes don't need their assets regenerated at all. A preserved visual means
|
|
74
|
+
* the user froze that scene's footage, so re-running the (expensive) provider
|
|
75
|
+
* gen just to discard the result is pure waste; same for a preserved VO and
|
|
76
|
+
* the TTS call. The executor consults these sets to short-circuit the tool
|
|
77
|
+
* dispatch, and planToProject uses `visual` to skip building a placeholder twin
|
|
78
|
+
* (the real preserved clip is injected verbatim instead).
|
|
79
|
+
*
|
|
80
|
+
* Keyed off the deterministic clip-id contract so it stays in lockstep with the
|
|
81
|
+
* ids planToProject emits (and the ids the preserve-override matches on).
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* Gap #5 (diff-based bulk regen, lock-safety) — true if a regen target would
|
|
85
|
+
* overwrite a frozen (locked / user-edited) scene asset, so callers can drop it
|
|
86
|
+
* before charging or executing. The bulk diff (`diffPlans`) is plan-field based
|
|
87
|
+
* and lock-blind: a re-plan that rewrote a locked scene's prompt would emit a
|
|
88
|
+
* `visual` target for it, and running that would clobber the footage the user
|
|
89
|
+
* deliberately froze in the editor. Visual targets are gated by `frozen.visual`;
|
|
90
|
+
* voiceover AND captions by `frozen.voiceover` (captions are derived from the VO
|
|
91
|
+
* audio, so a locked VO keeps its captions too). Overlays/music aren't tracked
|
|
92
|
+
* by the frozen-scene model (they're separate clips), so they pass through.
|
|
93
|
+
*/
|
|
94
|
+
export declare function isRegenTargetFrozen(target: {
|
|
95
|
+
component: RegenComponent;
|
|
96
|
+
sceneIndex?: number;
|
|
97
|
+
}, frozen: FrozenScenes): boolean;
|
|
98
|
+
export declare function computeFrozenScenes(preserveClips: readonly Clip[]): FrozenScenes;
|
|
46
99
|
//# sourceMappingURL=planMutations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"planMutations.d.ts","sourceRoot":"","sources":["../../../src/services/agent/planMutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"planMutations.d.ts","sourceRoot":"","sources":["../../../src/services/agent/planMutations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGzD;;;;;;;;;;;;;;;;GAgBG;AAEH,uFAAuF;AACvF,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,MAAM,CAG7D,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,qFAAqF;IACrF,QAAQ,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5E,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,MAAM,EAAE,cAAc,CAAC;IACvB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAyDD;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GACzC,gBAAgB,EAAE,CAgBpB;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,GACzC,OAAO,CAET;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CACnC,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EAC1C,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,GACnC,IAAI,EAAE,CAMR;AAQD,8EAA8E;AAC9E,MAAM,WAAW,YAAY;IAC3B,4EAA4E;IAC5E,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,kEAAkE;IAClE,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACxB;AAED;;;;;;;;;;;GAWG;AACH;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE;IAAE,SAAS,EAAE,cAAc,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,EAC1D,MAAM,EAAE,YAAY,GACnB,OAAO,CAOT;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,SAAS,IAAI,EAAE,GAAG,YAAY,CAahF"}
|
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.USER_PLACED_PROVENANCE_SOURCES = void 0;
|
|
4
4
|
exports.findClipsNeedingPermission = findClipsNeedingPermission;
|
|
5
5
|
exports.requiresUserConfirmation = requiresUserConfirmation;
|
|
6
|
+
exports.computePreservedClips = computePreservedClips;
|
|
7
|
+
exports.isRegenTargetFrozen = isRegenTargetFrozen;
|
|
8
|
+
exports.computeFrozenScenes = computeFrozenScenes;
|
|
6
9
|
const planToProject_1 = require("../editor/planToProject");
|
|
7
10
|
/**
|
|
8
11
|
* planMutations — Stage 7-prep helper for the agent permission flow.
|
|
@@ -118,3 +121,78 @@ function findClipsNeedingPermission(currentProject) {
|
|
|
118
121
|
function requiresUserConfirmation(currentProject) {
|
|
119
122
|
return findClipsNeedingPermission(currentProject).length > 0;
|
|
120
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Stage 7 (lock enforcement) — the clips from `currentProject` that a
|
|
126
|
+
* regeneration must NOT overwrite: every protected clip (locked or
|
|
127
|
+
* user-placed) whose id the user did NOT explicitly approve to mutate.
|
|
128
|
+
*
|
|
129
|
+
* `allowedMutations` is the set of clip ids the user OK'd in the
|
|
130
|
+
* confirmation modal (echoed back through /execute-confirmed → the run
|
|
131
|
+
* doc → the job payload). A protected clip absent from that set is frozen:
|
|
132
|
+
* planToProject reuses it verbatim instead of rebuilding it from
|
|
133
|
+
* plan+outcome, because the user's edits (trim, volume, text, position)
|
|
134
|
+
* live only on the clip object — they're nowhere in the plan, so a rebuild
|
|
135
|
+
* would silently discard them.
|
|
136
|
+
*
|
|
137
|
+
* Returns `[]` when there's no prior project (first run on an empty canvas)
|
|
138
|
+
* or nothing is protected — the common path, a clean no-op.
|
|
139
|
+
*/
|
|
140
|
+
function computePreservedClips(currentProject, allowedMutations) {
|
|
141
|
+
if (!currentProject)
|
|
142
|
+
return [];
|
|
143
|
+
const approved = new Set(allowedMutations ?? []);
|
|
144
|
+
return currentProject.clips.filter((clip) => isProtected(clip) !== null && !approved.has(clip.id));
|
|
145
|
+
}
|
|
146
|
+
// Deterministic clip-id shapes emitted by planToProject. A frozen visual can
|
|
147
|
+
// be a single clip (`scene-3-visual`) or an extend-chain (`scene-3-visual-0`,
|
|
148
|
+
// `-1`, …); both map back to the same scene. VO is always a single clip.
|
|
149
|
+
const VISUAL_CLIP_ID_RE = /^scene-(\d+)-visual(?:-\d+)?$/;
|
|
150
|
+
const VOICEOVER_CLIP_ID_RE = /^scene-(\d+)-vo$/;
|
|
151
|
+
/**
|
|
152
|
+
* Gap #1 follow-up (skip-generation) — derive, from the preserved clips, which
|
|
153
|
+
* scenes don't need their assets regenerated at all. A preserved visual means
|
|
154
|
+
* the user froze that scene's footage, so re-running the (expensive) provider
|
|
155
|
+
* gen just to discard the result is pure waste; same for a preserved VO and
|
|
156
|
+
* the TTS call. The executor consults these sets to short-circuit the tool
|
|
157
|
+
* dispatch, and planToProject uses `visual` to skip building a placeholder twin
|
|
158
|
+
* (the real preserved clip is injected verbatim instead).
|
|
159
|
+
*
|
|
160
|
+
* Keyed off the deterministic clip-id contract so it stays in lockstep with the
|
|
161
|
+
* ids planToProject emits (and the ids the preserve-override matches on).
|
|
162
|
+
*/
|
|
163
|
+
/**
|
|
164
|
+
* Gap #5 (diff-based bulk regen, lock-safety) — true if a regen target would
|
|
165
|
+
* overwrite a frozen (locked / user-edited) scene asset, so callers can drop it
|
|
166
|
+
* before charging or executing. The bulk diff (`diffPlans`) is plan-field based
|
|
167
|
+
* and lock-blind: a re-plan that rewrote a locked scene's prompt would emit a
|
|
168
|
+
* `visual` target for it, and running that would clobber the footage the user
|
|
169
|
+
* deliberately froze in the editor. Visual targets are gated by `frozen.visual`;
|
|
170
|
+
* voiceover AND captions by `frozen.voiceover` (captions are derived from the VO
|
|
171
|
+
* audio, so a locked VO keeps its captions too). Overlays/music aren't tracked
|
|
172
|
+
* by the frozen-scene model (they're separate clips), so they pass through.
|
|
173
|
+
*/
|
|
174
|
+
function isRegenTargetFrozen(target, frozen) {
|
|
175
|
+
if (typeof target.sceneIndex !== "number")
|
|
176
|
+
return false;
|
|
177
|
+
if (target.component === "visual")
|
|
178
|
+
return frozen.visual.has(target.sceneIndex);
|
|
179
|
+
if (target.component === "voiceover" || target.component === "captions") {
|
|
180
|
+
return frozen.voiceover.has(target.sceneIndex);
|
|
181
|
+
}
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
function computeFrozenScenes(preserveClips) {
|
|
185
|
+
const visual = new Set();
|
|
186
|
+
const voiceover = new Set();
|
|
187
|
+
for (const clip of preserveClips) {
|
|
188
|
+
const v = VISUAL_CLIP_ID_RE.exec(clip.id);
|
|
189
|
+
if (v) {
|
|
190
|
+
visual.add(Number(v[1]));
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
const vo = VOICEOVER_CLIP_ID_RE.exec(clip.id);
|
|
194
|
+
if (vo)
|
|
195
|
+
voiceover.add(Number(vo[1]));
|
|
196
|
+
}
|
|
197
|
+
return { visual, voiceover };
|
|
198
|
+
}
|
|
@@ -86,22 +86,5 @@ export declare class Planner {
|
|
|
86
86
|
/** Free-form caller hint, e.g. "punchier CTA" or "drop the watermark". */
|
|
87
87
|
instruction?: string;
|
|
88
88
|
}): Promise<TextOverlay[]>;
|
|
89
|
-
private buildMessages;
|
|
90
89
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Heuristic — does the brief mention real-world entities that benefit from
|
|
93
|
-
* web grounding? A planner without research will happily invent fake app
|
|
94
|
-
* names, fabricate statistics, and miss real-world brand details. Triggers
|
|
95
|
-
* when the brief contains:
|
|
96
|
-
* - explicit "top N / best / popular / list of" framings
|
|
97
|
-
* - proper-noun-heavy briefs (≥2 capitalized non-sentence-start words)
|
|
98
|
-
* - listicle/comparison/news/review keywords
|
|
99
|
-
* - explicit time markers ("2026", "latest", "this year", "recent")
|
|
100
|
-
* - statistics signals ("statistics", "data", "percent", "study")
|
|
101
|
-
*
|
|
102
|
-
* Deliberately conservative — false negatives are fine (we just skip the
|
|
103
|
-
* search), false positives waste $0.01 per planner call. Override via
|
|
104
|
-
* `useWebResearch: true|false` when the caller knows better.
|
|
105
|
-
*/
|
|
106
|
-
export declare function briefNeedsWebResearch(brief: VideoBrief): boolean;
|
|
107
90
|
//# sourceMappingURL=Planner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Planner.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/planner/Planner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Planner.d.ts","sourceRoot":"","sources":["../../../../src/services/agent/planner/Planner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAoB,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,SAAS,EAEV,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAkB7C;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,SAAS,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,OAAO;IAIN,OAAO,CAAC,QAAQ,CAAC,IAAI;IAHjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;gBAEP,IAAI,EAAE,cAAc;IAK3C,IAAI,CACR,KAAK,EAAE,UAAU,EACjB,IAAI,GAAE;QACJ,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;QACjC,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;QACvC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAChC;;;;;;WAMG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;KAC9B,GACL,OAAO,CAAC,SAAS,CAAC;IAyQrB;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAK,EAAE,UAAU,EACjB,IAAI,GAAE;QACJ,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;QACjC,WAAW,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;QACvC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;KAC5B,GACL;QAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;KAAE;IAqEhE;;;;;;;;;;;;;;;;OAgBG;IACG,0BAA0B,CAC9B,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,UAAU,EACjB,IAAI,GAAE;QACJ,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;QACjC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAChC,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,0EAA0E;QAC1E,WAAW,CAAC,EAAE,MAAM,CAAC;KACjB,GACL,OAAO,CAAC,WAAW,EAAE,CAAC;CAQ1B"}
|