@gaia-framework/backend-core 6.0.1 → 7.0.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 +66 -0
- package/README.md +1 -1
- package/build/openapi/openapi.json +1392 -428
- package/build/openapi/openapi.yaml +940 -303
- 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/VoiceMediaConfig.d.ts +1 -0
- package/build/src/config/VoiceMediaConfig.d.ts.map +1 -1
- package/build/src/config/VoiceMediaConfig.js +5 -0
- package/build/src/config/VoiceMediaConfig.js.map +1 -1
- package/build/src/config/schema.d.ts +19 -7
- package/build/src/config/schema.d.ts.map +1 -1
- package/build/src/config/schema.js +23 -7
- package/build/src/config/schema.js.map +1 -1
- package/build/src/core/application/dtos/messages/responses/MessageDto.d.ts +2 -1
- package/build/src/core/application/dtos/messages/responses/MessageDto.d.ts.map +1 -1
- package/build/src/core/application/dtos/runs/CreateRunRequestDto.d.ts +2 -0
- package/build/src/core/application/dtos/runs/CreateRunRequestDto.d.ts.map +1 -1
- package/build/src/core/application/mappers/messages/MessageMapper.d.ts.map +1 -1
- package/build/src/core/application/mappers/messages/MessageMapper.js +2 -0
- package/build/src/core/application/mappers/messages/MessageMapper.js.map +1 -1
- package/build/src/core/application/services/media/DefaultContentMediaService.d.ts +1 -1
- package/build/src/core/application/services/media/DefaultContentMediaService.d.ts.map +1 -1
- package/build/src/core/application/services/media/DefaultContentMediaService.js +48 -15
- package/build/src/core/application/services/media/DefaultContentMediaService.js.map +1 -1
- package/build/src/core/application/services/media/ImageAppServiceImpl.js +1 -1
- package/build/src/core/application/services/media/ImageAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/media/ImageEditingAppService.d.ts +7 -1
- package/build/src/core/application/services/media/ImageEditingAppService.d.ts.map +1 -1
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.d.ts +6 -1
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.d.ts.map +1 -1
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.js +59 -5
- package/build/src/core/application/services/media/ImageEditingAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/media/SpeechAppService.d.ts +2 -1
- package/build/src/core/application/services/media/SpeechAppService.d.ts.map +1 -1
- package/build/src/core/application/services/media/SpeechAppServiceImpl.d.ts +1 -0
- package/build/src/core/application/services/media/SpeechAppServiceImpl.d.ts.map +1 -1
- package/build/src/core/application/services/media/SpeechAppServiceImpl.js +3 -0
- package/build/src/core/application/services/media/SpeechAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.d.ts +3 -0
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.d.ts.map +1 -1
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.js +62 -0
- package/build/src/core/application/services/realtime/RealtimeTranscriptSession.js.map +1 -1
- package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts +7 -3
- package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts.map +1 -1
- package/build/src/core/application/services/runs/RunAppServiceImpl.js +64 -14
- package/build/src/core/application/services/runs/RunAppServiceImpl.js.map +1 -1
- package/build/src/core/application/services/runs/RunExecutionSessionFactoryImpl.js +1 -1
- package/build/src/core/application/services/runs/RunExecutionSessionFactoryImpl.js.map +1 -1
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.d.ts +1 -1
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.d.ts.map +1 -1
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.js +17 -14
- package/build/src/core/application/services/voice/intake/VoiceTranscriptService.js.map +1 -1
- package/build/src/core/application/services/voice/review/VoiceReviewInput.d.ts +1 -0
- package/build/src/core/application/services/voice/review/VoiceReviewInput.d.ts.map +1 -1
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.d.ts +2 -0
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.d.ts.map +1 -1
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.js +37 -12
- package/build/src/core/application/services/voice/session/ActiveVoiceSession.js.map +1 -1
- package/build/src/core/application/services/voice/session/VoiceSessionAppService.js +1 -1
- package/build/src/core/application/services/voice/session/VoiceSessionAppService.js.map +1 -1
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.d.ts +1 -0
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.d.ts.map +1 -1
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.js +3 -0
- package/build/src/core/domain/factories/speech/SpeechProviderFactory.js.map +1 -1
- package/build/src/core/domain/models/images/ImageEditing.d.ts +9 -0
- package/build/src/core/domain/models/images/ImageEditing.d.ts.map +1 -1
- package/build/src/core/domain/models/images/ImageEditing.js +2 -1
- package/build/src/core/domain/models/images/ImageEditing.js.map +1 -1
- package/build/src/core/domain/models/images/ImageOutputOptions.js +1 -1
- package/build/src/core/domain/models/messages/Message.d.ts +8 -0
- package/build/src/core/domain/models/messages/Message.d.ts.map +1 -1
- package/build/src/core/domain/models/speech/RealtimeTranslationLanguage.d.ts +10 -0
- package/build/src/core/domain/models/speech/RealtimeTranslationLanguage.d.ts.map +1 -1
- package/build/src/core/domain/models/tools/ToolExecutionContext.d.ts +2 -0
- package/build/src/core/domain/models/tools/ToolExecutionContext.d.ts.map +1 -1
- package/build/src/core/domain/models/voice/VoiceSession.d.ts +2 -0
- package/build/src/core/domain/models/voice/VoiceSession.d.ts.map +1 -1
- package/build/src/core/domain/params/chat/LLMExecutionRequest.d.ts +2 -0
- package/build/src/core/domain/params/chat/LLMExecutionRequest.d.ts.map +1 -1
- package/build/src/core/domain/ports/ai/images/ImageEditingProvider.d.ts +2 -0
- package/build/src/core/domain/ports/ai/images/ImageEditingProvider.d.ts.map +1 -1
- package/build/src/core/domain/ports/ai/llm/LLMProvider.d.ts +2 -0
- package/build/src/core/domain/ports/ai/llm/LLMProvider.d.ts.map +1 -1
- package/build/src/core/domain/ports/repositories/voice/VoiceSessionRepository.d.ts +3 -1
- package/build/src/core/domain/ports/repositories/voice/VoiceSessionRepository.d.ts.map +1 -1
- package/build/src/core/domain/ports/services/assurance/AssuranceEvaluationService.d.ts +1 -1
- package/build/src/core/domain/ports/services/assurance/AssuranceEvaluationService.d.ts.map +1 -1
- package/build/src/core/domain/ports/services/media/RemoteMediaFetcher.d.ts +1 -0
- package/build/src/core/domain/ports/services/media/RemoteMediaFetcher.d.ts.map +1 -1
- package/build/src/core/domain/ports/speech/RealtimeTranslationProvider.d.ts +2 -1
- package/build/src/core/domain/ports/speech/RealtimeTranslationProvider.d.ts.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 +16 -4
- package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/media/ImageEditPolicy.d.ts +14 -1
- package/build/src/core/domain/services/media/ImageEditPolicy.d.ts.map +1 -1
- package/build/src/core/domain/services/media/ImageEditPolicy.js +54 -4
- package/build/src/core/domain/services/media/ImageEditPolicy.js.map +1 -1
- package/build/src/core/domain/services/media/SpeechService.d.ts +2 -1
- package/build/src/core/domain/services/media/SpeechService.d.ts.map +1 -1
- package/build/src/core/domain/services/media/SpeechServiceImpl.d.ts +1 -0
- package/build/src/core/domain/services/media/SpeechServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/media/SpeechServiceImpl.js +3 -0
- package/build/src/core/domain/services/media/SpeechServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/models/ModelServiceImpl.d.ts +1 -0
- package/build/src/core/domain/services/models/ModelServiceImpl.d.ts.map +1 -1
- package/build/src/core/domain/services/models/ModelServiceImpl.js +31 -32
- package/build/src/core/domain/services/models/ModelServiceImpl.js.map +1 -1
- package/build/src/core/domain/services/runs/NativeRunEngine.d.ts.map +1 -1
- package/build/src/core/domain/services/runs/NativeRunEngine.js +6 -1
- package/build/src/core/domain/services/runs/NativeRunEngine.js.map +1 -1
- package/build/src/core/domain/services/runs/RunEngine.d.ts +2 -0
- package/build/src/core/domain/services/runs/RunEngine.d.ts.map +1 -1
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts +2 -0
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts.map +1 -1
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js +6 -2
- package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js.map +1 -1
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.d.ts +1 -0
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.d.ts.map +1 -1
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.js +1 -0
- package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.d.ts +2 -0
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.js +5 -0
- package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.d.ts +1 -0
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.js +9 -3
- package/build/src/core/infrastructure/ai/images/ImageOutputBytes.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.d.ts +20 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.js +52 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.d.ts +13 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.js +137 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.d.ts +3 -37
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.js +52 -208
- package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.js +11 -3
- package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.d.ts +12 -0
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.js +39 -0
- package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.js.map +1 -0
- package/build/src/core/infrastructure/ai/images/openai/OpenAIImageModels.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.d.ts +32 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.js +80 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.d.ts +23 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.js +66 -0
- package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/azure/services/AzureFoundryService.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.js +11 -15
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.js +3 -5
- package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.d.ts +2 -1
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.js +33 -38
- package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.js.map +1 -1
- 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 +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts +6 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js +16 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts +9 -1
- 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 +17 -4
- 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 +11 -2
- 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 +72 -42
- 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 +2 -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 +51 -30
- 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/GoogleRealtimeSession.d.ts +14 -6
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.js +74 -28
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts +27 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js +138 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.d.ts +10 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.js +43 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts +38 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js +138 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.d.ts +9 -2
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.js +4 -1
- package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.d.ts +2 -3
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.js +11 -7
- package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.js +18 -13
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.js +16 -1
- package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js +12 -132
- package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.d.ts +40 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.js +296 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.d.ts +14 -4
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.js +35 -5
- package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/chat-completions/OpenAIChatCompletionsService.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.d.ts +5 -2
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.js +25 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveMediaProvider.js +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveMediaProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.js +6 -4
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.d.ts +3 -4
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.js +13 -51
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.d.ts +4 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.js +163 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.d.ts +9 -2
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.js +24 -9
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.js +4 -0
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.js +12 -4
- package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.d.ts +3 -21
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.js +2 -64
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.d.ts +1 -5
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.js +12 -87
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.d.ts +11 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.js +73 -73
- package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openai/responses/OpenAIResponsesApiService.d.ts +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.d.ts +25 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.js +152 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.d.ts +22 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.js +54 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.d.ts +31 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.d.ts.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.js +357 -0
- package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.js.map +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.js +9 -16
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.js.map +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.js +1 -1
- package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.js +1 -0
- package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.d.ts.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js +11 -3
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.js +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.js.map +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/ImageOutputToolProperties.d.ts +1 -1
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.d.ts +4 -4
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js +3 -3
- package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.d.ts +2 -0
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.js +18 -6
- package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.d.ts +1 -0
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.js +3 -0
- package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.d.ts +32 -12
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.js +8 -8
- package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.d.ts +6 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.js +8 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageGenerationRequestSchema.d.ts +1 -1
- package/build/src/core/infrastructure/api/v1/requests/images/ImageOutputOptionsSchema.d.ts +1 -1
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.d.ts +5 -0
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.js +5 -0
- package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.js +4 -1
- package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.js +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.js.map +1 -1
- 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 +15 -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/media/images/ImagesRouter.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.js +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.js +11 -2
- package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.d.ts +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.js +1 -0
- package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.js +37 -25
- package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.js.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/DurableRunSchemas.openapi.d.ts +5 -0
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/DurableRunSchemas.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.d.ts +24 -9
- package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/builtInLLMProviders.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/builtInLLMProviders.js +4 -3
- 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 +12 -2
- package/build/src/core/infrastructure/di/index.js.map +1 -1
- package/build/src/core/infrastructure/di/types.d.ts +3 -1
- package/build/src/core/infrastructure/di/types.d.ts.map +1 -1
- package/build/src/core/infrastructure/di/types.js +3 -1
- package/build/src/core/infrastructure/di/types.js.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletion.d.ts +1 -0
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletion.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionMessageCodec.d.ts +1 -0
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionMessageCodec.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.d.ts +4 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.js +16 -14
- package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.js.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.d.ts +2 -1
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.js +2 -2
- package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.js.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.d.ts +3 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.d.ts.map +1 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.js +4 -1
- package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.js.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.d.ts.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.js +13 -0
- package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.js.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.d.ts.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.js +2 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.js.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.d.ts +4 -2
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.d.ts.map +1 -1
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.js +28 -11
- package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.js.map +1 -1
- package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.js +2 -0
- package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.js.map +1 -1
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.d.ts +1 -0
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.js +44 -0
- package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.js.map +1 -1
- package/build/src/core/infrastructure/services/media/PngAnimation.d.ts +3 -0
- package/build/src/core/infrastructure/services/media/PngAnimation.d.ts.map +1 -0
- package/build/src/core/infrastructure/services/media/PngAnimation.js +12 -0
- package/build/src/core/infrastructure/services/media/PngAnimation.js.map +1 -0
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.d.ts +2 -0
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.js +19 -3
- package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.js.map +1 -1
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.d.ts +0 -2
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.js +19 -26
- package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.js.map +1 -1
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.d.ts +8 -0
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.d.ts.map +1 -0
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.js +18 -0
- package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.js.map +1 -0
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.d.ts +2 -1
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.js +23 -18
- package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.js.map +1 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.d.ts +1 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.d.ts.map +1 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.js +2 -1
- package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.js.map +1 -1
- package/build/src/infrastructure/api/openapi/root.openapi.js +1 -1
- package/build/src/infrastructure/api/openapi/root.openapi.js.map +1 -1
- package/build/src/infrastructure/server/cors.d.ts.map +1 -1
- package/build/src/infrastructure/server/cors.js +0 -1
- package/build/src/infrastructure/server/cors.js.map +1 -1
- package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.d.ts.map +1 -1
- package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.js +18 -7
- package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.js.map +1 -1
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.d.ts +1 -0
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.d.ts.map +1 -1
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.js +20 -1
- package/build/src/infrastructure/websockets/mediators/WebsocketMediator.js.map +1 -1
- package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.d.ts.map +1 -1
- package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.js +4 -1
- package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.d.ts +2 -0
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.js +18 -3
- package/build/src/modules/admin/infrastructure/api/v1/AdminController.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.js +1 -0
- package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.js +3 -0
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.js.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.d.ts.map +1 -1
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.js +18 -0
- package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.js.map +1 -1
- package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.d.ts.map +1 -1
- package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.js +17 -45
- package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.js.map +1 -1
- package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.d.ts.map +1 -1
- package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.js +8 -2
- package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.js.map +1 -1
- package/package.json +3 -3
- package/resources/prompts/live-conversation.md +1 -0
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.d.ts +0 -3
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.d.ts.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.js +0 -64
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.js.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.d.ts +0 -26
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.d.ts.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.js +0 -121
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.js.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.d.ts +0 -18
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.d.ts.map +0 -1
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.js +0 -73
- package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.js.map +0 -1
|
@@ -0,0 +1,357 @@
|
|
|
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 { inject, injectable } from "inversify";
|
|
14
|
+
import { Ajv } from "ajv";
|
|
15
|
+
import { Ajv2019 } from "ajv/dist/2019.js";
|
|
16
|
+
import { Ajv2020 } from "ajv/dist/2020.js";
|
|
17
|
+
import { fullFormats } from "ajv-formats/dist/formats.js";
|
|
18
|
+
import { z } from "zod";
|
|
19
|
+
import { AIExecutionFailure, classifyAIExecutionFailure, createAIExecutionFailure } from "../../../../../domain/errors/AIExecutionFailure.js";
|
|
20
|
+
import { LLMResponseIncompleteError } from "../../../../../domain/errors/LLMResponseIncompleteError.js";
|
|
21
|
+
import CoreTypes from "../../../../di/types.js";
|
|
22
|
+
import { normalizeProviderImageUrl } from "../../../../mappers/chat/normalizeProviderImageUrl.js";
|
|
23
|
+
import { modelRequestOptions, delegatedOutputCap } from "../../execution/ModelRequestPolicy.js";
|
|
24
|
+
import { isContextSizeRejection } from "../../execution/ContextOverflowRecovery.js";
|
|
25
|
+
import { readNormalizedReasoning } from "../local/LocalLLMChatProviderService.js";
|
|
26
|
+
import { OpenAIClient } from "../openai/OpenAIClient.js";
|
|
27
|
+
import { OpenCodeCatalog } from "./OpenCodeCatalog.js";
|
|
28
|
+
const BASE_URL = "https://opencode.ai/inference/openai/v1";
|
|
29
|
+
const CONFIG = "ai.llm.providers.opencode";
|
|
30
|
+
const jsonInstruction = "Return the final answer as one valid JSON object, without Markdown or surrounding text.";
|
|
31
|
+
const count = z.number().int().nonnegative();
|
|
32
|
+
const consoleUsage = z.object({ opencode: z.object({ tokens: z.object({
|
|
33
|
+
input: count, output: count, cache_read: count, cache_write_5m: count, cache_write_1h: count, reasoning: count,
|
|
34
|
+
}) }) });
|
|
35
|
+
let OpenCodeService = class OpenCodeService {
|
|
36
|
+
config;
|
|
37
|
+
catalog;
|
|
38
|
+
toolProcessor;
|
|
39
|
+
providerId = "opencode";
|
|
40
|
+
preserveToolCallReasoning = true;
|
|
41
|
+
client;
|
|
42
|
+
apiKey;
|
|
43
|
+
constructor(config, catalog, toolProcessor) {
|
|
44
|
+
this.config = config;
|
|
45
|
+
this.catalog = catalog;
|
|
46
|
+
this.toolProcessor = toolProcessor;
|
|
47
|
+
this.apiKey = config.getOptionalString(`${CONFIG}.apiKey`)?.trim();
|
|
48
|
+
}
|
|
49
|
+
async getModelInfo(id) {
|
|
50
|
+
const model = await this.catalog.getModelInfo(id);
|
|
51
|
+
if (!model)
|
|
52
|
+
throw createAIExecutionFailure("provider_model_unavailable");
|
|
53
|
+
return model;
|
|
54
|
+
}
|
|
55
|
+
validateSettings(model, settings) {
|
|
56
|
+
if (settings?.reasoningEffort && !model.supportedReasoningEfforts?.includes(settings.reasoningEffort))
|
|
57
|
+
throw rejected("The selected OpenCode model does not support the requested reasoning effort.");
|
|
58
|
+
if (settings?.temperature !== undefined && !model.inference.temperature)
|
|
59
|
+
throw rejected("The selected OpenCode model does not support a custom temperature.");
|
|
60
|
+
if (settings?.topP !== undefined && !model.inference.topP)
|
|
61
|
+
throw rejected("The selected OpenCode model does not support top-p sampling.");
|
|
62
|
+
if (settings?.maxTokens !== undefined && model.maxOutputTokens && settings.maxTokens > model.maxOutputTokens)
|
|
63
|
+
throw rejected("The requested output token budget exceeds the selected OpenCode model's limit.");
|
|
64
|
+
}
|
|
65
|
+
async validateRequest(model, options) {
|
|
66
|
+
this.validateSettings(model, options.settings);
|
|
67
|
+
for (const message of options.messages) {
|
|
68
|
+
for (const part of message.content) {
|
|
69
|
+
if (part.type === "image")
|
|
70
|
+
validateImage(model, part.url);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (this.toolProcessor.toTools(options.tools).length && !model.supportsTools)
|
|
74
|
+
throw rejected("The selected OpenCode model does not support tools.");
|
|
75
|
+
this.responseFormat(model, options);
|
|
76
|
+
}
|
|
77
|
+
async complete(messages, model, options) {
|
|
78
|
+
const { params, outputFormat } = this.buildRequest(messages, model, options);
|
|
79
|
+
const request = this.requestOptions(options);
|
|
80
|
+
try {
|
|
81
|
+
const result = await this.getClient().chat.completions.create(params, request);
|
|
82
|
+
request.signal.throwIfAborted();
|
|
83
|
+
const choice = result.choices[0];
|
|
84
|
+
if (!choice || (!choice.message?.content && !choice.message?.tool_calls?.length))
|
|
85
|
+
throw new LLMResponseIncompleteError("OpenCode returned an incomplete chat completion");
|
|
86
|
+
const calls = (choice.message.tool_calls ?? []).map(call => {
|
|
87
|
+
if (call.type !== "function")
|
|
88
|
+
throw rejected("OpenCode returned an unsupported tool call.");
|
|
89
|
+
return { id: call.id, name: call.function.name };
|
|
90
|
+
});
|
|
91
|
+
validateTurn(choice.finish_reason, calls, offeredFunctions(params), Boolean(outputFormat || options.requireCompleteOutput));
|
|
92
|
+
if (outputFormat && choice.finish_reason === "stop") {
|
|
93
|
+
choice.message.content = validateJsonOutput(choice.message.content, outputFormat, !params.response_format);
|
|
94
|
+
}
|
|
95
|
+
const reasoning = readNormalizedReasoning(choice.message);
|
|
96
|
+
if (reasoning)
|
|
97
|
+
Object.assign(choice.message, { reasoning });
|
|
98
|
+
result.usage = normalizeUsage(result.usage);
|
|
99
|
+
return result;
|
|
100
|
+
}
|
|
101
|
+
catch (error) {
|
|
102
|
+
throw serviceFailure(error, request.signal);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async stream(messages, model, options) {
|
|
106
|
+
const { params, outputFormat } = this.buildRequest(messages, model, options);
|
|
107
|
+
const request = this.requestOptions(options);
|
|
108
|
+
try {
|
|
109
|
+
const stream = await this.getClient().chat.completions.create({ ...params, stream: true, stream_options: { include_usage: true } }, request);
|
|
110
|
+
const promptJson = outputFormat?.type === "json_object" && !params.response_format;
|
|
111
|
+
return readStream(stream, request.signal, outputFormat, offeredFunctions(params), options.requireCompleteOutput === true, promptJson);
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
throw serviceFailure(error, request.signal);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
requestOptions(options) {
|
|
118
|
+
const timeout = AbortSignal.timeout(this.config.getNumber(`${CONFIG}.requestTimeoutMs`));
|
|
119
|
+
const signal = options.abortSignal ? AbortSignal.any([options.abortSignal, timeout]) : timeout;
|
|
120
|
+
return { ...modelRequestOptions(signal, options.toolExecutionContext), signal };
|
|
121
|
+
}
|
|
122
|
+
buildRequest(messages, model, options) {
|
|
123
|
+
const settings = { ...model.defaultSettings, ...options.settings };
|
|
124
|
+
this.validateSettings(model, settings);
|
|
125
|
+
const tools = this.toolProcessor.toTools(options.tools);
|
|
126
|
+
if (tools.length && !model.supportsTools)
|
|
127
|
+
throw rejected("The selected OpenCode model does not support tools.");
|
|
128
|
+
const wireMessages = messages.map(message => {
|
|
129
|
+
if (Array.isArray(message.content)) {
|
|
130
|
+
for (const part of message.content)
|
|
131
|
+
if (part.type === "image_url")
|
|
132
|
+
validateImage(model, part.image_url.url);
|
|
133
|
+
}
|
|
134
|
+
if (message.role !== "assistant")
|
|
135
|
+
return message;
|
|
136
|
+
const { reasoning, reasoning_content, ...base } = message;
|
|
137
|
+
const field = model.inference.reasoningField;
|
|
138
|
+
return field ? { ...base, [field]: reasoning ?? reasoning_content ?? "" } : base;
|
|
139
|
+
});
|
|
140
|
+
const outputFormat = this.responseFormat(model, options);
|
|
141
|
+
if (outputFormat && !model.inference.structuredOutput) {
|
|
142
|
+
wireMessages.unshift({ role: "system", content: jsonInstruction });
|
|
143
|
+
}
|
|
144
|
+
const outputCap = delegatedOutputCap(settings.maxTokens, options.toolExecutionContext);
|
|
145
|
+
const params = {
|
|
146
|
+
model: model.providerModel, messages: wireMessages, stream: false,
|
|
147
|
+
[model.inference.maxTokensField ?? "max_completion_tokens"]: outputCap,
|
|
148
|
+
temperature: settings.temperature, top_p: settings.topP,
|
|
149
|
+
frequency_penalty: settings.frequencyPenalty, presence_penalty: settings.presencePenalty,
|
|
150
|
+
reasoning_effort: settings.reasoningEffort,
|
|
151
|
+
tools: tools.length ? tools : undefined,
|
|
152
|
+
response_format: model.inference.structuredOutput ? outputFormat : undefined,
|
|
153
|
+
};
|
|
154
|
+
return { params, outputFormat };
|
|
155
|
+
}
|
|
156
|
+
responseFormat(model, options) {
|
|
157
|
+
if (!options.outputFormat && !options.outputSchema)
|
|
158
|
+
return undefined;
|
|
159
|
+
if (options.outputSchema) {
|
|
160
|
+
if (!model.inference.structuredOutput)
|
|
161
|
+
throw rejected("The selected OpenCode model does not support JSON Schema output.");
|
|
162
|
+
return { type: "json_schema", json_schema: { ...options.outputSchema, strict: true } };
|
|
163
|
+
}
|
|
164
|
+
return { type: "json_object" };
|
|
165
|
+
}
|
|
166
|
+
getClient() {
|
|
167
|
+
const key = this.apiKey;
|
|
168
|
+
if (!key || !this.config.getBoolean(`${CONFIG}.enabled`))
|
|
169
|
+
throw createAIExecutionFailure("provider_authentication_failed");
|
|
170
|
+
return this.client ??= new OpenAIClient({
|
|
171
|
+
baseURL: BASE_URL, apiKey: key, logLevel: "off",
|
|
172
|
+
timeout: this.config.getNumber(`${CONFIG}.requestTimeoutMs`),
|
|
173
|
+
maxRetries: this.config.getNumber(`${CONFIG}.maximumRetries`),
|
|
174
|
+
// The OpenAI SDK can import arbitrary headers from OPENAI_CUSTOM_HEADERS.
|
|
175
|
+
fetch: (url, init) => {
|
|
176
|
+
if (String(url) !== `${BASE_URL}/chat/completions`)
|
|
177
|
+
throw new Error("Unexpected OpenCode endpoint");
|
|
178
|
+
return fetch(url, { ...init, redirect: "error", headers: { Authorization: `Bearer ${key}`, "Content-Type": "application/json" } });
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
OpenCodeService = __decorate([
|
|
184
|
+
injectable(),
|
|
185
|
+
__param(0, inject(CoreTypes.ConfigService)),
|
|
186
|
+
__param(1, inject(CoreTypes.OpenCodeCatalog)),
|
|
187
|
+
__param(2, inject(CoreTypes.ToolProcessor)),
|
|
188
|
+
__metadata("design:paramtypes", [Function, OpenCodeCatalog, Function])
|
|
189
|
+
], OpenCodeService);
|
|
190
|
+
export { OpenCodeService };
|
|
191
|
+
function validateImage(model, url) {
|
|
192
|
+
if (!model.inputModalities?.includes("image"))
|
|
193
|
+
throw rejected("The selected OpenCode model does not support images.");
|
|
194
|
+
if (/^https?:\/\//i.test(url)) {
|
|
195
|
+
if (URL.canParse(url))
|
|
196
|
+
return;
|
|
197
|
+
throw rejected("OpenCode requires a valid HTTP or HTTPS image URL.");
|
|
198
|
+
}
|
|
199
|
+
// The shared mapper treats legacy, unprefixed base64 attachments as PNG.
|
|
200
|
+
const inline = /^data:(image\/[a-z0-9.+-]+);base64,([A-Za-z0-9+/]+={0,2})$/i.exec(normalizeProviderImageUrl(url));
|
|
201
|
+
if (!inline || inline[2].length % 4 !== 0) {
|
|
202
|
+
throw rejected("OpenCode requires a valid HTTP or HTTPS image URL or inline base64 image data.");
|
|
203
|
+
}
|
|
204
|
+
if (!model.inference.imageMimeTypes.includes(inline[1].toLowerCase())) {
|
|
205
|
+
throw rejected("The selected OpenCode model does not support this image format.");
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function offeredFunctions(params) {
|
|
209
|
+
return new Set(params.tools?.flatMap(tool => tool.type === "function" ? [tool.function.name] : []));
|
|
210
|
+
}
|
|
211
|
+
function validateTurn(finish, calls, offered, strict) {
|
|
212
|
+
const ids = new Set();
|
|
213
|
+
for (const call of calls) {
|
|
214
|
+
if (!offered.has(call.name))
|
|
215
|
+
throw rejected("OpenCode requested a tool that was not offered for this turn.");
|
|
216
|
+
if (!call.id || ids.has(call.id))
|
|
217
|
+
throw rejected("OpenCode returned an invalid tool call ID.");
|
|
218
|
+
ids.add(call.id);
|
|
219
|
+
}
|
|
220
|
+
if (finish === "tool_calls" && calls.length > 0)
|
|
221
|
+
return;
|
|
222
|
+
if (!calls.length && (finish === "stop" || (!strict && (finish === "length" || finish === "content_filter"))))
|
|
223
|
+
return;
|
|
224
|
+
throw new LLMResponseIncompleteError("OpenCode returned an incomplete or inconsistent finish reason");
|
|
225
|
+
}
|
|
226
|
+
function recordToolDelta(calls, delta, offered) {
|
|
227
|
+
if (!offered.size)
|
|
228
|
+
throw rejected("OpenCode requested a tool that was not offered for this turn.");
|
|
229
|
+
const index = delta.index;
|
|
230
|
+
if (!Number.isSafeInteger(index) || index < 0) {
|
|
231
|
+
throw rejected("OpenCode returned an invalid tool call index.");
|
|
232
|
+
}
|
|
233
|
+
// Parallel calls can arrive out of order. Keep the shared coordinator's array dense and bind fragments by provider index.
|
|
234
|
+
const call = calls.get(index) ?? { id: "", name: "", slot: calls.size };
|
|
235
|
+
if (delta.id)
|
|
236
|
+
call.id = delta.id;
|
|
237
|
+
if (delta.function?.name) {
|
|
238
|
+
// Some gateways split names across deltas. The shared decoder expects the current name.
|
|
239
|
+
call.name += delta.function.name;
|
|
240
|
+
if (![...offered].some(candidate => candidate.startsWith(call.name))) {
|
|
241
|
+
throw rejected("OpenCode requested a tool that was not offered for this turn.");
|
|
242
|
+
}
|
|
243
|
+
delta.function.name = call.name;
|
|
244
|
+
}
|
|
245
|
+
calls.set(index, call);
|
|
246
|
+
delta.index = call.slot;
|
|
247
|
+
}
|
|
248
|
+
async function* readStream(stream, signal, format, offered, requireComplete, promptJson) {
|
|
249
|
+
try {
|
|
250
|
+
let terminal;
|
|
251
|
+
const calls = new Map();
|
|
252
|
+
const text = [];
|
|
253
|
+
for await (const chunk of stream) {
|
|
254
|
+
signal.throwIfAborted();
|
|
255
|
+
if (!hasFunctionTools(chunk))
|
|
256
|
+
throw createAIExecutionFailure("provider_request_rejected");
|
|
257
|
+
const choice = chunk.choices[0];
|
|
258
|
+
if (terminal && (choice?.finish_reason || choice?.delta.content || choice?.delta.tool_calls?.length || readNormalizedReasoning(choice?.delta))) {
|
|
259
|
+
throw new LLMResponseIncompleteError("OpenCode sent more response data after the finish reason");
|
|
260
|
+
}
|
|
261
|
+
for (const delta of choice?.delta.tool_calls ?? [])
|
|
262
|
+
recordToolDelta(calls, delta, offered);
|
|
263
|
+
if (choice?.finish_reason) {
|
|
264
|
+
if ([...calls.keys()].some(index => index >= calls.size))
|
|
265
|
+
throw rejected("OpenCode returned incomplete tool call indices.");
|
|
266
|
+
validateTurn(choice.finish_reason, [...calls.values()], offered, Boolean(format || requireComplete));
|
|
267
|
+
terminal = choice.finish_reason;
|
|
268
|
+
}
|
|
269
|
+
if (format && choice?.delta.content) {
|
|
270
|
+
text.push(choice.delta.content);
|
|
271
|
+
if (promptJson)
|
|
272
|
+
delete choice.delta.content;
|
|
273
|
+
}
|
|
274
|
+
if (promptJson && format && choice?.finish_reason) {
|
|
275
|
+
const content = terminal === "stop" ? validateJsonOutput(text.join(""), format, true) : text.join("");
|
|
276
|
+
if (content) {
|
|
277
|
+
// Deliver the validated answer (or an intermediate tool-turn preamble) before the stop frame.
|
|
278
|
+
yield { choices: [{ index: choice.index, delta: { content }, finish_reason: null }] };
|
|
279
|
+
signal.throwIfAborted();
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
if (chunk.usage)
|
|
283
|
+
chunk.usage = normalizeUsage(chunk.usage);
|
|
284
|
+
yield chunk;
|
|
285
|
+
}
|
|
286
|
+
signal.throwIfAborted();
|
|
287
|
+
if (!terminal)
|
|
288
|
+
throw new LLMResponseIncompleteError("OpenCode stream ended without a finish reason");
|
|
289
|
+
if (format && !promptJson && terminal === "stop")
|
|
290
|
+
validateJsonOutput(text.join(""), format);
|
|
291
|
+
}
|
|
292
|
+
catch (error) {
|
|
293
|
+
throw serviceFailure(error, signal);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
function hasFunctionTools(chunk) {
|
|
297
|
+
return chunk.choices.every(choice => choice.delta.tool_calls?.every(call => call.type === undefined || call.type === "function") !== false);
|
|
298
|
+
}
|
|
299
|
+
function validateJsonOutput(text, format, promptJson = false) {
|
|
300
|
+
try {
|
|
301
|
+
const raw = text ?? "";
|
|
302
|
+
// A prompt-based response may wrap its entire JSON object in one Markdown fence.
|
|
303
|
+
const fence = promptJson ? /^```(?:json)?[ \t]*\r?\n([\s\S]*?)\r?\n```$/i.exec(raw.trim()) : undefined;
|
|
304
|
+
const content = fence ? fence[1] : raw;
|
|
305
|
+
const json = JSON.parse(content);
|
|
306
|
+
if (format.type === "json_schema" && format.json_schema.schema) {
|
|
307
|
+
const schema = format.json_schema.schema;
|
|
308
|
+
const dialect = String(schema.$schema ?? "").replace(/#$/, "");
|
|
309
|
+
const Validator = dialect.endsWith("/2020-12/schema") ? Ajv2020 : dialect.endsWith("/2019-09/schema") ? Ajv2019 : Ajv;
|
|
310
|
+
// Response schemas belong to this request. An invalid gateway response must not complete the Run.
|
|
311
|
+
const validate = new Validator({ strict: false, logger: false, ownProperties: true, formats: fullFormats }).compile(schema);
|
|
312
|
+
if (!("$async" in validate) && validate(json))
|
|
313
|
+
return content;
|
|
314
|
+
}
|
|
315
|
+
else if (json !== null && typeof json === "object" && !Array.isArray(json))
|
|
316
|
+
return content;
|
|
317
|
+
}
|
|
318
|
+
catch { /* Report a bounded failure, excluding provider text. */ }
|
|
319
|
+
throw new LLMResponseIncompleteError("OpenCode returned invalid structured output");
|
|
320
|
+
}
|
|
321
|
+
function normalizeUsage(usage) {
|
|
322
|
+
if (!usage)
|
|
323
|
+
return undefined;
|
|
324
|
+
const billed = consoleUsage.safeParse(usage);
|
|
325
|
+
if (billed.success) {
|
|
326
|
+
// Console input excludes cache reads and writes, while output includes reasoning tokens.
|
|
327
|
+
const tokens = billed.data.opencode.tokens;
|
|
328
|
+
const input = tokens.input + tokens.cache_read + tokens.cache_write_5m + tokens.cache_write_1h;
|
|
329
|
+
return { ...usage, prompt_tokens: input, completion_tokens: tokens.output, total_tokens: input + tokens.output,
|
|
330
|
+
prompt_tokens_details: { ...usage.prompt_tokens_details, cached_tokens: tokens.cache_read },
|
|
331
|
+
completion_tokens_details: { ...usage.completion_tokens_details, reasoning_tokens: tokens.reasoning } };
|
|
332
|
+
}
|
|
333
|
+
// Some Console responses only report standard prompt and completion counts.
|
|
334
|
+
if (!Number.isSafeInteger(usage.prompt_tokens) || !Number.isSafeInteger(usage.completion_tokens))
|
|
335
|
+
return undefined;
|
|
336
|
+
return { ...usage, total_tokens: usage.total_tokens ?? usage.prompt_tokens + usage.completion_tokens };
|
|
337
|
+
}
|
|
338
|
+
function rejected(message) {
|
|
339
|
+
return new AIExecutionFailure({ code: "provider_request_rejected", category: "request_rejected", statusCode: 422, retryable: false, message });
|
|
340
|
+
}
|
|
341
|
+
function serviceFailure(error, signal) {
|
|
342
|
+
if (signal.aborted)
|
|
343
|
+
return createAIExecutionFailure(signal.reason?.name === "TimeoutError" ? "provider_timeout" : "operation_cancelled");
|
|
344
|
+
if (error instanceof LLMResponseIncompleteError || error instanceof AIExecutionFailure)
|
|
345
|
+
return error;
|
|
346
|
+
if (isContextSizeRejection(error))
|
|
347
|
+
return createAIExecutionFailure("llm_context_window_exceeded");
|
|
348
|
+
const status = error && typeof error === "object" && "status" in error ? error.status : undefined;
|
|
349
|
+
if (status === 401)
|
|
350
|
+
return createAIExecutionFailure("provider_authentication_failed");
|
|
351
|
+
if (status === 403)
|
|
352
|
+
return createAIExecutionFailure("provider_access_denied");
|
|
353
|
+
if (status === 404)
|
|
354
|
+
return createAIExecutionFailure("provider_model_unavailable");
|
|
355
|
+
return createAIExecutionFailure(classifyAIExecutionFailure(typeof status === "number" ? { status } : error).code);
|
|
356
|
+
}
|
|
357
|
+
//# sourceMappingURL=OpenCodeService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpenCodeService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAA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MAAM,EAAE,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC;IACzI,IAAI,KAAK,YAAY,0BAA0B,IAAI,KAAK,YAAY,kBAAkB;QAAE,OAAO,KAAK,CAAC;IACrG,IAAI,sBAAsB,CAAC,KAAK,CAAC;QAAE,OAAO,wBAAwB,CAAC,6BAA6B,CAAC,CAAC;IAClG,MAAM,MAAM,GAAG,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IAClG,IAAI,MAAM,KAAK,GAAG;QAAE,OAAO,wBAAwB,CAAC,gCAAgC,CAAC,CAAC;IACtF,IAAI,MAAM,KAAK,GAAG;QAAE,OAAO,wBAAwB,CAAC,wBAAwB,CAAC,CAAC;IAC9E,IAAI,MAAM,KAAK,GAAG;QAAE,OAAO,wBAAwB,CAAC,4BAA4B,CAAC,CAAC;IAClF,OAAO,wBAAwB,CAAC,0BAA0B,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;AACpH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenRouterConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAEvE,eAAO,MAAM,mBAAmB,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"OpenRouterConfig.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAEvE,eAAO,MAAM,mBAAmB,EAAE,OAAO,EAkBxC,CAAC"}
|
|
@@ -1,27 +1,20 @@
|
|
|
1
1
|
export const openRouterModelInfo = [
|
|
2
2
|
{
|
|
3
|
-
id: 'openrouter/
|
|
4
|
-
providerModel: '
|
|
5
|
-
|
|
3
|
+
id: 'openrouter/free',
|
|
4
|
+
providerModel: 'openrouter/free',
|
|
5
|
+
maxContextLength: 200000,
|
|
6
|
+
displayName: 'OpenRouter Free',
|
|
6
7
|
provider: 'OpenRouter',
|
|
7
8
|
type: 'llm',
|
|
8
|
-
defaultSettings: { maxTokens: 2000, temperature: 0.7 }
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
id: 'openrouter/
|
|
12
|
-
providerModel: '
|
|
13
|
-
|
|
11
|
+
id: 'openrouter/nvidia/nemotron-3.5-lightning:free',
|
|
12
|
+
providerModel: 'nvidia/nemotron-3.5-lightning:free',
|
|
13
|
+
maxContextLength: 1000000,
|
|
14
|
+
maxOutputTokens: 65536,
|
|
15
|
+
displayName: 'Nemotron 3.5 Lightning (free)',
|
|
14
16
|
provider: 'OpenRouter',
|
|
15
17
|
type: 'llm',
|
|
16
|
-
defaultSettings: { maxTokens: 2000, temperature: 0.7 }
|
|
17
18
|
},
|
|
18
|
-
{
|
|
19
|
-
id: 'openrouter/openai/o1-preview',
|
|
20
|
-
providerModel: 'openai/o1-preview',
|
|
21
|
-
displayName: 'OpenAI O1 Preview',
|
|
22
|
-
provider: 'OpenRouter',
|
|
23
|
-
type: 'llm',
|
|
24
|
-
defaultSettings: { maxTokens: 2000, temperature: 0.7 }
|
|
25
|
-
}
|
|
26
19
|
];
|
|
27
20
|
//# sourceMappingURL=OpenRouterConfig.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenRouterConfig.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAc;IAC5C;QACE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"OpenRouterConfig.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAc;IAC5C;QACE,EAAE,EAAE,iBAAiB;QACrB,aAAa,EAAE,iBAAiB;QAChC,gBAAgB,EAAE,MAAM;QACxB,WAAW,EAAE,iBAAiB;QAC9B,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,KAAK;KACZ;IACD;QACE,EAAE,EAAE,+CAA+C;QACnD,aAAa,EAAE,oCAAoC;QACnD,gBAAgB,EAAE,OAAO;QACzB,eAAe,EAAE,KAAK;QACtB,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,YAAY;QACtB,IAAI,EAAE,KAAK;KACZ;CACF,CAAC"}
|
|
@@ -43,7 +43,7 @@ let OpenRouterService = class OpenRouterService {
|
|
|
43
43
|
if (!modelInfo) {
|
|
44
44
|
throw new Error(`Model ${model} not found`);
|
|
45
45
|
}
|
|
46
|
-
const modelToUse = modelInfo.providerModel
|
|
46
|
+
const modelToUse = modelInfo.providerModel;
|
|
47
47
|
const params = {
|
|
48
48
|
messages: [...messages],
|
|
49
49
|
model: modelToUse,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenRouterService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAE,mBAAmB,EAAE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AAY,CAAC,CAAC;QAC9C,CAAC;QAED,MAAM,UAAU,GAAG,SAAS,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"OpenRouterService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,MAAM,MAAM,QAAQ,CAAA;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAKhD,OAAO,EAAE,8BAA8B,EAAE,MAAM,wEAAwE,CAAC;AAGjH,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAMwB;IACY;IAN/C,QAAQ,CAAuB;IAExC,MAAM,CAAU;IAExB,YACoD,aAA4B,EAChB,aAA6B;QADzC,kBAAa,GAAb,aAAa,CAAe;QAChB,kBAAa,GAAb,aAAa,CAAgB;QAE3F,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC;IAEO,SAAS;QACf,IAAI,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC;YACzB,OAAO,EAAE,8BAA8B;YACvC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,oCAAoC,CAAC;YAC1E,UAAU,EAAE,CAAC;SACd,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,iBAAiB,CACrB,QAA+C,EAC/C,KAAa,E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AAC,WAAW,EAAE,CAAC,CAAC,CAAC;QACxG,CAAC;QAED,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,KAAa;QAC9B,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;CACF,CAAA;AArEY,iBAAiB;IAD7B,UAAU,EAAE;IAOR,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IAC/B,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;IAAE,WAAA,QAAQ,EAAE,CAAA;qCADqB,aAAa;QACA,aAAa;GAPlF,iBAAiB,CAqE7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionToolExecutor.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAEjG,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAI3D;;GAEG;AACH,qBACa,oBAAqB,YAAW,YAAY;IAKrB,OAAO,CAAC,QAAQ,CAAC,YAAY;IACR,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;IANrF;;OAEG;gBAEgD,YAAY,EAAE,YAAY,EACL,SAAS,CAAC,EAAE,qBAAqB,YAAA,EACpC,eAAe,CAAC,EAAE,kBAAkB,YAAA;IAIzG;;;;;OAKG;IACU,OAAO,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"FunctionToolExecutor.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAC;AACjH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAEjG,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAI3D;;GAEG;AACH,qBACa,oBAAqB,YAAW,YAAY;IAKrB,OAAO,CAAC,QAAQ,CAAC,YAAY;IACR,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC;IANrF;;OAEG;gBAEgD,YAAY,EAAE,YAAY,EACL,SAAS,CAAC,EAAE,qBAAqB,YAAA,EACpC,eAAe,CAAC,EAAE,kBAAkB,YAAA;IAIzG;;;;;OAKG;IACU,OAAO,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,GAAG,CAAC;YA4EvD,uBAAuB;CAgCtC"}
|
|
@@ -77,6 +77,7 @@ let FunctionToolExecutor = class FunctionToolExecutor {
|
|
|
77
77
|
context.abortSignal?.throwIfAborted();
|
|
78
78
|
},
|
|
79
79
|
} : executionContext;
|
|
80
|
+
context.abortSignal?.throwIfAborted();
|
|
80
81
|
return await tool.handle(toolName, callArguments, executionContext.userId, executionContext.conversation?.id, admittedContext);
|
|
81
82
|
}
|
|
82
83
|
async assertMandatoryApproval(params) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunctionToolExecutor.js","sourceRoot":"","sources":["../../../../../../../src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGzD,OAAO,E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/infrastructure/ai/tools/implementations/images/ImageEditingTool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageEditingTool.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAClH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageEditingTool.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAClH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKvD,qBACa,gBAAiB,SAAQ,QAAQ;IAGU,OAAO,CAAC,QAAQ,CAAC,OAAO;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM;IAH1D,QAAQ,CAAC,EAAE,kBAAkB;IAC7B,QAAQ,CAAC,WAAW,0EAA0E;gBACvB,OAAO,EAAE,sBAAsB,EAClD,MAAM,EAAE,aAAa;IAEzE,kBAAkB;IAKlB,YAAY,IAAI,gBAAgB,EAAE;CA+BnC"}
|
|
@@ -16,6 +16,7 @@ import { BaseTool } from '../../base/BaseTool.js';
|
|
|
16
16
|
import { ConfigService } from '@gaia-framework/config';
|
|
17
17
|
import { ImageEditingError } from '../../../../../domain/models/images/ImageEditing.js';
|
|
18
18
|
import { imageOutputToolProperties } from './ImageOutputToolProperties.js';
|
|
19
|
+
import { bindImageEditSelection } from '../../../../../domain/services/media/ImageEditPolicy.js';
|
|
19
20
|
let ImageEditingTool = class ImageEditingTool extends BaseTool {
|
|
20
21
|
editing;
|
|
21
22
|
config;
|
|
@@ -38,15 +39,22 @@ let ImageEditingTool = class ImageEditingTool extends BaseTool {
|
|
|
38
39
|
prompt: { type: 'string', description: 'Requested changes and what must remain unchanged.' },
|
|
39
40
|
model: { type: 'string', enum: this.editing.getCapabilities().models.map(model => model.id), description: `Image editing model. Default: ${this.editing.getCapabilities().defaultModel}.` },
|
|
40
41
|
numberOfImages: { type: 'integer', minimum: 1, maximum: 4 },
|
|
41
|
-
size: { type: 'string', description: 'auto, 1024x1024, 1536x1024, or 1024x1536. 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. Meta uses preset aspect ratios.' },
|
|
42
43
|
}, required: ['inputMediaIds', 'prompt'], additionalProperties: false } },
|
|
43
|
-
approval: { mode: 'always', approvalCategory: 'external_action', summary: 'Send the selected images to the image editor and save new edited images'
|
|
44
|
+
approval: { mode: 'always', approvalCategory: 'external_action', summary: 'Send the selected images to the image editor and save new edited images',
|
|
45
|
+
mandatoryWhen: args => typeof args === 'object' && args !== null && 'maskMediaId' in args },
|
|
44
46
|
handler: (args, userId, conversationId, context) => {
|
|
45
47
|
if (!context?.runId || !context.invocation || !context.conversation?.workingContext
|
|
46
48
|
|| context.userId !== userId || context.conversation.id !== conversationId) {
|
|
47
49
|
throw new ImageEditingError('image_edit_context_required', 'Image editing requires a scoped GAIA Run.', 403);
|
|
48
50
|
}
|
|
49
|
-
|
|
51
|
+
const selection = context.imageEditSelection;
|
|
52
|
+
if (selection && (!context.authorizeDispatch || args?.maskMediaId !== selection.maskMediaId
|
|
53
|
+
|| args?.maskSourceMediaId !== selection.maskSourceMediaId || args?.model !== selection.model)) {
|
|
54
|
+
throw new ImageEditingError('image_edit_approval_required', 'Approve the selected image, painted region and editor before sending.', 403);
|
|
55
|
+
}
|
|
56
|
+
return this.editing.edit(userId, bindImageEditSelection(args, selection), {
|
|
57
|
+
...(selection ? { authorizeDispatch: context.authorizeDispatch } : {}),
|
|
50
58
|
idempotencyKey: `${context.runId}:${context.invocation.providerToolCallId}`,
|
|
51
59
|
abortSignal: context.abortSignal,
|
|
52
60
|
scope: { runId: context.runId, conversationId: context.conversation.id,
|
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;
|
|
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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AC7C,IAAI,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,iBAAiB,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,CAAC,WAAW;2BACtF,IAAI,EAAE,iBAAiB,KAAK,SAAS,CAAC,iBAAiB,IAAI,IAAI,EAAE,KAAK,KAAK,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;wBACjG,MAAM,IAAI,iBAAiB,CAAC,8BAA8B,EAAE,uEAAuE,EAAE,GAAG,CAAC,CAAC;oBAC5I,CAAC;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,sBAAsB,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE;wBACxE,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;wBACtE,cAAc,EAAE,GAAG,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE;wBAC3E,WAAW,EAAE,OAAO,CAAC,WAAW;wBAChC,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE;4BACpE,UAAU,EAAE,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC,UAAU,EAAE;qBAC/D,CAAC,CAAC;gBACL,CAAC,EAAE,CAAC,CAAC;IACP,CAAC;CACF,CAAA;AA1CY,gBAAgB;IAD5B,UAAU,EAAE;IAIE,WAAA,MAAM,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAA;IAClD,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;6CAA0B,aAAa;GAJ9D,gBAAgB,CA0C5B"}
|
package/build/src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.js
CHANGED
|
@@ -42,7 +42,7 @@ let ImageGenerationToolService = class ImageGenerationToolService {
|
|
|
42
42
|
abortSignal: params.abortSignal,
|
|
43
43
|
});
|
|
44
44
|
params.abortSignal?.throwIfAborted();
|
|
45
|
-
const stored = await this.contentMediaService.storeContentMedia(generated.map(url => ({ type: "image", url })), { userId, scope: "tool-generated-images", origin: "generated", listed: true });
|
|
45
|
+
const stored = await this.contentMediaService.storeContentMedia(generated.map(url => ({ type: "image", url })), { userId, scope: "tool-generated-images", origin: "generated", listed: true, abortSignal: params.abortSignal });
|
|
46
46
|
const images = await Promise.all(stored.map(async (item) => {
|
|
47
47
|
if (item.type !== "image")
|
|
48
48
|
throw new Error("Generated image was not registered");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageGenerationToolService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAO/C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AAGjF,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IAIlB;IACuC;IACJ;IACF;IALpD,YAEmB,6BAA6D,EACtB,mBAAwC,EAC5C,eAAgC,EAClC,aAA4B;QAH7D,kCAA6B,GAA7B,6BAA6B,CAAgC;QACtB,wBAAmB,GAAnB,mBAAmB,CAAqB;QAC5C,oBAAe,GAAf,eAAe,CAAiB;QAClC,kBAAa,GAAb,aAAa,CAAe;IAC7E,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,MAA2B,EAAE,MAAe;QAC9D,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QAChF,IAAI,CAAC;YACH,MAAM,CAAC,WAAW,EAAE,cAAc,EAAE,CAAC;YACrC,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,6BAA6B,CAAC,eAAe,EAAE,CAAC;YAC3F,MAAM,QAAQ,GAAG,IAAI,CAAC,6BAA6B,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;YAC9E,+BAA+B,CAAC,MAAM,EAAE,QAAQ,CAAC,SAAS,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,aAAa,CAAC,EAAE,YAAY,CAAC,CAAC;YACvH,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,cAAc,CAAC;gBAC9C,GAAG,MAAM;gBACT,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,KAAK,EAAE,aAAa;gBACpB,cAAc,EAAE,MAAM,CAAC,cAAc;gBACrC,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,WAAW,EAAE,MAAM,CAAC,WAAW;aAChC,CAAC,CAAC;YACH,MAAM,CAAC,WAAW,EAAE,cAAc,EAAE,CAAC;YACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAC7D,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,CAAoC,CAAC,EACjF,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"ImageGenerationToolService.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAO/C,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,+BAA+B,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDA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