@gaia-framework/backend-core 7.0.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/build/openapi/openapi.json +502 -2
- package/build/openapi/openapi.yaml +362 -9
- package/build/openapi/voice-media-worker.json +1 -1
- package/build/openapi/voice-media-worker.yaml +1 -1
- package/build/openapi/worker-health.json +1 -1
- package/build/openapi/worker-health.yaml +1 -1
- package/build/src/config/schema.d.ts +87 -0
- package/build/src/config/schema.d.ts.map +1 -1
- package/build/src/config/schema.js +57 -1
- package/build/src/config/schema.js.map +1 -1
- package/build/src/core/application/dtos/llms/responses/LLMInfoDto.d.ts +2 -1
- package/build/src/core/application/dtos/llms/responses/LLMInfoDto.d.ts.map +1 -1
- package/build/src/core/application/mappers/llms/LLMInfoMapper.d.ts.map +1 -1
- package/build/src/core/application/mappers/llms/LLMInfoMapper.js +2 -0
- package/build/src/core/application/mappers/llms/LLMInfoMapper.js.map +1 -1
- package/build/src/core/application/services/media/VideoGenerationRequestService.js +2 -2
- package/build/src/core/application/services/media/VideoGenerationRequestService.js.map +1 -1
- package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts.map +1 -1
- package/build/src/core/application/services/runs/RunAppServiceImpl.js +16 -4
- package/build/src/core/application/services/runs/RunAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/tasks/ScheduledRunDispatchService.d.ts.map +1 -1
- package/build/src/core/application/services/tasks/ScheduledRunDispatchService.js +9 -2
- package/build/src/core/application/services/tasks/ScheduledRunDispatchService.js.map +1 -1
- package/build/src/core/application/services/voice/session/VoiceContextService.js +1 -1
- package/build/src/core/application/services/voice/session/VoiceContextService.js.map +1 -1
- package/build/src/core/domain/models/llms/LLMInfo.d.ts +2 -1
- package/build/src/core/domain/models/llms/LLMInfo.d.ts.map +1 -1
- package/build/src/core/domain/models/runs/RunApproval.d.ts +1 -1
- package/build/src/core/domain/models/runs/RunApproval.d.ts.map +1 -1
- package/build/src/core/domain/models/runs/RunApproval.js.map +1 -1
- package/build/src/core/domain/models/speech/Transcription.d.ts +1 -0
- package/build/src/core/domain/models/speech/Transcription.d.ts.map +1 -1
- package/build/src/core/domain/models/videos/VideoGenerationRequest.d.ts +2 -0
- package/build/src/core/domain/models/videos/VideoGenerationRequest.d.ts.map +1 -1
- package/build/src/core/domain/models/videos/VideoGenerationRequest.js +5 -1
- package/build/src/core/domain/models/videos/VideoGenerationRequest.js.map +1 -1
- package/build/src/core/domain/services/chat/ConversationContextService.d.ts +1 -1
- package/build/src/core/domain/services/chat/ConversationContextService.d.ts.map +1 -1
- package/build/src/core/domain/services/chat/ConversationContextServiceImpl.d.ts +1 -1
- package/build/src/core/domain/services/chat/ConversationContextServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/chat/ConversationContextServiceImpl.js +12 -3
- package/build/src/core/domain/services/chat/ConversationContextServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js +4 -1
- package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/chat/VideoInputPolicy.d.ts +5 -0
- package/build/src/core/domain/services/chat/VideoInputPolicy.d.ts.map +1 -0
- package/build/src/core/domain/services/chat/VideoInputPolicy.js +14 -0
- package/build/src/core/domain/services/chat/VideoInputPolicy.js.map +1 -0
- package/build/src/core/domain/services/media/TranscriptionPolicy.js +1 -1
- package/build/src/core/domain/services/media/TranscriptionPolicy.js.map +1 -1
- package/build/src/core/domain/services/models/ModelServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/models/ModelServiceImpl.js +4 -2
- package/build/src/core/domain/services/models/ModelServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts.map +1 -1
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js +4 -2
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js.map +1 -1
- package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.d.ts +8 -0
- package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.js +16 -0
- package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.js.map +1 -0
- package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.d.ts +2 -3
- package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.js +42 -17
- package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.js.map +1 -1
- package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.d.ts +15 -0
- package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.js +21 -0
- package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.d.ts +36 -0
- package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.js +108 -0
- package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.d.ts +3 -3
- package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.js +36 -25
- package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.d.ts +12 -0
- package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.js +97 -0
- package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/context/codecs/RunMediaContextCodecs.js +3 -1
- package/build/src/core/infrastructure/ai/llm/context/codecs/RunMediaContextCodecs.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.d.ts +12 -0
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.js +46 -0
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.d.ts +24 -0
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.js +100 -0
- package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.d.ts +53 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.js +178 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.d.ts +19 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.js +59 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.d.ts +8 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.js +72 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.d.ts +28 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.js +117 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.d.ts +44 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.js +148 -0
- package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.d.ts +6 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.js +47 -37
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.d.ts +3 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.js +16 -8
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.d.ts +12 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.js +12 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js +6 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.js +12 -6
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js +3 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.js +14 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.d.ts +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.js +2 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.d.ts +19 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.js +170 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.d.ts +4 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.js +42 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.d.ts +25 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.js +106 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts +5 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js +37 -5
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts +2 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js +4 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js +2 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts +6 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js +29 -12
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js +2 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts +13 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js +22 -9
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.d.ts +10 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.js +74 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.d.ts +25 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.js +104 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.d.ts +40 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.js +39 -0
- package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.js +2 -30
- package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.d.ts +9 -0
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.js +87 -0
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.d.ts +2 -2
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.js +7 -10
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.d.ts +5 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.js +33 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.d.ts +13 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.js +95 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.d.ts +29 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.js +167 -0
- package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.d.ts +5 -0
- package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.js +26 -0
- package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.js.map +1 -0
- package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.d.ts +7 -7
- package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.js +159 -63
- package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.d.ts +6 -2
- package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.js +22 -13
- package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.d.ts +12 -6
- package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.js +64 -15
- package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.d.ts +15 -0
- package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.js +81 -0
- package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.d.ts +26 -0
- package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.js +80 -0
- package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.d.ts +20 -17
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.js +20 -9
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.d.ts +2 -1
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.js +6 -4
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.js.map +1 -1
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.js +24 -8
- package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.d.ts +2 -2
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js +2 -2
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.js +5 -4
- package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.js.map +1 -1
- package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.js +4 -1
- package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.js.map +1 -1
- package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.d.ts +18 -0
- package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.js +88 -0
- package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.d.ts +4 -2
- package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.js +109 -45
- package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.d.ts +10 -0
- package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.js +43 -0
- package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.js.map +1 -0
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.d.ts +3 -2
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.js +7 -7
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.js.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.js +4 -4
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.js.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.d.ts +3 -2
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.js +13 -4
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.js.map +1 -1
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.js +27 -23
- package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.js.map +1 -1
- package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.d.ts +14 -0
- package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.js +113 -0
- package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.js.map +1 -0
- package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.js +12 -2
- package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.d.ts +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.d.ts +36 -34
- package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.js +51 -17
- package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.d.ts +4 -0
- package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.d.ts.map +1 -0
- package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.js +4 -0
- package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.js.map +1 -0
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.js +1 -1
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/di/builtInLLMProviders.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/builtInLLMProviders.js +17 -2
- package/build/src/core/infrastructure/di/builtInLLMProviders.js.map +1 -1
- package/build/src/core/infrastructure/di/index.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/index.js +56 -8
- package/build/src/core/infrastructure/di/index.js.map +1 -1
- package/build/src/core/infrastructure/di/types.d.ts +1 -0
- package/build/src/core/infrastructure/di/types.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/types.js +1 -0
- package/build/src/core/infrastructure/di/types.js.map +1 -1
- package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.d.ts.map +1 -1
- package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.js +4 -6
- package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.js.map +1 -1
- package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.d.ts.map +1 -1
- package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.js +9 -0
- package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.js.map +1 -1
- package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.d.ts.map +1 -1
- package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.js +6 -0
- package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.js.map +1 -1
- package/build/src/core/infrastructure/services/audio/TranscriptionWav.js +1 -1
- package/build/src/core/infrastructure/services/audio/TranscriptionWav.js.map +1 -1
- package/build/src/core/infrastructure/services/chat/ProviderRequestUsage.js +1 -1
- package/build/src/core/infrastructure/services/chat/ProviderRequestUsage.js.map +1 -1
- package/build/src/core/infrastructure/services/runs/approval/RunToolInvocationLifecycleImpl.js +1 -0
- package/build/src/core/infrastructure/services/runs/approval/RunToolInvocationLifecycleImpl.js.map +1 -1
- package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.d.ts.map +1 -1
- package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.js +2 -1
- package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.js.map +1 -1
- package/build/src/modules/workspaces/infrastructure/recovery/operator/authority/observer/ExecutionSources.js +1 -1
- package/package.json +2 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts +0 -3
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js +0 -27
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleTtsProtocol.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B;QACE,EAAE,EAAE,kCAAkC;QACtC,aAAa,EAAE,2BAA2B;QAC1C,WAAW,EAAE,2BAA2B;QACxC,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,gBAAgB;QACtB,oBAAoB,EAAE,IAAI;KAC3B;IACD;QACE,EAAE,EAAE,6BAA6B;QACjC,aAAa,EAAE,sBAAsB;QACrC,WAAW,EAAE,sBAAsB;QACnC,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,gBAAgB;QACtB,oBAAoB,EAAE,IAAI;KAC3B;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,MAAM;IACN,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,YAAY;IACZ,SAAS;IACT,WAAW;IACX,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,YAAY;IACZ,WAAW;IACX,UAAU;IACV,SAAS;IACT,SAAS;IACT,QAAQ;IACR,aAAa;IACb,QAAQ;IACR,eAAe;IACf,cAAc;IACd,WAAW;IACX,YAAY;IACZ,SAAS;CACD,CAAC;AAEX,MAAM,UAAU,gBAAgB,CAC9B,IAAY,EACZ,KAAK,GAAG,MAAM,EACd,KAAc,EACd,YAAqB;
|
|
1
|
+
{"version":3,"file":"GoogleTtsProtocol.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAC5F,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AACnG,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEz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modality } from '@google/genai';
|
|
2
3
|
import { parentPort, workerData } from 'node:worker_threads';
|
|
3
|
-
import { boundedGoogleResponse, normalizeGoogleTtsError, parseGoogleTtsResponse, } from './GoogleTtsProtocol.js';
|
|
4
|
-
|
|
4
|
+
import { boundedGoogleResponse, decodeGoogleTtsAudio, normalizeGoogleTtsError, parseGoogleTtsResponse, } from './GoogleTtsProtocol.js';
|
|
5
|
+
import { SpeechSynthesisError } from '../../../../../domain/errors/SpeechSynthesisError.js';
|
|
6
|
+
const { connection, request } = workerData;
|
|
5
7
|
const originalFetch = globalThis.fetch;
|
|
6
8
|
let boundedFailure;
|
|
7
9
|
// Interactions has no public per-client fetch hook. This worker owns the
|
|
@@ -16,12 +18,26 @@ globalThis.fetch = async (...args) => {
|
|
|
16
18
|
}
|
|
17
19
|
};
|
|
18
20
|
try {
|
|
19
|
-
const client =
|
|
20
|
-
|
|
21
|
-
httpOptions: { apiVersion: 'v1beta', timeout: 120_000 },
|
|
21
|
+
const client = createGoogleGenAiClient(connection, {
|
|
22
|
+
httpOptions: { apiVersion: connection.kind === 'vertex' ? 'v1' : 'v1beta', timeout: 120_000, retryOptions: { attempts: 1 } },
|
|
22
23
|
});
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
let audio;
|
|
25
|
+
if (connection.kind === 'vertex') {
|
|
26
|
+
const { text, annotations } = request.input[0].content[0];
|
|
27
|
+
const response = await client.models.generateContent({
|
|
28
|
+
model: request.model,
|
|
29
|
+
contents: [{ role: 'user', parts: [{ text, ...(annotations && { speechMetadata: { style: annotations[0].style } }) }] }],
|
|
30
|
+
config: { responseModalities: [Modality.AUDIO], speechConfig: { voiceConfig: { voice: request.generation_config.speech_config[0].voice } } },
|
|
31
|
+
});
|
|
32
|
+
const audioParts = response.candidates?.[0]?.content?.parts?.flatMap(part => part.inlineData ? [part.inlineData] : []);
|
|
33
|
+
if (audioParts?.length !== 1)
|
|
34
|
+
throw new SpeechSynthesisError('invalid_output');
|
|
35
|
+
audio = decodeGoogleTtsAudio(audioParts[0].data, audioParts[0].mimeType);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
const response = await client.interactions.create(request, { timeout: 120_000, maxRetries: 0 });
|
|
39
|
+
audio = parseGoogleTtsResponse(response, request.model);
|
|
40
|
+
}
|
|
25
41
|
parentPort.postMessage({ audio });
|
|
26
42
|
}
|
|
27
43
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleTtsWorker.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GoogleTtsWorker.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAA8B,MAAM,0CAA0C,CAAC;AAC/G,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,GAEvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC;AAE5F,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,UAG/B,CAAC;AAEF,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC;AACvC,IAAI,cAAgD,CAAC;AAErD,yEAAyE;AACzE,qFAAqF;AACrF,UAAU,CAAC,KAAK,GAAG,KAAK,EAAE,GAAG,IAA8B,EAAE,EAAE;IAC7D,IAAI,CAAC;QACH,OAAO,MAAM,qBAAqB,CAAC,MAAM,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IACnE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,cAAc,GAA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AC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACvH,IAAI,UAAU,EAAE,MAAM,KAAK,CAAC;YAAE,MAAM,IAAI,oBAAoB,CAAC,gBAAgB,CAAC,CAAC;QAC/E,KAAK,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC3E,CAAC;SAAM,CAAC;QACN,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC;QAChG,KAAK,GAAG,sBAAsB,CAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAED,UAAW,CAAC,WAAW,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AACrC,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,UAAW,CAAC,WAAW,CAAC;QACtB,QAAQ,EAAE,CAAC,cAAc,IAAI,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;KACtE,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -39,7 +39,7 @@ let ImageEditingTool = class ImageEditingTool extends BaseTool {
|
|
|
39
39
|
prompt: { type: 'string', description: 'Requested changes and what must remain unchanged.' },
|
|
40
40
|
model: { type: 'string', enum: this.editing.getCapabilities().models.map(model => model.id), description: `Image editing model. Default: ${this.editing.getCapabilities().defaultModel}.` },
|
|
41
41
|
numberOfImages: { type: 'integer', minimum: 1, maximum: 4 },
|
|
42
|
-
size: { type: 'string', description: 'auto, 1024x1024, 1536x1024, or 1024x1536. FLUX 3.1 defaults to the first image’s dimensions and accepts exact sizes from 250000 to 16822272 pixels with aspect ratios up to 8:1. OpenAI GPT Image 2/2.5/2.6 static output additionally supports custom sizes: multiples of 16, edges <=3840, aspect ratio <=3:1, 655360 to 8294400 pixels. GIF uses auto or a listed preset. Meta uses preset aspect ratios.' },
|
|
42
|
+
size: { type: 'string', description: 'auto, 1024x1024, 1536x1024, or 1024x1536. FLUX 3.1 defaults to the first image’s dimensions and accepts exact sizes from 250000 to 16822272 pixels with aspect ratios up to 8:1. OpenAI GPT Image 2/2.5/2.6 static output additionally supports custom sizes: multiples of 16, edges <=3840, aspect ratio <=3:1, 655360 to 8294400 pixels. GIF uses auto or a listed preset. Qwen Image 3.0 supports 262144 to 4194304 pixels at up to 8:1. Meta uses preset aspect ratios.' },
|
|
43
43
|
}, required: ['inputMediaIds', 'prompt'], additionalProperties: false } },
|
|
44
44
|
approval: { mode: 'always', approvalCategory: 'external_action', summary: 'Send the selected images to the image editor and save new edited images',
|
|
45
45
|
mandatoryWhen: args => typeof args === 'object' && args !== null && 'maskMediaId' in args },
|
package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageEditingTool.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAG1F,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,QA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AAO,EAAE,CAAC,EAAE;4BAC3D,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"ImageEditingTool.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AACxF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAG1F,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,QAAQ;IAG2B;IACnB;IAH3C,EAAE,GAAG,cAAc,CAAC;IACpB,WAAW,GAAG,sEAAsE,CAAC;IAC9F,YAAuE,OAA+B,EAClD,MAAqB;QAAI,KAAK,EAAE,CAAC;QADd,YAAO,GAAP,OAAO,CAAwB;QAClD,WAAM,GAAN,MAAM,CAAe;IAAa,CAAC;IAEvF,kBAAkB;QAChB,OAAO,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,yCAAyC,CAAC,KAAK,IAAI;eACpF,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;IAClG,CAAC;IAED,YAAY;QACV,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,qVAAqV;oBACxY,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,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CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAA;IAClD,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;6CAA0B,aAAa;GAJ9D,gBAAgB,CA0C5B"}
|
|
@@ -7,7 +7,7 @@ export declare const imageGenerationToolSchemas: {
|
|
|
7
7
|
readonly properties: {
|
|
8
8
|
readonly model: {
|
|
9
9
|
readonly type: "string";
|
|
10
|
-
readonly description: "Optional provider-qualified image model. Black Forest Labs FLUX 3.1 Image (bfl/flux-3.1-image) generates a single JPEG or PNG. OpenAI GPT Image 2.6 Flare/Sunburst support static images and GIF animation; GPT Image 2.5 Flare/Sunburst, GPT Image 2, and Muse Image remain available. Omit to use the configured generation default.";
|
|
10
|
+
readonly description: "Optional provider-qualified image model. Alibaba Cloud Qwen Image 3.0 (alibaba/qwen-image-3.0) generates one PNG. Black Forest Labs FLUX 3.1 Image (bfl/flux-3.1-image) generates a single JPEG or PNG. OpenAI GPT Image 2.6 Flare/Sunburst support static images and GIF animation; GPT Image 2.5 Flare/Sunburst, GPT Image 2, and Muse Image remain available. Omit to use the configured generation default.";
|
|
11
11
|
};
|
|
12
12
|
readonly prompt: {
|
|
13
13
|
readonly type: "string";
|
|
@@ -19,7 +19,7 @@ export declare const imageGenerationToolSchemas: {
|
|
|
19
19
|
};
|
|
20
20
|
readonly size: {
|
|
21
21
|
readonly type: "string";
|
|
22
|
-
readonly description: "auto or a supported WIDTHxHEIGHT. FLUX 3.1 supports 250000 to 16822272 pixels and aspect ratios up to 8:1. GPT Image 2/2.5/2.6 static output allows multiples of 16, edges <=3840, aspect ratio <=3:1, and 655360 to 8294400 pixels. GIF uses auto or a listed preset size. Other models use their preset sizes.";
|
|
22
|
+
readonly description: "auto or a supported WIDTHxHEIGHT. FLUX 3.1 supports 250000 to 16822272 pixels and aspect ratios up to 8:1. GPT Image 2/2.5/2.6 static output allows multiples of 16, edges <=3840, aspect ratio <=3:1, and 655360 to 8294400 pixels. GIF uses auto or a listed preset size. Qwen Image 3.0 supports 262144 to 4194304 pixels and up to 8:1. Other models use their preset sizes.";
|
|
23
23
|
};
|
|
24
24
|
readonly quality: {
|
|
25
25
|
type: string;
|
|
@@ -10,7 +10,7 @@ export const imageGenerationToolSchemas = defineFunctionToolSchemas({
|
|
|
10
10
|
...imageOutputToolProperties,
|
|
11
11
|
"model": {
|
|
12
12
|
"type": "string",
|
|
13
|
-
"description": "Optional provider-qualified image model. Black Forest Labs FLUX 3.1 Image (bfl/flux-3.1-image) generates a single JPEG or PNG. OpenAI GPT Image 2.6 Flare/Sunburst support static images and GIF animation; GPT Image 2.5 Flare/Sunburst, GPT Image 2, and Muse Image remain available. Omit to use the configured generation default."
|
|
13
|
+
"description": "Optional provider-qualified image model. Alibaba Cloud Qwen Image 3.0 (alibaba/qwen-image-3.0) generates one PNG. Black Forest Labs FLUX 3.1 Image (bfl/flux-3.1-image) generates a single JPEG or PNG. OpenAI GPT Image 2.6 Flare/Sunburst support static images and GIF animation; GPT Image 2.5 Flare/Sunburst, GPT Image 2, and Muse Image remain available. Omit to use the configured generation default."
|
|
14
14
|
},
|
|
15
15
|
"prompt": {
|
|
16
16
|
"type": "string",
|
|
@@ -22,7 +22,7 @@ export const imageGenerationToolSchemas = defineFunctionToolSchemas({
|
|
|
22
22
|
},
|
|
23
23
|
"size": {
|
|
24
24
|
"type": "string",
|
|
25
|
-
"description": "auto or a supported WIDTHxHEIGHT. FLUX 3.1 supports 250000 to 16822272 pixels and aspect ratios up to 8:1. GPT Image 2/2.5/2.6 static output allows multiples of 16, edges <=3840, aspect ratio <=3:1, and 655360 to 8294400 pixels. GIF uses auto or a listed preset size. Other models use their preset sizes.",
|
|
25
|
+
"description": "auto or a supported WIDTHxHEIGHT. FLUX 3.1 supports 250000 to 16822272 pixels and aspect ratios up to 8:1. GPT Image 2/2.5/2.6 static output allows multiples of 16, edges <=3840, aspect ratio <=3:1, and 655360 to 8294400 pixels. GIF uses auto or a listed preset size. Qwen Image 3.0 supports 262144 to 4194304 pixels and up to 8:1. Other models use their preset sizes.",
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"required": ["prompt"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAC7G,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,CAAC,MAAM,0BAA0B,GAAG,yBAAyB,CAAC;IAClE,cAAc,EAAE;QACd,MAAM,EAAE,gBAAgB;QACxB,aAAa,EAAE,iKAAiK;QAChL,YAAY,EAAE;YACZ,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE;gBACZ,GAAG,yBAAyB;gBAC5B,OAAO,EAAE;oBACP,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,kEAAkE,CAAC;AAC7G,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,MAAM,CAAC,MAAM,0BAA0B,GAAG,yBAAyB,CAAC;IAClE,cAAc,EAAE;QACd,MAAM,EAAE,gBAAgB;QACxB,aAAa,EAAE,iKAAiK;QAChL,YAAY,EAAE;YACZ,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE;gBACZ,GAAG,yBAAyB;gBAC5B,OAAO,EAAE;oBACP,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,iZAAiZ;iBACja;gBACD,QAAQ,EAAE;oBACR,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,uCAAuC;iBACvD;gBACD,gBAAgB,EAAE;oBAChB,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,kCAAkC;iBAClD;gBACD,MAAM,EAAE;oBACN,MAAM,EAAE,QAAQ;oBAChB,aAAa,EAAE,kXAAkX;iBAClY;aACF;YACD,UAAU,EAAE,CAAC,QAAQ,CAAC;SACvB;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoGenerationToolService.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAE3G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AAC7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,6BAA6B,EAAE,MAAM,4EAA4E,CAAC;AAC3H,OAAO,
|
|
1
|
+
{"version":3,"file":"VideoGenerationToolService.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kEAAkE,CAAC;AAE3G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uDAAuD,CAAC;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mEAAmE,CAAC;AAC7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mEAAmE,CAAC;AACzG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,EAAE,6BAA6B,EAAE,MAAM,4EAA4E,CAAC;AAC3H,OAAO,EAML,KAAK,sBAAsB,EAE5B,MAAM,+DAA+D,CAAC;AAGvE,qBAAa,0BAA0B;IAKnC,OAAO,CAAC,QAAQ,CAAC,uBAAuB;IAExC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IACD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE/D,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAV3B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAsC;gBAIxD,uBAAuB,EAAE,uBAAuB,EAAE,EAElD,mBAAmB,EAAE,mBAAmB,EACL,eAAe,EAAE,eAAe,EAClC,aAAa,EAAE,aAAa,EAE7D,QAAQ,EAAE,6BAA6B;IAOpD,aAAa,CACjB,MAAM,EAAE,sBAAsB,GAAG;QAC/B,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,GAAG,CAAC;QACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;KAChB,EACD,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC;QAAE,MAAM,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,OAAO,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE,CAAC;IA+BjE,OAAO,CAAC,gBAAgB;YAYV,WAAW;IAUzB,OAAO,CAAC,aAAa;YAmBP,UAAU;IA+BxB,OAAO,CAAC,iBAAiB;IA6BnB,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;CAMnC"}
|
package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.js
CHANGED
|
@@ -14,7 +14,7 @@ import { inject, multiInject } from 'inversify';
|
|
|
14
14
|
import CoreTypes from '../../../../di/types.js';
|
|
15
15
|
import { VideoGenerationProviderRegistryImpl } from '../../../videos/VideoGenerationProviderRegistryImpl.js';
|
|
16
16
|
import { VideoGenerationRequestService } from '../../../../../application/services/media/VideoGenerationRequestService.js';
|
|
17
|
-
import { normalizeVideoModel, OMNI_VIDEO_MODEL, throwIfVideoAborted, VideoGenerationFailure, } from '../../../../../domain/models/videos/VideoGenerationRequest.js';
|
|
17
|
+
import { normalizeVideoModel, OMNI_VIDEO_MODEL, VERTEX_OMNI_VIDEO_MODEL, isOmniVideoModel, throwIfVideoAborted, VideoGenerationFailure, } from '../../../../../domain/models/videos/VideoGenerationRequest.js';
|
|
18
18
|
import { ToolExecutionFailure } from '../../executors/ToolExecutionFailure.js';
|
|
19
19
|
let VideoGenerationToolService = class VideoGenerationToolService {
|
|
20
20
|
videoGenerationServices;
|
|
@@ -40,7 +40,7 @@ let VideoGenerationToolService = class VideoGenerationToolService {
|
|
|
40
40
|
let signal;
|
|
41
41
|
try {
|
|
42
42
|
const { service, selectedModel } = await this.selectModel(params.model);
|
|
43
|
-
const options = selectedModel
|
|
43
|
+
const options = isOmniVideoModel(selectedModel)
|
|
44
44
|
? this.withTriggerImage(params, context?.triggerImageIds, _context?.imageData)
|
|
45
45
|
: params;
|
|
46
46
|
const prepared = await this.requests.prepare(prompt, selectedModel, options, {
|
|
@@ -50,7 +50,7 @@ let VideoGenerationToolService = class VideoGenerationToolService {
|
|
|
50
50
|
signal = prepared.abortSignal;
|
|
51
51
|
const bytes = await service.generateVideo({
|
|
52
52
|
...prepared,
|
|
53
|
-
input_reference: selectedModel
|
|
53
|
+
input_reference: isOmniVideoModel(selectedModel) ? input_reference : finalInputReference,
|
|
54
54
|
});
|
|
55
55
|
generated = true;
|
|
56
56
|
throwIfVideoAborted(signal, true);
|
|
@@ -74,7 +74,8 @@ let VideoGenerationToolService = class VideoGenerationToolService {
|
|
|
74
74
|
}
|
|
75
75
|
async selectModel(requestedModel) {
|
|
76
76
|
if (requestedModel === undefined) {
|
|
77
|
-
|
|
77
|
+
const service = this.videoServiceRegistry.getDefaultProvider();
|
|
78
|
+
return { service, selectedModel: service.id === 'vertex' ? VERTEX_OMNI_VIDEO_MODEL : OMNI_VIDEO_MODEL };
|
|
78
79
|
}
|
|
79
80
|
const selectedModel = normalizeVideoModel(requestedModel);
|
|
80
81
|
const service = await this.videoServiceRegistry.getProviderForModel(selectedModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoGenerationToolService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,OAAO,EAAE,mCAAmC,EAAE,MAAM,wDAAwD,CAAC;AAK7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,4EAA4E,CAAC;AAC3H,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EAEnB,sBAAsB,GACvB,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAKlB;IAEA;IACmC;IACF;IAEjC;IAVF,oBAAoB,CAAsC;IAE3E,YAEmB,uBAAkD,EAElD,mBAAwC,EACL,eAAgC,EAClC,aAA4B,EAE7D,QAAuC;QANvC,4BAAuB,GAAvB,uBAAuB,CAA2B;QAElD,wBAAmB,GAAnB,mBAAmB,CAAqB;QACL,oBAAe,GAAf,eAAe,CAAiB;QAClC,kBAAa,GAAb,aAAa,CAAe;QAE7D,aAAQ,GAAR,QAAQ,CAA+B;QAExD,IAAI,CAAC,oBAAoB,GAAG,IAAI,mCAAmC,CACjE,IAAI,CAAC,uBAAuB,CAC7B,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,MAKC,EACD,MAAe,EACf,OAA8B;QAE9B,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAC1C,MAAM,KAAK,GAAG,MAAO,CAAC;QACtB,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QACrD,MAAM,mBAAmB,GAAG,eAAe,IAAI,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;QAE1H,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,MAA+B,CAAC;QACpC,IAAI,CAAC;YACH,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxE,MAAM,OAAO,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"VideoGenerationToolService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,OAAO,EAAE,mCAAmC,EAAE,MAAM,wDAAwD,CAAC;AAK7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,4EAA4E,CAAC;AAC3H,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,mBAAmB,EAEnB,sBAAsB,GACvB,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAE/E,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAKlB;IAEA;IACmC;IACF;IAEjC;IAVF,oBAAoB,CAAsC;IAE3E,YAEmB,uBAAkD,EAElD,mBAAwC,EACL,eAAgC,EAClC,aAA4B,EAE7D,QAAuC;QANvC,4BAAuB,GAAvB,uBAAuB,CAA2B;QAElD,wBAAmB,GAAnB,mBAAmB,CAAqB;QACL,oBAAe,GAAf,eAAe,CAAiB;QAClC,kBAA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C,uBAAuB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;QACxF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;aAC5C,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aAChB,IAAI,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;CACF,CAAA;AArKY,0BAA0B;IAIlC,WAAA,WAAW,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAA;IAE9C,WAAA,MAAM,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAA;IAErC,WAAA,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IAC/B,WAAA,MAAM,CAAC,SAAS,CAAC,6BAA6B,CAAC,CAAA;oEACrB,6BAA6B;GAX/C,0BAA0B,CAqKtC"}
|
package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoGenerationProviderRegistryImpl.d.ts","sourceRoot":"","sources":["../../../../../../src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AAErG,OAAO,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AAGrH,qBAAa,mCAAoC,YAAW,+BAA+B;IACzF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAuC;gBAIjE,uBAAuB,EAAE,uBAAuB,EAAE;IAKpD,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,uBAAuB;IAQlD,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAa1E,kBAAkB,IAAI,uBAAuB;
|
|
1
|
+
{"version":3,"file":"VideoGenerationProviderRegistryImpl.d.ts","sourceRoot":"","sources":["../../../../../../src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4DAA4D,CAAC;AAErG,OAAO,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AAGrH,qBAAa,mCAAoC,YAAW,+BAA+B;IACzF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAuC;gBAIjE,uBAAuB,EAAE,uBAAuB,EAAE;IAKpD,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,uBAAuB;IAQlD,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAa1E,kBAAkB,IAAI,uBAAuB;CAW9C"}
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
};
|
|
13
13
|
import { multiInject } from 'inversify';
|
|
14
14
|
import CoreTypes from '../../di/types.js';
|
|
15
|
-
import { OMNI_VIDEO_MODEL, VideoGenerationFailure } from '../../../domain/models/videos/VideoGenerationRequest.js';
|
|
15
|
+
import { OMNI_VIDEO_MODEL, VERTEX_OMNI_VIDEO_MODEL, VideoGenerationFailure } from '../../../domain/models/videos/VideoGenerationRequest.js';
|
|
16
16
|
let VideoGenerationProviderRegistryImpl = class VideoGenerationProviderRegistryImpl {
|
|
17
17
|
providerMap;
|
|
18
18
|
constructor(videoGenerationServices) {
|
|
@@ -37,6 +37,9 @@ let VideoGenerationProviderRegistryImpl = class VideoGenerationProviderRegistryI
|
|
|
37
37
|
const google = this.providerMap.get('google');
|
|
38
38
|
if (google?.getModels().some(model => model.id === OMNI_VIDEO_MODEL))
|
|
39
39
|
return google;
|
|
40
|
+
const vertex = this.providerMap.get('vertex');
|
|
41
|
+
if (vertex?.getModels().some(model => model.id === VERTEX_OMNI_VIDEO_MODEL))
|
|
42
|
+
return vertex;
|
|
40
43
|
throw new VideoGenerationFailure('video_model_unavailable', 503, 'No default video model is enabled. Enable Google Omni or specify a configured video model.');
|
|
41
44
|
}
|
|
42
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoGenerationProviderRegistryImpl.js","sourceRoot":"","sources":["../../../../../../src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;
|
|
1
|
+
{"version":3,"file":"VideoGenerationProviderRegistryImpl.js","sourceRoot":"","sources":["../../../../../../src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAE5I,IAAa,mCAAmC,GAAhD,MAAa,mCAAmC;IAC7B,WAAW,CAAuC;IAEnE,YAEE,uBAAkD;QAElD,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,WAAW,CAAC,UAAkB;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,qCAAqC,UAAU,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,KAAa;QACrC,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC;YACjD,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,EAAE,CAAC;gBACrD,OAAO,QAAQ,CAAC;YAClB,CAAC;QACH,CAAC;QACD,MAAM,IAAI,sBAAsB,CAC9B,yBAAyB,EACzB,GAAG,EACH,6CAA6C,CAC9C,CAAC;IACJ,CAAC;IAED,kBAAkB;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,MAAM,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,gBAAgB,CAAC;YAAE,OAAO,MAAM,CAAC;QACpF,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC9C,IAAI,MAAM,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,uBAAuB,CAAC;YAAE,OAAO,MAAM,CAAC;QAC3F,MAAM,IAAI,sBAAsB,CAC9B,yBAAyB,EACzB,GAAG,EACH,4FAA4F,CAC7F,CAAC;IACJ,CAAC;CACF,CAAA;AA1CY,mCAAmC;IAI3C,WAAA,WAAW,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAA;;GAJtC,mCAAmC,CA0C/C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ConfigService } from '@gaia-framework/config';
|
|
2
|
+
import type { GenerateVideoParams, VideoGenerationProvider } from '../../../../domain/ports/ai/videos/VideoGenerationProvider.js';
|
|
3
|
+
import type { RemoteMediaFetcher } from '../../../../domain/ports/services/media/RemoteMediaFetcher.js';
|
|
4
|
+
export declare class HappyHorseVideoProvider implements VideoGenerationProvider {
|
|
5
|
+
private readonly config;
|
|
6
|
+
private readonly media;
|
|
7
|
+
readonly id = "alibaba";
|
|
8
|
+
constructor(config: ConfigService, media: RemoteMediaFetcher);
|
|
9
|
+
getModels(): {
|
|
10
|
+
id: string;
|
|
11
|
+
provider: string;
|
|
12
|
+
providerModel: string;
|
|
13
|
+
type: "video";
|
|
14
|
+
displayName: string;
|
|
15
|
+
}[];
|
|
16
|
+
generateVideo(input: GenerateVideoParams): Promise<Buffer<ArrayBufferLike>>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=HappyHorseVideoProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HappyHorseVideoProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,+DAA+D,CAAC;AAClI,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AAQxG,qBACa,uBAAwB,YAAW,uBAAuB;IAExB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAC5B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAF9D,QAAQ,CAAC,EAAE,aAAa;gBACsC,MAAM,EAAE,aAAa,EAC1B,KAAK,EAAE,kBAAkB;IAClF,SAAS;;;;;;;IAIH,aAAa,CAAC,KAAK,EAAE,mBAAmB;CAmC/C"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
11
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
12
|
+
};
|
|
13
|
+
import { setTimeout as delay } from 'node:timers/promises';
|
|
14
|
+
import { ConfigService } from '@gaia-framework/config';
|
|
15
|
+
import { inject, injectable } from 'inversify';
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
import CoreTypes from '../../../di/types.js';
|
|
18
|
+
import { alibabaWorkspace } from '../../alibaba/AlibabaWorkspace.js';
|
|
19
|
+
import { VideoGenerationFailure } from '../../../../domain/models/videos/VideoGenerationRequest.js';
|
|
20
|
+
import { videoCreationFailure, videoProviderRequest } from '../VideoProviderRequest.js';
|
|
21
|
+
const model = 'happyhorse-1.1-t2v';
|
|
22
|
+
const task = z.object({ output: z.object({ task_id: z.string().regex(/^[\w-]+$/), task_status: z.string(),
|
|
23
|
+
video_url: z.string().url().optional() }) });
|
|
24
|
+
let HappyHorseVideoProvider = class HappyHorseVideoProvider {
|
|
25
|
+
config;
|
|
26
|
+
media;
|
|
27
|
+
id = 'alibaba';
|
|
28
|
+
constructor(config, media) {
|
|
29
|
+
this.config = config;
|
|
30
|
+
this.media = media;
|
|
31
|
+
}
|
|
32
|
+
getModels() {
|
|
33
|
+
return alibabaWorkspace(this.config, 'videos') ? [{ id: 'alibaba/' + model, provider: 'Alibaba Cloud', providerModel: model,
|
|
34
|
+
type: 'video', displayName: 'HappyHorse 1.1 Text to Video' }] : [];
|
|
35
|
+
}
|
|
36
|
+
async generateVideo(input) {
|
|
37
|
+
const workspace = alibabaWorkspace(this.config, 'videos');
|
|
38
|
+
if (!workspace || input.model !== 'alibaba/' + model)
|
|
39
|
+
throw new VideoGenerationFailure('video_model_unavailable', 503, 'HappyHorse is unavailable.');
|
|
40
|
+
if (!input.prompt.trim() || input.input_reference || input.references || input.aspectRatio || input.resolution) {
|
|
41
|
+
throw new VideoGenerationFailure('invalid_video_options', 400, 'HappyHorse accepts a text prompt.');
|
|
42
|
+
}
|
|
43
|
+
const deadline = AbortSignal.timeout(600_000);
|
|
44
|
+
const signal = input.abortSignal ? AbortSignal.any([input.abortSignal, deadline]) : deadline;
|
|
45
|
+
const headers = { Authorization: 'Bearer ' + workspace.apiKey };
|
|
46
|
+
const id = await videoProviderRequest(async () => {
|
|
47
|
+
const response = await fetch(workspace.dashScopeURL + '/services/aigc/video-generation/video-synthesis', {
|
|
48
|
+
method: 'POST', redirect: 'error', signal, headers: { ...headers, 'X-DashScope-Async': 'enable', 'Content-Type': 'application/json' },
|
|
49
|
+
body: JSON.stringify({ model, input: { prompt: input.prompt }, parameters: { resolution: '720P', duration: 5 } }),
|
|
50
|
+
});
|
|
51
|
+
if (!response.ok) {
|
|
52
|
+
await response.body?.cancel();
|
|
53
|
+
throw videoCreationFailure(response.status);
|
|
54
|
+
}
|
|
55
|
+
return task.parse(await response.json()).output.task_id;
|
|
56
|
+
}, signal, 'creation');
|
|
57
|
+
return videoProviderRequest(async () => {
|
|
58
|
+
while (true) {
|
|
59
|
+
await delay(5000, undefined, { signal });
|
|
60
|
+
const response = await fetch(workspace.dashScopeURL + '/tasks/' + id, { headers, signal, redirect: 'error' });
|
|
61
|
+
if (!response.ok) {
|
|
62
|
+
await response.body?.cancel();
|
|
63
|
+
throw videoCreationFailure(response.status);
|
|
64
|
+
}
|
|
65
|
+
const result = task.parse(await response.json()).output;
|
|
66
|
+
if (result.task_id !== id)
|
|
67
|
+
throw new Error('Unexpected HappyHorse task identity.');
|
|
68
|
+
if (['PENDING', 'RUNNING'].includes(result.task_status))
|
|
69
|
+
continue;
|
|
70
|
+
if (result.task_status !== 'SUCCEEDED' || !result.video_url || new URL(result.video_url).protocol !== 'https:') {
|
|
71
|
+
throw new VideoGenerationFailure('video_provider_failed', 502, 'HappyHorse did not return a completed video.');
|
|
72
|
+
}
|
|
73
|
+
const output = await this.media.fetch(result.video_url, { defaultMimeType: 'video/mp4', maximumBytes: 128 * 1024 ** 2, timeoutMs: 60_000, abortSignal: signal });
|
|
74
|
+
if (output.buffer.toString('ascii', 4, 8) !== 'ftyp')
|
|
75
|
+
throw new Error('Expected an MP4 video.');
|
|
76
|
+
return output.buffer;
|
|
77
|
+
}
|
|
78
|
+
}, signal, 'completion');
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
HappyHorseVideoProvider = __decorate([
|
|
82
|
+
injectable(),
|
|
83
|
+
__param(0, inject(CoreTypes.ConfigService)),
|
|
84
|
+
__param(1, inject(CoreTypes.RemoteMediaFetcher)),
|
|
85
|
+
__metadata("design:paramtypes", [ConfigService, Object])
|
|
86
|
+
], HappyHorseVideoProvider);
|
|
87
|
+
export { HappyHorseVideoProvider };
|
|
88
|
+
//# sourceMappingURL=HappyHorseVideoProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HappyHorseVideoProvider.js","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,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AK,QAAQ,EAAE,CAAC;oBAC/G,MAAM,IAAI,sBAAsB,CAAC,uBAAuB,EAAE,GAAG,EAAE,8CAA8C,CAAC,CAAC;gBACjH,CAAC;gBACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,GAAG,IAAI,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;gBACjK,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM;oBAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;gBAChG,OAAO,MAAM,CAAC,MAAM,CAAC;YACvB,CAAC;QACH,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3B,CAAC;CACF,CAAA;AA3CY,uBAAuB;IADnC,UAAU,EAAE;IAGE,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IACzC,WAAA,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAA;qCAD+B,aAAa;GAFxE,uBAAuB,CA2CnC"}
|
|
@@ -3,9 +3,11 @@ import { VideoGenerationModelInfo } from '../../../../domain/models/videos/Video
|
|
|
3
3
|
import { ConfigService } from '@gaia-framework/config';
|
|
4
4
|
export declare class GoogleVideoGenerationProvider implements VideoGenerationProvider {
|
|
5
5
|
private readonly configService;
|
|
6
|
+
readonly id: 'google' | 'vertex';
|
|
6
7
|
private readonly omni;
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
constructor(configService: ConfigService, id?: 'google' | 'vertex');
|
|
9
|
+
private vertexLocation;
|
|
10
|
+
private connection;
|
|
9
11
|
generateVideo(params: GenerateVideoParams): Promise<Uint8Array>;
|
|
10
12
|
private generateVeo;
|
|
11
13
|
private completeVeo;
|
package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleVideoGenerationProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"GoogleVideoGenerationProvider.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAoBvD,qBAAa,6BAA8B,YAAW,uBAAuB;IAIxC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC/D,QAAQ,CAAC,EAAE,EAAE,QAAQ,GAAG,QAAQ;IAJlC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAmB;gBAGY,aAAa,EAAE,aAAa,EACrE,EAAE,GAAE,QAAQ,GAAG,QAAmB;IAO7C,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,UAAU;IAOZ,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC;YAiCvD,WAAW;YAkDX,WAAW;IA2CzB,SAAS,IAAI,wBAAwB,EAAE;CA8CxC"}
|