vidspotai-shared 1.0.82 → 1.0.84
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 +96 -244
- 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
|
@@ -90,8 +90,18 @@ export declare enum EMusicGenModels {
|
|
|
90
90
|
GOOGLE_LYRIA_3_PRO = "google-lyria-3-pro"
|
|
91
91
|
}
|
|
92
92
|
export declare enum ETextGenModels {
|
|
93
|
+
OPENAI_GPT_5_5 = "openai-gpt-5.5",
|
|
94
|
+
OPENAI_GPT_5_4_MINI = "openai-gpt-5.4-mini",
|
|
95
|
+
OPENAI_GPT_5_MINI = "openai-gpt-5-mini",
|
|
93
96
|
OPENAI_GPT_4O_MINI = "openai-gpt-4o-mini",
|
|
94
|
-
|
|
97
|
+
ANTHROPIC_CLAUDE_FABLE_5 = "anthropic-claude-fable-5",
|
|
98
|
+
ANTHROPIC_CLAUDE_OPUS_4_8 = "anthropic-claude-opus-4-8",
|
|
99
|
+
ANTHROPIC_CLAUDE_SONNET_4_6 = "anthropic-claude-sonnet-4-6",
|
|
100
|
+
ANTHROPIC_CLAUDE_HAIKU_4_5 = "anthropic-claude-haiku-4-5",
|
|
101
|
+
GOOGLE_GEMINI_3_5_FLASH = "google-gemini-3.5-flash",
|
|
102
|
+
GOOGLE_GEMINI_3_1_PRO = "google-gemini-3.1-pro",
|
|
103
|
+
GOOGLE_GEMINI_2_5_FLASH = "google-gemini-2.5-flash",
|
|
104
|
+
GOOGLE_GEMINI_2_5_PRO = "google-gemini-2.5-pro"
|
|
95
105
|
}
|
|
96
106
|
/**
|
|
97
107
|
* Sound-effects-generation models. Synchronous — providers return audio in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,0BAA0B,+BAA+B;IACzD,+BAA+B,oCAAoC;IACnE,0BAA0B,+BAA+B;IACzD,sBAAsB,2BAA2B;IACjD,2BAA2B,gCAAgC;IAC3D,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,mBAAmB,wBAAwB;IAC3C,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;IACvC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAE7B,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAE3C,oBAAoB,yBAAyB;IAE7C,cAAc,mBAAmB;IACjC,uBAAuB,4BAA4B;IACnD,kBAAkB,uBAAuB;IACzC,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,m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|
|
116
116
|
var ETextGenModels;
|
|
117
117
|
(function (ETextGenModels) {
|
|
118
|
-
|
|
118
|
+
// ── OpenAI ──────────────────────────────────────────────────────────────
|
|
119
|
+
// gpt-5.5 = current frontier; gpt-5.4-mini = current fast/cheap tier.
|
|
120
|
+
// gpt-5-mini / gpt-4o-mini kept as still-available older tiers.
|
|
121
|
+
ETextGenModels["OPENAI_GPT_5_5"] = "openai-gpt-5.5";
|
|
122
|
+
ETextGenModels["OPENAI_GPT_5_4_MINI"] = "openai-gpt-5.4-mini";
|
|
119
123
|
ETextGenModels["OPENAI_GPT_5_MINI"] = "openai-gpt-5-mini";
|
|
124
|
+
ETextGenModels["OPENAI_GPT_4O_MINI"] = "openai-gpt-4o-mini";
|
|
125
|
+
// ── Anthropic ───────────────────────────────────────────────────────────
|
|
126
|
+
// Native Anthropic text-gen (LLM_NATIVE_MIGRATION_PLAN Phase 6) — makes the
|
|
127
|
+
// aiGen text factory model-agnostic across all three providers, mirroring the
|
|
128
|
+
// agent LlmCaller's provider set. Each key needs a config in aiModelConfigs
|
|
129
|
+
// and a service in textServicesMap (aiGenFactory.service.ts).
|
|
130
|
+
// fable-5 = most-capable widely-released (Mythos-class, GA 2026-06-09);
|
|
131
|
+
// opus-4-8 = top Opus tier; sonnet-4-6 / haiku-4-5 = balanced / fast.
|
|
132
|
+
ETextGenModels["ANTHROPIC_CLAUDE_FABLE_5"] = "anthropic-claude-fable-5";
|
|
133
|
+
ETextGenModels["ANTHROPIC_CLAUDE_OPUS_4_8"] = "anthropic-claude-opus-4-8";
|
|
134
|
+
ETextGenModels["ANTHROPIC_CLAUDE_SONNET_4_6"] = "anthropic-claude-sonnet-4-6";
|
|
135
|
+
ETextGenModels["ANTHROPIC_CLAUDE_HAIKU_4_5"] = "anthropic-claude-haiku-4-5";
|
|
136
|
+
// ── Google ──────────────────────────────────────────────────────────────
|
|
137
|
+
// gemini-3.5-flash = current frontier Flash (stable); gemini-3.1-pro = latest
|
|
138
|
+
// Pro (preview id). gemini-2.5-flash/pro kept as still-available older tiers.
|
|
139
|
+
ETextGenModels["GOOGLE_GEMINI_3_5_FLASH"] = "google-gemini-3.5-flash";
|
|
140
|
+
ETextGenModels["GOOGLE_GEMINI_3_1_PRO"] = "google-gemini-3.1-pro";
|
|
141
|
+
ETextGenModels["GOOGLE_GEMINI_2_5_FLASH"] = "google-gemini-2.5-flash";
|
|
142
|
+
ETextGenModels["GOOGLE_GEMINI_2_5_PRO"] = "google-gemini-2.5-pro";
|
|
120
143
|
})(ETextGenModels || (exports.ETextGenModels = ETextGenModels = {}));
|
|
121
144
|
/**
|
|
122
145
|
* Sound-effects-generation models. Synchronous — providers return audio in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAavC,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAAW,EAAE,YAAY,CAWvB,CAAC;AAEvC,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAE9C,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAMnE,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD"}
|
|
@@ -27,6 +27,7 @@ const minimax_1 = require("./providers/minimax");
|
|
|
27
27
|
const openai_1 = require("./providers/openai");
|
|
28
28
|
const alibaba_1 = require("./providers/alibaba");
|
|
29
29
|
const elevenlabs_1 = require("./providers/elevenlabs");
|
|
30
|
+
const anthropic_1 = require("./providers/anthropic");
|
|
30
31
|
exports.aiModelConfigs = {
|
|
31
32
|
...pixverse_1.pixverseConfigs,
|
|
32
33
|
...bytedance_1.bytedanceConfigs,
|
|
@@ -37,6 +38,7 @@ exports.aiModelConfigs = {
|
|
|
37
38
|
...openai_1.openaiConfigs,
|
|
38
39
|
...alibaba_1.alibabaConfigs,
|
|
39
40
|
...elevenlabs_1.elevenlabsConfigs,
|
|
41
|
+
...anthropic_1.anthropicConfigs,
|
|
40
42
|
};
|
|
41
43
|
__exportStar(require("./tierHelpers"), exports);
|
|
42
44
|
__exportStar(require("./providers/pixverseTemplates"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TAiGenModel } from "../enums";
|
|
2
|
+
import { IModelSchema } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Anthropic text-gen configs for the aiGen text factory
|
|
5
|
+
* (LLM_NATIVE_MIGRATION_PLAN Phase 6). Mirrors the agent LlmCaller's Anthropic
|
|
6
|
+
* model set so plain text-gen (social compose / scene prep) can pick Claude.
|
|
7
|
+
* modelId is the native @anthropic-ai/sdk model id; maxOutputTokens feeds the
|
|
8
|
+
* SDK's required `max_tokens`. No video/image/music here — Anthropic is
|
|
9
|
+
* text-only in our stack.
|
|
10
|
+
*/
|
|
11
|
+
export declare const anthropicConfigs: Partial<Record<TAiGenModel, IModelSchema>>;
|
|
12
|
+
//# sourceMappingURL=anthropic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/anthropic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CA+EvE,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.anthropicConfigs = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Anthropic text-gen configs for the aiGen text factory
|
|
6
|
+
* (LLM_NATIVE_MIGRATION_PLAN Phase 6). Mirrors the agent LlmCaller's Anthropic
|
|
7
|
+
* model set so plain text-gen (social compose / scene prep) can pick Claude.
|
|
8
|
+
* modelId is the native @anthropic-ai/sdk model id; maxOutputTokens feeds the
|
|
9
|
+
* SDK's required `max_tokens`. No video/image/music here — Anthropic is
|
|
10
|
+
* text-only in our stack.
|
|
11
|
+
*/
|
|
12
|
+
exports.anthropicConfigs = {
|
|
13
|
+
// Claude Fable 5 — Anthropic's most capable widely-released model (Mythos-
|
|
14
|
+
// class, GA on the API 2026-06-09). 1M ctx / 128k output, always-on adaptive
|
|
15
|
+
// thinking. modelId is the dateless pinned-snapshot alias.
|
|
16
|
+
"anthropic-claude-fable-5": {
|
|
17
|
+
modelId: "claude-fable-5",
|
|
18
|
+
type: ["text-to-text", "image-to-text"],
|
|
19
|
+
fields: {
|
|
20
|
+
prompt: { required: true },
|
|
21
|
+
maxOutputTokens: { default: 128000 },
|
|
22
|
+
contextWindowSize: { default: 1000000 },
|
|
23
|
+
temperature: { default: 1.0 },
|
|
24
|
+
},
|
|
25
|
+
cost: { inputPer1MTokens: 10.0, outputPer1MTokens: 50.0 },
|
|
26
|
+
guidance: {
|
|
27
|
+
quality: 5,
|
|
28
|
+
speed: 2,
|
|
29
|
+
bestFor: "The most demanding reasoning + long-horizon agentic work (always-on adaptive thinking, 1M ctx).",
|
|
30
|
+
notes: "Anthropic's most capable widely-released model. Most expensive text tier — use sparingly.",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
// Claude Opus 4.8 — top Opus tier for complex reasoning / agentic work
|
|
34
|
+
// (released 2026-05-28). 1M ctx / 128k output.
|
|
35
|
+
"anthropic-claude-opus-4-8": {
|
|
36
|
+
modelId: "claude-opus-4-8",
|
|
37
|
+
type: ["text-to-text", "image-to-text"],
|
|
38
|
+
fields: {
|
|
39
|
+
prompt: { required: true },
|
|
40
|
+
maxOutputTokens: { default: 128000 },
|
|
41
|
+
contextWindowSize: { default: 1000000 },
|
|
42
|
+
temperature: { default: 1.0 },
|
|
43
|
+
},
|
|
44
|
+
cost: { inputPer1MTokens: 5.0, outputPer1MTokens: 25.0 },
|
|
45
|
+
guidance: {
|
|
46
|
+
quality: 5,
|
|
47
|
+
speed: 2,
|
|
48
|
+
bestFor: "Complex reasoning and long-horizon agentic coding.",
|
|
49
|
+
notes: "Top Opus tier. Half the price of Fable 5 — the default high-capability choice.",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
// Claude Sonnet 4.6 — best speed/intelligence balance. 1M ctx / 64k output.
|
|
53
|
+
"anthropic-claude-sonnet-4-6": {
|
|
54
|
+
modelId: "claude-sonnet-4-6",
|
|
55
|
+
type: ["text-to-text", "image-to-text"],
|
|
56
|
+
fields: {
|
|
57
|
+
prompt: { required: true },
|
|
58
|
+
maxOutputTokens: { default: 64000 },
|
|
59
|
+
contextWindowSize: { default: 1000000 },
|
|
60
|
+
temperature: { default: 1.0 },
|
|
61
|
+
},
|
|
62
|
+
cost: { inputPer1MTokens: 3.0, outputPer1MTokens: 15.0 },
|
|
63
|
+
guidance: {
|
|
64
|
+
quality: 4,
|
|
65
|
+
speed: 4,
|
|
66
|
+
bestFor: "Best speed/intelligence balance — the default workhorse for structured planning.",
|
|
67
|
+
notes: "Supports extended + adaptive thinking. 1M-token context.",
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
// Claude Haiku 4.5 — fastest, near-frontier. 200k ctx / 64k output.
|
|
71
|
+
"anthropic-claude-haiku-4-5": {
|
|
72
|
+
modelId: "claude-haiku-4-5",
|
|
73
|
+
type: ["text-to-text", "image-to-text"],
|
|
74
|
+
fields: {
|
|
75
|
+
prompt: { required: true },
|
|
76
|
+
maxOutputTokens: { default: 64000 },
|
|
77
|
+
contextWindowSize: { default: 200000 },
|
|
78
|
+
temperature: { default: 1.0 },
|
|
79
|
+
},
|
|
80
|
+
cost: { inputPer1MTokens: 1.0, outputPer1MTokens: 5.0 },
|
|
81
|
+
guidance: {
|
|
82
|
+
quality: 3,
|
|
83
|
+
speed: 5,
|
|
84
|
+
bestFor: "Fastest near-frontier model — classification, routing, high-volume cheap calls.",
|
|
85
|
+
notes: "Supports extended thinking. 200k ctx (vs 1M on Sonnet/Opus).",
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/google.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CA4ZpE,CAAC"}
|
|
@@ -2,6 +2,88 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.googleConfigs = void 0;
|
|
4
4
|
exports.googleConfigs = {
|
|
5
|
+
// ───────────────────────────────────────────────────────────────────────
|
|
6
|
+
// Text-gen — Gemini (aiGen text factory; @google/genai generateContent).
|
|
7
|
+
// Same provider set the agent LlmCaller routes so the two systems stay
|
|
8
|
+
// coherent. modelId is the native @google/genai model name. Gemini 3.x is the
|
|
9
|
+
// current frontier (1M ctx); the 2.5 pair is kept as still-available fallback.
|
|
10
|
+
// ───────────────────────────────────────────────────────────────────────
|
|
11
|
+
// Gemini 3.5 Flash — current frontier Flash (stable), beats 3.1 Pro on
|
|
12
|
+
// coding/agentic benches. 1M input ctx / 64k output.
|
|
13
|
+
"google-gemini-3.5-flash": {
|
|
14
|
+
modelId: "gemini-3.5-flash",
|
|
15
|
+
type: ["text-to-text", "image-to-text"],
|
|
16
|
+
fields: {
|
|
17
|
+
prompt: { required: true },
|
|
18
|
+
maxOutputTokens: { default: 65536 },
|
|
19
|
+
contextWindowSize: { default: 1048576 },
|
|
20
|
+
temperature: { default: 1.0 },
|
|
21
|
+
topP: { default: 1.0 },
|
|
22
|
+
},
|
|
23
|
+
cost: { inputPer1MTokens: 1.5, outputPer1MTokens: 9.0 },
|
|
24
|
+
guidance: {
|
|
25
|
+
quality: 4,
|
|
26
|
+
speed: 4,
|
|
27
|
+
bestFor: "Frontier-Flash agentic/coding + vision at low cost; 1M ctx. Beats 3.1 Pro on coding/agentic benches.",
|
|
28
|
+
notes: "Current frontier Flash (stable). Strong default for perception/vision (e.g. critic) at a fraction of Pro cost.",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
// Gemini 3.1 Pro — latest Pro tier (preview model id). 1M input ctx / 64k
|
|
32
|
+
// output. No stable dateless id yet — `-preview` is the callable id.
|
|
33
|
+
"google-gemini-3.1-pro": {
|
|
34
|
+
modelId: "gemini-3.1-pro-preview",
|
|
35
|
+
type: ["text-to-text", "image-to-text"],
|
|
36
|
+
fields: {
|
|
37
|
+
prompt: { required: true },
|
|
38
|
+
maxOutputTokens: { default: 65536 },
|
|
39
|
+
contextWindowSize: { default: 1048576 },
|
|
40
|
+
temperature: { default: 1.0 },
|
|
41
|
+
topP: { default: 1.0 },
|
|
42
|
+
},
|
|
43
|
+
cost: { inputPer1MTokens: 2.0, outputPer1MTokens: 12.0 },
|
|
44
|
+
guidance: {
|
|
45
|
+
quality: 5,
|
|
46
|
+
speed: 3,
|
|
47
|
+
bestFor: "Top multimodal reasoning over very large context (1M ctx) + vision.",
|
|
48
|
+
notes: "Latest Pro tier (preview id). Paid-only. Pricier than 3.5 Flash — use when Flash isn't enough.",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
"google-gemini-2.5-flash": {
|
|
52
|
+
modelId: "gemini-2.5-flash",
|
|
53
|
+
type: ["text-to-text", "image-to-text"],
|
|
54
|
+
fields: {
|
|
55
|
+
prompt: { required: true },
|
|
56
|
+
maxOutputTokens: { default: 8192 },
|
|
57
|
+
contextWindowSize: { default: 1048576 },
|
|
58
|
+
temperature: { default: 1.0 },
|
|
59
|
+
topP: { default: 1.0 },
|
|
60
|
+
},
|
|
61
|
+
cost: { inputPer1MTokens: 0.3, outputPer1MTokens: 2.5 },
|
|
62
|
+
guidance: {
|
|
63
|
+
quality: 3,
|
|
64
|
+
speed: 5,
|
|
65
|
+
bestFor: "Cheapest high-volume perception/vision (e.g. critic rubrics) and structured output.",
|
|
66
|
+
notes: "Older tier but still the cheapest Gemini — ~5× cheaper input than 3.5 Flash. Kept for cost-sensitive paths.",
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
"google-gemini-2.5-pro": {
|
|
70
|
+
modelId: "gemini-2.5-pro",
|
|
71
|
+
type: ["text-to-text", "image-to-text"],
|
|
72
|
+
fields: {
|
|
73
|
+
prompt: { required: true },
|
|
74
|
+
maxOutputTokens: { default: 65536 },
|
|
75
|
+
contextWindowSize: { default: 1048576 },
|
|
76
|
+
temperature: { default: 1.0 },
|
|
77
|
+
topP: { default: 1.0 },
|
|
78
|
+
},
|
|
79
|
+
cost: { inputPer1MTokens: 1.25, outputPer1MTokens: 10.0 },
|
|
80
|
+
guidance: {
|
|
81
|
+
quality: 4,
|
|
82
|
+
speed: 3,
|
|
83
|
+
bestFor: "Pro-grade multimodal reasoning at lower cost than 3.1 Pro.",
|
|
84
|
+
notes: "Older Pro tier. Standard rate shown; >200k-token prompts are billed at a higher tier.",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
5
87
|
"google-veo-3.1": {
|
|
6
88
|
modelId: "veo-3.1-generate-preview",
|
|
7
89
|
type: ["text-to-video", "image-to-video"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/openai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,
|
|
1
|
+
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../../src/globals/aiModels/providers/openai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAmOpE,CAAC"}
|
|
@@ -136,17 +136,49 @@ exports.openaiConfigs = {
|
|
|
136
136
|
cost: { fixed: 0.01 },
|
|
137
137
|
},
|
|
138
138
|
// --- Text models ---
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
// gpt-5.5 = current frontier (1.05M ctx / 128k output); gpt-5.4-mini =
|
|
140
|
+
// current fast/cheap tier (400k ctx / 128k output). gpt-5-mini & gpt-4o-mini
|
|
141
|
+
// kept below as still-available older tiers.
|
|
142
|
+
"openai-gpt-5.5": {
|
|
143
|
+
modelId: "gpt-5.5",
|
|
141
144
|
type: ["text-to-text", "image-to-text"],
|
|
142
145
|
fields: {
|
|
143
146
|
prompt: { required: true },
|
|
144
|
-
maxOutputTokens: { default:
|
|
145
|
-
contextWindowSize: { default:
|
|
147
|
+
maxOutputTokens: { default: 128000 },
|
|
148
|
+
contextWindowSize: { default: 1050000 },
|
|
146
149
|
temperature: { default: 1.0 },
|
|
147
150
|
topP: { default: 1.0 },
|
|
148
151
|
frequencyPenalty: { default: 0.0 },
|
|
149
152
|
presencePenalty: { default: 0.0 },
|
|
153
|
+
reasoningEffort: { default: "medium" }, // 'minimal' | 'low' | 'medium' | 'high'
|
|
154
|
+
},
|
|
155
|
+
cost: { inputPer1MTokens: 5.0, cachedInputPer1MTokens: 0.5, outputPer1MTokens: 30.0 },
|
|
156
|
+
guidance: {
|
|
157
|
+
quality: 5,
|
|
158
|
+
speed: 2,
|
|
159
|
+
bestFor: "Hardest reasoning, coding/debugging, agentic tool use, long-document analysis.",
|
|
160
|
+
notes: "Current OpenAI frontier. Priciest of the text tier — reserve for genuinely hard work.",
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
"openai-gpt-5.4-mini": {
|
|
164
|
+
modelId: "gpt-5.4-mini",
|
|
165
|
+
type: ["text-to-text", "image-to-text"],
|
|
166
|
+
fields: {
|
|
167
|
+
prompt: { required: true },
|
|
168
|
+
maxOutputTokens: { default: 128000 },
|
|
169
|
+
contextWindowSize: { default: 400000 },
|
|
170
|
+
temperature: { default: 1.0 },
|
|
171
|
+
topP: { default: 1.0 },
|
|
172
|
+
frequencyPenalty: { default: 0.0 },
|
|
173
|
+
presencePenalty: { default: 0.0 },
|
|
174
|
+
reasoningEffort: { default: "medium" }, // 'minimal' | 'low' | 'medium' | 'high'
|
|
175
|
+
},
|
|
176
|
+
cost: { inputPer1MTokens: 0.75, cachedInputPer1MTokens: 0.075, outputPer1MTokens: 4.5 },
|
|
177
|
+
guidance: {
|
|
178
|
+
quality: 3,
|
|
179
|
+
speed: 4,
|
|
180
|
+
bestFor: "Fast, cheap coding, computer-use and sub-agent loops at high volume.",
|
|
181
|
+
notes: "Current OpenAI fast tier — supersedes gpt-5-mini.",
|
|
150
182
|
},
|
|
151
183
|
},
|
|
152
184
|
"openai-gpt-5-mini": {
|
|
@@ -162,5 +194,32 @@ exports.openaiConfigs = {
|
|
|
162
194
|
presencePenalty: { default: 0.0 },
|
|
163
195
|
reasoningEffort: { default: "medium" }, // 'minimal' | 'low' | 'medium' | 'high'
|
|
164
196
|
},
|
|
197
|
+
cost: { inputPer1MTokens: 0.125, outputPer1MTokens: 1.0 },
|
|
198
|
+
guidance: {
|
|
199
|
+
quality: 3,
|
|
200
|
+
speed: 4,
|
|
201
|
+
bestFor: "Cheap reasoning-capable tier for routing/extraction.",
|
|
202
|
+
notes: "Older tier — prefer gpt-5.4-mini (stronger at similar latency). Kept for compatibility.",
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
"openai-gpt-4o-mini": {
|
|
206
|
+
modelId: "gpt-4o-mini",
|
|
207
|
+
type: ["text-to-text", "image-to-text"],
|
|
208
|
+
fields: {
|
|
209
|
+
prompt: { required: true },
|
|
210
|
+
maxOutputTokens: { default: 16384 },
|
|
211
|
+
contextWindowSize: { default: 128000 },
|
|
212
|
+
temperature: { default: 1.0 },
|
|
213
|
+
topP: { default: 1.0 },
|
|
214
|
+
frequencyPenalty: { default: 0.0 },
|
|
215
|
+
presencePenalty: { default: 0.0 },
|
|
216
|
+
},
|
|
217
|
+
cost: { inputPer1MTokens: 0.15, cachedInputPer1MTokens: 0.075, outputPer1MTokens: 0.6 },
|
|
218
|
+
guidance: {
|
|
219
|
+
quality: 2,
|
|
220
|
+
speed: 5,
|
|
221
|
+
bestFor: "Cheapest tier — simple classification, extraction, formatting.",
|
|
222
|
+
notes: "Legacy (no reasoning). Use only for trivial, high-volume calls.",
|
|
223
|
+
},
|
|
165
224
|
},
|
|
166
225
|
};
|
|
@@ -24,6 +24,18 @@ export declare function getModelsByType(type: GenerationType): ModelMatch[];
|
|
|
24
24
|
* tier so the planner's default tendency aligns with cost minimization.
|
|
25
25
|
*/
|
|
26
26
|
export declare function summarizeModelsForPlanner(type?: GenerationType): string;
|
|
27
|
+
/**
|
|
28
|
+
* AG-6: best-effort credit estimate for ONE generated clip of `durationSeconds`,
|
|
29
|
+
* derived from the model's REAL cost block in `aiModelConfigs` rather than the
|
|
30
|
+
* coarse per-tier coefficient. USD → credits at the canonical `USD_PER_CREDIT`
|
|
31
|
+
* rate, with NO per-op floor (estimate_cost sums many clips inside a single
|
|
32
|
+
* render — applying the 10-credit floor per clip would wildly over-estimate).
|
|
33
|
+
*
|
|
34
|
+
* Returns `null` when the modelKey is unknown or the model declares no usable
|
|
35
|
+
* cost block, so the caller can fall back to the tier coefficient. Keyed on
|
|
36
|
+
* `clip.provenance.modelKey`. See `estimateCost.tool.ts`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function estimateModelCredits(modelKey: string, durationSeconds: number): number | null;
|
|
27
39
|
/**
|
|
28
40
|
* AG-15: returns the allowed scene durations (seconds) for a given modelKey,
|
|
29
41
|
* or null if the model has no duration constraint declared. Used by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tierHelpers.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/tierHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"tierHelpers.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/tierHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGzD,OAAO,KAAK,EAAE,cAAc,EAAc,YAAY,EAAE,MAAM,SAAS,CAAC;AAExE;;;GAGG;AAEH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,kFAAkF;AAClF,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,UAAU,EAAE,CAQ/E;AAED,+FAA+F;AAC/F,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,cAAc,GACnB,UAAU,GAAG,SAAS,CAIxB;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,UAAU,EAAE,CAMlE;AAQD;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,GAAE,cAAgC,GACrC,MAAM,CAeR;AA6BD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,eAAe,EAAE,MAAM,GACtB,MAAM,GAAG,IAAI,CASf;AA2DD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAU1E"}
|
|
@@ -4,8 +4,10 @@ exports.getModelsByTier = getModelsByTier;
|
|
|
4
4
|
exports.getCheapestModel = getCheapestModel;
|
|
5
5
|
exports.getModelsByType = getModelsByType;
|
|
6
6
|
exports.summarizeModelsForPlanner = summarizeModelsForPlanner;
|
|
7
|
+
exports.estimateModelCredits = estimateModelCredits;
|
|
7
8
|
exports.getModelAllowedDurations = getModelAllowedDurations;
|
|
8
9
|
const index_1 = require("./index");
|
|
10
|
+
const creditUnit_1 = require("../creditUnit");
|
|
9
11
|
/** Return every model whose tier matches. Optionally filter by GenerationType. */
|
|
10
12
|
function getModelsByTier(tier, type) {
|
|
11
13
|
const matches = [];
|
|
@@ -95,6 +97,87 @@ function formatDurations(c) {
|
|
|
95
97
|
return `dur:${first}-${last}s`;
|
|
96
98
|
return `dur:[${sorted.join(",")}]s`;
|
|
97
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* AG-6: best-effort credit estimate for ONE generated clip of `durationSeconds`,
|
|
102
|
+
* derived from the model's REAL cost block in `aiModelConfigs` rather than the
|
|
103
|
+
* coarse per-tier coefficient. USD → credits at the canonical `USD_PER_CREDIT`
|
|
104
|
+
* rate, with NO per-op floor (estimate_cost sums many clips inside a single
|
|
105
|
+
* render — applying the 10-credit floor per clip would wildly over-estimate).
|
|
106
|
+
*
|
|
107
|
+
* Returns `null` when the modelKey is unknown or the model declares no usable
|
|
108
|
+
* cost block, so the caller can fall back to the tier coefficient. Keyed on
|
|
109
|
+
* `clip.provenance.modelKey`. See `estimateCost.tool.ts`.
|
|
110
|
+
*/
|
|
111
|
+
function estimateModelCredits(modelKey, durationSeconds) {
|
|
112
|
+
const cfg = index_1.aiModelConfigs[modelKey];
|
|
113
|
+
if (!cfg?.cost)
|
|
114
|
+
return null;
|
|
115
|
+
const usd = estimateModelUsd(cfg, Math.max(0, durationSeconds));
|
|
116
|
+
if (usd == null)
|
|
117
|
+
return null;
|
|
118
|
+
if (usd <= 0)
|
|
119
|
+
return 0;
|
|
120
|
+
return Math.ceil(usd / creditUnit_1.USD_PER_CREDIT);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Resolve a model's USD cost for a clip of `seconds`, in priority order:
|
|
124
|
+
* 1. `perSecond` — scales cleanly to any clip length (most accurate basis).
|
|
125
|
+
* 2. `table` — resolution/mode × duration → total cost; pick the entry
|
|
126
|
+
* whose declared duration is closest to this clip.
|
|
127
|
+
* 3. `fixed` — flat per-generation cost.
|
|
128
|
+
* Non-standard cost shapes (e.g. Kling's `perMode` / `audio`/`noAudio` splits)
|
|
129
|
+
* fall through to `perSecond`/`fixed` if present, else return null → tier
|
|
130
|
+
* fallback. This is a planner-side ESTIMATE; the worker reconciles against the
|
|
131
|
+
* provider's exact `getCreditUsed()` after generation.
|
|
132
|
+
*/
|
|
133
|
+
function estimateModelUsd(cfg, seconds) {
|
|
134
|
+
const cost = cfg.cost;
|
|
135
|
+
if (!cost)
|
|
136
|
+
return null;
|
|
137
|
+
if (typeof cost.perSecond === "number")
|
|
138
|
+
return cost.perSecond * seconds;
|
|
139
|
+
if (cost.table) {
|
|
140
|
+
const usd = pickClosestFromCostTable(cost.table, seconds);
|
|
141
|
+
if (usd != null)
|
|
142
|
+
return usd;
|
|
143
|
+
}
|
|
144
|
+
if (typeof cost.fixed === "number")
|
|
145
|
+
return cost.fixed;
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* From a `{ mode/resolution: { duration: totalUsd } }` table, return the cost
|
|
150
|
+
* at the declared duration closest to `seconds`, averaged across modes that
|
|
151
|
+
* share that closest duration. Deterministic and unbiased (no cheapest-mode
|
|
152
|
+
* skew). Returns null for an empty/garbage table.
|
|
153
|
+
*/
|
|
154
|
+
function pickClosestFromCostTable(table, seconds) {
|
|
155
|
+
let bestDist = Number.POSITIVE_INFINITY;
|
|
156
|
+
let sum = 0;
|
|
157
|
+
let count = 0;
|
|
158
|
+
for (const modeKey of Object.keys(table)) {
|
|
159
|
+
const durs = table[modeKey];
|
|
160
|
+
if (!durs)
|
|
161
|
+
continue;
|
|
162
|
+
for (const dStr of Object.keys(durs)) {
|
|
163
|
+
const d = Number(dStr);
|
|
164
|
+
const usd = durs[d];
|
|
165
|
+
if (!Number.isFinite(d) || typeof usd !== "number")
|
|
166
|
+
continue;
|
|
167
|
+
const dist = Math.abs(d - seconds);
|
|
168
|
+
if (dist < bestDist) {
|
|
169
|
+
bestDist = dist;
|
|
170
|
+
sum = usd;
|
|
171
|
+
count = 1;
|
|
172
|
+
}
|
|
173
|
+
else if (dist === bestDist) {
|
|
174
|
+
sum += usd;
|
|
175
|
+
count += 1;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return count > 0 ? sum / count : null;
|
|
180
|
+
}
|
|
98
181
|
/**
|
|
99
182
|
* AG-15: returns the allowed scene durations (seconds) for a given modelKey,
|
|
100
183
|
* or null if the model has no duration constraint declared. Used by the
|
|
@@ -90,10 +90,29 @@ export interface IModelSchema {
|
|
|
90
90
|
cost?: {
|
|
91
91
|
perSecond?: number;
|
|
92
92
|
per1KTokens?: number;
|
|
93
|
+
inputPer1MTokens?: number;
|
|
94
|
+
outputPer1MTokens?: number;
|
|
95
|
+
cachedInputPer1MTokens?: number;
|
|
93
96
|
table?: ICostTable;
|
|
94
97
|
fixed?: number;
|
|
95
98
|
[key: string]: any;
|
|
96
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* Model-selection guidance for the agent / coding agent. Lets a caller pick
|
|
102
|
+
* the right model for a task without hardcoding tradeoffs. All optional —
|
|
103
|
+
* context-window and output-token limits live in `fields`
|
|
104
|
+
* (contextWindowSize / maxOutputTokens) and are not duplicated here.
|
|
105
|
+
*/
|
|
106
|
+
guidance?: {
|
|
107
|
+
/** Relative reasoning/output quality, 1 (basic) – 5 (frontier). */
|
|
108
|
+
quality?: number;
|
|
109
|
+
/** Relative latency/throughput, 1 (slow) – 5 (fastest). */
|
|
110
|
+
speed?: number;
|
|
111
|
+
/** One-line "reach for this when…" hint. */
|
|
112
|
+
bestFor?: string;
|
|
113
|
+
/** Caveats / when to avoid / legacy status. */
|
|
114
|
+
notes?: string;
|
|
115
|
+
};
|
|
97
116
|
/** Required when type includes "avatar-video". Contains all avatar-specific constraints. */
|
|
98
117
|
avatar?: IAvatarModelConfig;
|
|
99
118
|
/** MIME types accepted for image input (e.g. ["image/jpeg", "image/png"]). If absent, all formats are allowed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,M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C,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE;QACL,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/globals/aiModels/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAEzD,MAAM,MAAM,cAAc,GACtB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,aAAa,GACb,eAAe,GACf,eAAe,CAAC;AAEpB;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,wFAAwF;IACxF,gBAAgB,EAAE,MAAM,CAAC;IACzB,gDAAgD;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,kEAAkE;IAClE,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;A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