@gaia-framework/backend-core 6.0.1 → 7.1.0-rc.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.
Files changed (730) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +1 -1
  3. package/build/openapi/openapi.json +1596 -132
  4. package/build/openapi/openapi.yaml +1092 -102
  5. package/build/openapi/voice-media-worker.json +1 -1
  6. package/build/openapi/voice-media-worker.yaml +1 -1
  7. package/build/openapi/worker-health.json +1 -1
  8. package/build/openapi/worker-health.yaml +1 -1
  9. package/build/src/config/VoiceMediaConfig.d.ts +1 -0
  10. package/build/src/config/VoiceMediaConfig.d.ts.map +1 -1
  11. package/build/src/config/VoiceMediaConfig.js +5 -0
  12. package/build/src/config/VoiceMediaConfig.js.map +1 -1
  13. package/build/src/config/schema.d.ts +106 -7
  14. package/build/src/config/schema.d.ts.map +1 -1
  15. package/build/src/config/schema.js +79 -7
  16. package/build/src/config/schema.js.map +1 -1
  17. package/build/src/core/application/dtos/llms/responses/LLMInfoDto.d.ts +2 -1
  18. package/build/src/core/application/dtos/llms/responses/LLMInfoDto.d.ts.map +1 -1
  19. package/build/src/core/application/dtos/messages/responses/MessageDto.d.ts +2 -1
  20. package/build/src/core/application/dtos/messages/responses/MessageDto.d.ts.map +1 -1
  21. package/build/src/core/application/dtos/runs/CreateRunRequestDto.d.ts +2 -0
  22. package/build/src/core/application/dtos/runs/CreateRunRequestDto.d.ts.map +1 -1
  23. package/build/src/core/application/mappers/llms/LLMInfoMapper.d.ts.map +1 -1
  24. package/build/src/core/application/mappers/llms/LLMInfoMapper.js +2 -0
  25. package/build/src/core/application/mappers/llms/LLMInfoMapper.js.map +1 -1
  26. package/build/src/core/application/mappers/messages/MessageMapper.d.ts.map +1 -1
  27. package/build/src/core/application/mappers/messages/MessageMapper.js +2 -0
  28. package/build/src/core/application/mappers/messages/MessageMapper.js.map +1 -1
  29. package/build/src/core/application/services/media/DefaultContentMediaService.d.ts +1 -1
  30. package/build/src/core/application/services/media/DefaultContentMediaService.d.ts.map +1 -1
  31. package/build/src/core/application/services/media/DefaultContentMediaService.js +48 -15
  32. package/build/src/core/application/services/media/DefaultContentMediaService.js.map +1 -1
  33. package/build/src/core/application/services/media/ImageAppServiceImpl.js +1 -1
  34. package/build/src/core/application/services/media/ImageAppServiceImpl.js.map +1 -1
  35. package/build/src/core/application/services/media/ImageEditingAppService.d.ts +7 -1
  36. package/build/src/core/application/services/media/ImageEditingAppService.d.ts.map +1 -1
  37. package/build/src/core/application/services/media/ImageEditingAppServiceImpl.d.ts +6 -1
  38. package/build/src/core/application/services/media/ImageEditingAppServiceImpl.d.ts.map +1 -1
  39. package/build/src/core/application/services/media/ImageEditingAppServiceImpl.js +59 -5
  40. package/build/src/core/application/services/media/ImageEditingAppServiceImpl.js.map +1 -1
  41. package/build/src/core/application/services/media/SpeechAppService.d.ts +2 -1
  42. package/build/src/core/application/services/media/SpeechAppService.d.ts.map +1 -1
  43. package/build/src/core/application/services/media/SpeechAppServiceImpl.d.ts +1 -0
  44. package/build/src/core/application/services/media/SpeechAppServiceImpl.d.ts.map +1 -1
  45. package/build/src/core/application/services/media/SpeechAppServiceImpl.js +3 -0
  46. package/build/src/core/application/services/media/SpeechAppServiceImpl.js.map +1 -1
  47. package/build/src/core/application/services/media/VideoGenerationRequestService.js +2 -2
  48. package/build/src/core/application/services/media/VideoGenerationRequestService.js.map +1 -1
  49. package/build/src/core/application/services/realtime/RealtimeTranscriptSession.d.ts +3 -0
  50. package/build/src/core/application/services/realtime/RealtimeTranscriptSession.d.ts.map +1 -1
  51. package/build/src/core/application/services/realtime/RealtimeTranscriptSession.js +62 -0
  52. package/build/src/core/application/services/realtime/RealtimeTranscriptSession.js.map +1 -1
  53. package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts +7 -3
  54. package/build/src/core/application/services/runs/RunAppServiceImpl.d.ts.map +1 -1
  55. package/build/src/core/application/services/runs/RunAppServiceImpl.js +79 -17
  56. package/build/src/core/application/services/runs/RunAppServiceImpl.js.map +1 -1
  57. package/build/src/core/application/services/runs/RunExecutionSessionFactoryImpl.js +1 -1
  58. package/build/src/core/application/services/runs/RunExecutionSessionFactoryImpl.js.map +1 -1
  59. package/build/src/core/application/services/tasks/ScheduledRunDispatchService.d.ts.map +1 -1
  60. package/build/src/core/application/services/tasks/ScheduledRunDispatchService.js +9 -2
  61. package/build/src/core/application/services/tasks/ScheduledRunDispatchService.js.map +1 -1
  62. package/build/src/core/application/services/voice/intake/VoiceTranscriptService.d.ts +1 -1
  63. package/build/src/core/application/services/voice/intake/VoiceTranscriptService.d.ts.map +1 -1
  64. package/build/src/core/application/services/voice/intake/VoiceTranscriptService.js +17 -14
  65. package/build/src/core/application/services/voice/intake/VoiceTranscriptService.js.map +1 -1
  66. package/build/src/core/application/services/voice/review/VoiceReviewInput.d.ts +1 -0
  67. package/build/src/core/application/services/voice/review/VoiceReviewInput.d.ts.map +1 -1
  68. package/build/src/core/application/services/voice/session/ActiveVoiceSession.d.ts +2 -0
  69. package/build/src/core/application/services/voice/session/ActiveVoiceSession.d.ts.map +1 -1
  70. package/build/src/core/application/services/voice/session/ActiveVoiceSession.js +37 -12
  71. package/build/src/core/application/services/voice/session/ActiveVoiceSession.js.map +1 -1
  72. package/build/src/core/application/services/voice/session/VoiceContextService.js +1 -1
  73. package/build/src/core/application/services/voice/session/VoiceContextService.js.map +1 -1
  74. package/build/src/core/application/services/voice/session/VoiceSessionAppService.js +1 -1
  75. package/build/src/core/application/services/voice/session/VoiceSessionAppService.js.map +1 -1
  76. package/build/src/core/domain/factories/speech/SpeechProviderFactory.d.ts +1 -0
  77. package/build/src/core/domain/factories/speech/SpeechProviderFactory.d.ts.map +1 -1
  78. package/build/src/core/domain/factories/speech/SpeechProviderFactory.js +3 -0
  79. package/build/src/core/domain/factories/speech/SpeechProviderFactory.js.map +1 -1
  80. package/build/src/core/domain/models/images/ImageEditing.d.ts +9 -0
  81. package/build/src/core/domain/models/images/ImageEditing.d.ts.map +1 -1
  82. package/build/src/core/domain/models/images/ImageEditing.js +2 -1
  83. package/build/src/core/domain/models/images/ImageEditing.js.map +1 -1
  84. package/build/src/core/domain/models/images/ImageOutputOptions.js +1 -1
  85. package/build/src/core/domain/models/llms/LLMInfo.d.ts +2 -1
  86. package/build/src/core/domain/models/llms/LLMInfo.d.ts.map +1 -1
  87. package/build/src/core/domain/models/messages/Message.d.ts +8 -0
  88. package/build/src/core/domain/models/messages/Message.d.ts.map +1 -1
  89. package/build/src/core/domain/models/runs/RunApproval.d.ts +1 -1
  90. package/build/src/core/domain/models/runs/RunApproval.d.ts.map +1 -1
  91. package/build/src/core/domain/models/runs/RunApproval.js.map +1 -1
  92. package/build/src/core/domain/models/speech/RealtimeTranslationLanguage.d.ts +10 -0
  93. package/build/src/core/domain/models/speech/RealtimeTranslationLanguage.d.ts.map +1 -1
  94. package/build/src/core/domain/models/speech/Transcription.d.ts +1 -0
  95. package/build/src/core/domain/models/speech/Transcription.d.ts.map +1 -1
  96. package/build/src/core/domain/models/tools/ToolExecutionContext.d.ts +2 -0
  97. package/build/src/core/domain/models/tools/ToolExecutionContext.d.ts.map +1 -1
  98. package/build/src/core/domain/models/videos/VideoGenerationRequest.d.ts +2 -0
  99. package/build/src/core/domain/models/videos/VideoGenerationRequest.d.ts.map +1 -1
  100. package/build/src/core/domain/models/videos/VideoGenerationRequest.js +5 -1
  101. package/build/src/core/domain/models/videos/VideoGenerationRequest.js.map +1 -1
  102. package/build/src/core/domain/models/voice/VoiceSession.d.ts +2 -0
  103. package/build/src/core/domain/models/voice/VoiceSession.d.ts.map +1 -1
  104. package/build/src/core/domain/params/chat/LLMExecutionRequest.d.ts +2 -0
  105. package/build/src/core/domain/params/chat/LLMExecutionRequest.d.ts.map +1 -1
  106. package/build/src/core/domain/ports/ai/images/ImageEditingProvider.d.ts +2 -0
  107. package/build/src/core/domain/ports/ai/images/ImageEditingProvider.d.ts.map +1 -1
  108. package/build/src/core/domain/ports/ai/llm/LLMProvider.d.ts +2 -0
  109. package/build/src/core/domain/ports/ai/llm/LLMProvider.d.ts.map +1 -1
  110. package/build/src/core/domain/ports/repositories/voice/VoiceSessionRepository.d.ts +3 -1
  111. package/build/src/core/domain/ports/repositories/voice/VoiceSessionRepository.d.ts.map +1 -1
  112. package/build/src/core/domain/ports/services/assurance/AssuranceEvaluationService.d.ts +1 -1
  113. package/build/src/core/domain/ports/services/assurance/AssuranceEvaluationService.d.ts.map +1 -1
  114. package/build/src/core/domain/ports/services/media/RemoteMediaFetcher.d.ts +1 -0
  115. package/build/src/core/domain/ports/services/media/RemoteMediaFetcher.d.ts.map +1 -1
  116. package/build/src/core/domain/ports/speech/RealtimeTranslationProvider.d.ts +2 -1
  117. package/build/src/core/domain/ports/speech/RealtimeTranslationProvider.d.ts.map +1 -1
  118. package/build/src/core/domain/services/chat/ConversationContextService.d.ts +1 -1
  119. package/build/src/core/domain/services/chat/ConversationContextService.d.ts.map +1 -1
  120. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.d.ts +1 -1
  121. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.d.ts.map +1 -1
  122. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.js +12 -3
  123. package/build/src/core/domain/services/chat/ConversationContextServiceImpl.js.map +1 -1
  124. package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.d.ts.map +1 -1
  125. package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js +20 -5
  126. package/build/src/core/domain/services/chat/LLMExecutionServiceImpl.js.map +1 -1
  127. package/build/src/core/domain/services/chat/VideoInputPolicy.d.ts +5 -0
  128. package/build/src/core/domain/services/chat/VideoInputPolicy.d.ts.map +1 -0
  129. package/build/src/core/domain/services/chat/VideoInputPolicy.js +14 -0
  130. package/build/src/core/domain/services/chat/VideoInputPolicy.js.map +1 -0
  131. package/build/src/core/domain/services/media/ImageEditPolicy.d.ts +14 -1
  132. package/build/src/core/domain/services/media/ImageEditPolicy.d.ts.map +1 -1
  133. package/build/src/core/domain/services/media/ImageEditPolicy.js +54 -4
  134. package/build/src/core/domain/services/media/ImageEditPolicy.js.map +1 -1
  135. package/build/src/core/domain/services/media/SpeechService.d.ts +2 -1
  136. package/build/src/core/domain/services/media/SpeechService.d.ts.map +1 -1
  137. package/build/src/core/domain/services/media/SpeechServiceImpl.d.ts +1 -0
  138. package/build/src/core/domain/services/media/SpeechServiceImpl.d.ts.map +1 -1
  139. package/build/src/core/domain/services/media/SpeechServiceImpl.js +3 -0
  140. package/build/src/core/domain/services/media/SpeechServiceImpl.js.map +1 -1
  141. package/build/src/core/domain/services/media/TranscriptionPolicy.js +1 -1
  142. package/build/src/core/domain/services/media/TranscriptionPolicy.js.map +1 -1
  143. package/build/src/core/domain/services/models/ModelServiceImpl.d.ts +1 -0
  144. package/build/src/core/domain/services/models/ModelServiceImpl.d.ts.map +1 -1
  145. package/build/src/core/domain/services/models/ModelServiceImpl.js +33 -32
  146. package/build/src/core/domain/services/models/ModelServiceImpl.js.map +1 -1
  147. package/build/src/core/domain/services/runs/NativeRunEngine.d.ts.map +1 -1
  148. package/build/src/core/domain/services/runs/NativeRunEngine.js +6 -1
  149. package/build/src/core/domain/services/runs/NativeRunEngine.js.map +1 -1
  150. package/build/src/core/domain/services/runs/RunEngine.d.ts +2 -0
  151. package/build/src/core/domain/services/runs/RunEngine.d.ts.map +1 -1
  152. package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts +2 -0
  153. package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.d.ts.map +1 -1
  154. package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js +10 -4
  155. package/build/src/core/domain/services/runs/RunToolApprovalProviderCapability.js.map +1 -1
  156. package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.d.ts +1 -0
  157. package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.d.ts.map +1 -1
  158. package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.js +1 -0
  159. package/build/src/core/domain/services/tools/ToolExecutionContextPolicy.js.map +1 -1
  160. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.d.ts +8 -0
  161. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.d.ts.map +1 -0
  162. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.js +16 -0
  163. package/build/src/core/infrastructure/ai/alibaba/AlibabaWorkspace.js.map +1 -0
  164. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.d.ts +2 -3
  165. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.d.ts.map +1 -1
  166. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.js +42 -17
  167. package/build/src/core/infrastructure/ai/embedding/providers/google/GoogleAIEmbeddingService.js.map +1 -1
  168. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.d.ts +15 -0
  169. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.d.ts.map +1 -0
  170. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.js +21 -0
  171. package/build/src/core/infrastructure/ai/google/GoogleGenAiConnection.js.map +1 -0
  172. package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.d.ts +2 -0
  173. package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.d.ts.map +1 -0
  174. package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.js +5 -0
  175. package/build/src/core/infrastructure/ai/images/AnimatedPngFixture.test-support.js.map +1 -0
  176. package/build/src/core/infrastructure/ai/images/ImageOutputBytes.d.ts +1 -0
  177. package/build/src/core/infrastructure/ai/images/ImageOutputBytes.d.ts.map +1 -1
  178. package/build/src/core/infrastructure/ai/images/ImageOutputBytes.js +9 -3
  179. package/build/src/core/infrastructure/ai/images/ImageOutputBytes.js.map +1 -1
  180. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.d.ts +36 -0
  181. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.d.ts.map +1 -0
  182. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.js +108 -0
  183. package/build/src/core/infrastructure/ai/images/alibaba/QwenImageProviders.js.map +1 -0
  184. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.d.ts +20 -0
  185. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.d.ts.map +1 -0
  186. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.js +52 -0
  187. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageClient.js.map +1 -0
  188. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.d.ts +13 -0
  189. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.d.ts.map +1 -0
  190. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.js +137 -0
  191. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageEditingProvider.js.map +1 -0
  192. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.d.ts +3 -37
  193. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.d.ts.map +1 -1
  194. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.js +52 -208
  195. package/build/src/core/infrastructure/ai/images/blackforestlabs/BlackForestLabsImageGenerationProvider.js.map +1 -1
  196. package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.d.ts.map +1 -1
  197. package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.js +11 -3
  198. package/build/src/core/infrastructure/ai/images/editing/OpenAICompatibleImageEditingProvider.js.map +1 -1
  199. package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.d.ts +12 -0
  200. package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.d.ts.map +1 -0
  201. package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.js +39 -0
  202. package/build/src/core/infrastructure/ai/images/editing/OpenAIImageEditMask.js.map +1 -0
  203. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.d.ts +3 -3
  204. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.d.ts.map +1 -1
  205. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.js +36 -25
  206. package/build/src/core/infrastructure/ai/images/google/GoogleAIImageGenerationProvider.js.map +1 -1
  207. package/build/src/core/infrastructure/ai/images/openai/OpenAIImageModels.d.ts +1 -1
  208. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.d.ts +12 -0
  209. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.d.ts.map +1 -0
  210. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.js +97 -0
  211. package/build/src/core/infrastructure/ai/images/togetherai/TogetherImageGenerationProvider.js.map +1 -0
  212. package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.d.ts +32 -0
  213. package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.d.ts.map +1 -0
  214. package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.js +80 -0
  215. package/build/src/core/infrastructure/ai/llm/base/realtime/NativeRealtimeApprovalStore.js.map +1 -0
  216. package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.d.ts +23 -0
  217. package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.d.ts.map +1 -0
  218. package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.js +66 -0
  219. package/build/src/core/infrastructure/ai/llm/base/realtime/RealtimeToolInvocationBuilder.js.map +1 -0
  220. package/build/src/core/infrastructure/ai/llm/context/codecs/RunMediaContextCodecs.js +3 -1
  221. package/build/src/core/infrastructure/ai/llm/context/codecs/RunMediaContextCodecs.js.map +1 -1
  222. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.d.ts +12 -0
  223. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.d.ts.map +1 -0
  224. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.js +46 -0
  225. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaCatalog.js.map +1 -0
  226. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.d.ts +24 -0
  227. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.d.ts.map +1 -0
  228. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.js +100 -0
  229. package/build/src/core/infrastructure/ai/llm/providers/alibaba/AlibabaLLMProvider.js.map +1 -0
  230. package/build/src/core/infrastructure/ai/llm/providers/azure/services/AzureFoundryService.d.ts +1 -1
  231. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.d.ts +53 -0
  232. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.d.ts.map +1 -0
  233. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.js +178 -0
  234. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockCatalog.js.map +1 -0
  235. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.d.ts +19 -0
  236. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.d.ts.map +1 -0
  237. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.js +59 -0
  238. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockLLMProvider.js.map +1 -0
  239. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.d.ts +8 -0
  240. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.d.ts.map +1 -0
  241. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.js +72 -0
  242. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockMessages.js.map +1 -0
  243. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.d.ts +28 -0
  244. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.d.ts.map +1 -0
  245. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.js +117 -0
  246. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockOutput.js.map +1 -0
  247. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.d.ts +44 -0
  248. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.d.ts.map +1 -0
  249. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.js +148 -0
  250. package/build/src/core/infrastructure/ai/llm/providers/bedrock/BedrockService.js.map +1 -0
  251. package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.d.ts.map +1 -1
  252. package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.js +11 -15
  253. package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasConfig.js.map +1 -1
  254. package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.d.ts.map +1 -1
  255. package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.js +3 -5
  256. package/build/src/core/infrastructure/ai/llm/providers/cerebras/CerebrasService.js.map +1 -1
  257. package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.d.ts +2 -1
  258. package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.d.ts.map +1 -1
  259. package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.js +33 -38
  260. package/build/src/core/infrastructure/ai/llm/providers/foundry-local/FoundryLocalService.js.map +1 -1
  261. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.d.ts +6 -2
  262. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.d.ts.map +1 -1
  263. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.js +47 -37
  264. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleAIService.js.map +1 -1
  265. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.d.ts +3 -1
  266. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.d.ts.map +1 -1
  267. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.js +16 -8
  268. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleApprovalCoordinator.js.map +1 -1
  269. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.d.ts +12 -0
  270. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.d.ts.map +1 -0
  271. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.js +12 -0
  272. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleChatRoute.js.map +1 -0
  273. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.d.ts.map +1 -1
  274. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js +6 -2
  275. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleConfig.js.map +1 -1
  276. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.d.ts +1 -1
  277. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.d.ts.map +1 -1
  278. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.js +12 -6
  279. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleLLMProvider.js.map +1 -1
  280. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.d.ts.map +1 -1
  281. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js +4 -1
  282. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleStructuredOutputPolicy.js.map +1 -1
  283. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.d.ts +1 -1
  284. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.d.ts.map +1 -1
  285. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.js +14 -1
  286. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleTokenCountRequest.js.map +1 -1
  287. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.d.ts +1 -0
  288. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.d.ts.map +1 -1
  289. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.js +2 -2
  290. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleToolLoop.js.map +1 -1
  291. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.d.ts +19 -0
  292. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.d.ts.map +1 -0
  293. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.js +170 -0
  294. package/build/src/core/infrastructure/ai/llm/providers/google/GoogleVideoFiles.js.map +1 -0
  295. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.d.ts +4 -0
  296. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.d.ts.map +1 -0
  297. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.js +42 -0
  298. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatProfiles.js.map +1 -0
  299. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.d.ts +25 -0
  300. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.d.ts.map +1 -0
  301. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.js +106 -0
  302. package/build/src/core/infrastructure/ai/llm/providers/google/VertexChatVideo.js.map +1 -0
  303. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts +10 -0
  304. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.d.ts.map +1 -0
  305. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js +48 -0
  306. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleLiveSocket.js.map +1 -0
  307. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts +9 -1
  308. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.d.ts.map +1 -1
  309. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js +21 -4
  310. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeConfig.js.map +1 -1
  311. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts +11 -2
  312. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.d.ts.map +1 -1
  313. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js +72 -42
  314. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeEventHandlerREgistry.js.map +1 -1
  315. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts +8 -2
  316. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.d.ts.map +1 -1
  317. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js +72 -34
  318. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeProvider.js.map +1 -1
  319. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.d.ts +14 -6
  320. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.d.ts.map +1 -1
  321. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.js +74 -28
  322. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeSession.js.map +1 -1
  323. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts +27 -0
  324. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.d.ts.map +1 -0
  325. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js +138 -0
  326. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolApprovals.js.map +1 -0
  327. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.d.ts +10 -0
  328. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.d.ts.map +1 -0
  329. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.js +43 -0
  330. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeToolContracts.js.map +1 -0
  331. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts +49 -0
  332. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.d.ts.map +1 -0
  333. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js +151 -0
  334. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/GoogleRealtimeTranslationProvider.js.map +1 -0
  335. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.d.ts +9 -2
  336. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.d.ts.map +1 -1
  337. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.js +4 -1
  338. package/build/src/core/infrastructure/ai/llm/providers/google/realtime/types.js.map +1 -1
  339. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.d.ts +10 -0
  340. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.d.ts.map +1 -0
  341. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.js +74 -0
  342. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceCatalog.js.map +1 -0
  343. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.d.ts +25 -0
  344. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.d.ts.map +1 -0
  345. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.js +104 -0
  346. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceLLMProvider.js.map +1 -0
  347. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.d.ts +40 -0
  348. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.d.ts.map +1 -0
  349. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.js +39 -0
  350. package/build/src/core/infrastructure/ai/llm/providers/huggingface/HuggingFaceResponses.js.map +1 -0
  351. package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.d.ts +2 -3
  352. package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.d.ts.map +1 -1
  353. package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.js +11 -7
  354. package/build/src/core/infrastructure/ai/llm/providers/local/LocalLLMChatProviderService.js.map +1 -1
  355. package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.d.ts.map +1 -1
  356. package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.js +2 -30
  357. package/build/src/core/infrastructure/ai/llm/providers/meta/MetaLLMProvider.js.map +1 -1
  358. package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.d.ts.map +1 -1
  359. package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.js +18 -13
  360. package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralConfig.js.map +1 -1
  361. package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.d.ts.map +1 -1
  362. package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.js +16 -1
  363. package/build/src/core/infrastructure/ai/llm/providers/mistral/MistralService.js.map +1 -1
  364. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.d.ts +9 -0
  365. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.d.ts.map +1 -0
  366. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.js +87 -0
  367. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaCatalog.js.map +1 -0
  368. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.d.ts +2 -2
  369. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.d.ts.map +1 -1
  370. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.js +7 -10
  371. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaService.js.map +1 -1
  372. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.d.ts +40 -0
  373. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.d.ts.map +1 -0
  374. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.js +296 -0
  375. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaCloudService.js.map +1 -0
  376. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.d.ts +14 -4
  377. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.d.ts.map +1 -1
  378. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.js +35 -5
  379. package/build/src/core/infrastructure/ai/llm/providers/ollama/OllamaLLMProvider.js.map +1 -1
  380. package/build/src/core/infrastructure/ai/llm/providers/openai/chat-completions/OpenAIChatCompletionsService.d.ts +1 -1
  381. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.d.ts +5 -2
  382. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.d.ts.map +1 -1
  383. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.js +25 -1
  384. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveConfig.js.map +1 -1
  385. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveMediaProvider.js +1 -1
  386. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveMediaProvider.js.map +1 -1
  387. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.d.ts.map +1 -1
  388. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.js +6 -4
  389. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveProvider.js.map +1 -1
  390. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.d.ts +3 -4
  391. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.d.ts.map +1 -1
  392. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.js +13 -51
  393. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptPlayback.js.map +1 -1
  394. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.d.ts +4 -0
  395. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.d.ts.map +1 -0
  396. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.js +163 -0
  397. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveReceiptSpeech.js.map +1 -0
  398. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.d.ts +9 -2
  399. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.d.ts.map +1 -1
  400. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.js +24 -9
  401. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcConnection.js.map +1 -1
  402. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.d.ts.map +1 -1
  403. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.js +4 -0
  404. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAILiveRtcEventMapper.js.map +1 -1
  405. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.d.ts.map +1 -1
  406. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.js +12 -4
  407. package/build/src/core/infrastructure/ai/llm/providers/openai/live/OpenAIRealtimeReceiptSpeech.js.map +1 -1
  408. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.d.ts +3 -21
  409. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.d.ts.map +1 -1
  410. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.js +2 -64
  411. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeDisplayContentBuilder.js.map +1 -1
  412. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.d.ts +1 -5
  413. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.d.ts.map +1 -1
  414. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.js +12 -87
  415. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeEventHandlerRegistry.js.map +1 -1
  416. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.d.ts +11 -1
  417. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.d.ts.map +1 -1
  418. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.js +73 -73
  419. package/build/src/core/infrastructure/ai/llm/providers/openai/realtime/OpenAIRealtimeTranslationProvider.js.map +1 -1
  420. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/OpenAIResponsesApiService.d.ts +1 -1
  421. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.d.ts +5 -0
  422. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.d.ts.map +1 -0
  423. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.js +33 -0
  424. package/build/src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.js.map +1 -0
  425. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.d.ts +25 -0
  426. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.d.ts.map +1 -0
  427. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.js +152 -0
  428. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.js.map +1 -0
  429. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.d.ts +22 -0
  430. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.d.ts.map +1 -0
  431. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.js +54 -0
  432. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.js.map +1 -0
  433. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.d.ts +31 -0
  434. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.d.ts.map +1 -0
  435. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.js +357 -0
  436. package/build/src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.js.map +1 -0
  437. package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.d.ts.map +1 -1
  438. package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.js +9 -16
  439. package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterConfig.js.map +1 -1
  440. package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.js +1 -1
  441. package/build/src/core/infrastructure/ai/llm/providers/openrouter/OpenRouterService.js.map +1 -1
  442. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.d.ts +13 -0
  443. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.d.ts.map +1 -0
  444. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.js +95 -0
  445. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherCatalog.js.map +1 -0
  446. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.d.ts +29 -0
  447. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.d.ts.map +1 -0
  448. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.js +167 -0
  449. package/build/src/core/infrastructure/ai/llm/providers/togetherai/TogetherLLMProvider.js.map +1 -0
  450. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.d.ts +5 -0
  451. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.d.ts.map +1 -0
  452. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.js +26 -0
  453. package/build/src/core/infrastructure/ai/speech/GoogleSpeechConnection.js.map +1 -0
  454. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.d.ts +7 -7
  455. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.d.ts.map +1 -1
  456. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.js +159 -63
  457. package/build/src/core/infrastructure/ai/speech/stt/AzureSpeechToTextProvider.js.map +1 -1
  458. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.d.ts +6 -2
  459. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.d.ts.map +1 -1
  460. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.js +22 -13
  461. package/build/src/core/infrastructure/ai/speech/stt/GoogleLiveTranscriptionProvider.js.map +1 -1
  462. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.d.ts +12 -6
  463. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.d.ts.map +1 -1
  464. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.js +64 -15
  465. package/build/src/core/infrastructure/ai/speech/stt/GoogleSpeechToTextProvider.js.map +1 -1
  466. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.d.ts +15 -0
  467. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.d.ts.map +1 -0
  468. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.js +81 -0
  469. package/build/src/core/infrastructure/ai/speech/stt/TogetherSpeechToTextProvider.js.map +1 -0
  470. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.d.ts +26 -0
  471. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.d.ts.map +1 -0
  472. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.js +80 -0
  473. package/build/src/core/infrastructure/ai/speech/tts/TogetherTextToSpeechProvider.js.map +1 -0
  474. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.d.ts +20 -17
  475. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.d.ts.map +1 -1
  476. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.js +20 -9
  477. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTextToSpeechProvider.js.map +1 -1
  478. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.d.ts +2 -1
  479. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.d.ts.map +1 -1
  480. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.js +6 -4
  481. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsProtocol.js.map +1 -1
  482. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.js +24 -8
  483. package/build/src/core/infrastructure/ai/speech/tts/google/GoogleTtsWorker.js.map +1 -1
  484. package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.d.ts.map +1 -1
  485. package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.js +1 -0
  486. package/build/src/core/infrastructure/ai/tools/executors/FunctionToolExecutor.js.map +1 -1
  487. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.d.ts.map +1 -1
  488. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js +11 -3
  489. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageEditingTool.js.map +1 -1
  490. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.js +1 -1
  491. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageGenerationToolService.js.map +1 -1
  492. package/build/src/core/infrastructure/ai/tools/implementations/images/ImageOutputToolProperties.d.ts +1 -1
  493. package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.d.ts +4 -4
  494. package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js +3 -3
  495. package/build/src/core/infrastructure/ai/tools/implementations/images/schemas.js.map +1 -1
  496. package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.d.ts.map +1 -1
  497. package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.js +5 -4
  498. package/build/src/core/infrastructure/ai/tools/implementations/videos/VideoGenerationToolService.js.map +1 -1
  499. package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.d.ts.map +1 -1
  500. package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.js +4 -1
  501. package/build/src/core/infrastructure/ai/videos/VideoGenerationProviderRegistryImpl.js.map +1 -1
  502. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.d.ts +18 -0
  503. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.d.ts.map +1 -0
  504. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.js +88 -0
  505. package/build/src/core/infrastructure/ai/videos/alibaba/HappyHorseVideoProvider.js.map +1 -0
  506. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.d.ts +4 -2
  507. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.d.ts.map +1 -1
  508. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.js +109 -45
  509. package/build/src/core/infrastructure/ai/videos/google/GoogleVideoGenerationProvider.js.map +1 -1
  510. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.d.ts +10 -0
  511. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.d.ts.map +1 -0
  512. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.js +43 -0
  513. package/build/src/core/infrastructure/ai/videos/google/VertexVeoOutput.js.map +1 -0
  514. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.d.ts +3 -2
  515. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.d.ts.map +1 -1
  516. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.js +7 -7
  517. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoAdapter.js.map +1 -1
  518. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.d.ts.map +1 -1
  519. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.js +4 -4
  520. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoOutput.js.map +1 -1
  521. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.d.ts +3 -2
  522. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.d.ts.map +1 -1
  523. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.js +13 -4
  524. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoProtocol.js.map +1 -1
  525. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.js +27 -23
  526. package/build/src/core/infrastructure/ai/videos/google/omni/OmniVideoWorker.js.map +1 -1
  527. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.d.ts +14 -0
  528. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.d.ts.map +1 -0
  529. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.js +113 -0
  530. package/build/src/core/infrastructure/ai/videos/togetherai/TogetherVideoGenerationProvider.js.map +1 -0
  531. package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.d.ts +2 -0
  532. package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.d.ts.map +1 -1
  533. package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.js +18 -6
  534. package/build/src/core/infrastructure/api/v1/controllers/media/ImageEditingController.js.map +1 -1
  535. package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.d.ts +1 -0
  536. package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.d.ts.map +1 -1
  537. package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.js +3 -0
  538. package/build/src/core/infrastructure/api/v1/controllers/media/SpeechController.js.map +1 -1
  539. package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.d.ts.map +1 -1
  540. package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.js +12 -2
  541. package/build/src/core/infrastructure/api/v1/controllers/models/ModelsController.js.map +1 -1
  542. package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.d.ts +32 -12
  543. package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.d.ts.map +1 -1
  544. package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.js +8 -8
  545. package/build/src/core/infrastructure/api/v1/openapi/coreSchemas.js.map +1 -1
  546. package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.d.ts +6 -1
  547. package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.d.ts.map +1 -1
  548. package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.js +8 -1
  549. package/build/src/core/infrastructure/api/v1/requests/images/ImageEditRequestSchema.js.map +1 -1
  550. package/build/src/core/infrastructure/api/v1/requests/images/ImageGenerationRequestSchema.d.ts +1 -1
  551. package/build/src/core/infrastructure/api/v1/requests/images/ImageOutputOptionsSchema.d.ts +1 -1
  552. package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.d.ts +5 -0
  553. package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.d.ts.map +1 -1
  554. package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.js +5 -0
  555. package/build/src/core/infrastructure/api/v1/requests/runs/CreateRunRequestSchema.js.map +1 -1
  556. package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.d.ts.map +1 -1
  557. package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.js +4 -1
  558. package/build/src/core/infrastructure/api/v1/routers/conversations/openapi/ConversationsRouter.openapi.js.map +1 -1
  559. package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.d.ts.map +1 -1
  560. package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.js +1 -0
  561. package/build/src/core/infrastructure/api/v1/routers/media/audio/SpeechRouter.js.map +1 -1
  562. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.d.ts +1 -0
  563. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.d.ts.map +1 -1
  564. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js +16 -0
  565. package/build/src/core/infrastructure/api/v1/routers/media/audio/openapi/SpeechRouter.openapi.js.map +1 -1
  566. package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.d.ts.map +1 -1
  567. package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.js +1 -0
  568. package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.js.map +1 -1
  569. package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.d.ts.map +1 -1
  570. package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.js +11 -2
  571. package/build/src/core/infrastructure/api/v1/routers/media/images/ImagesRouter.openapi.js.map +1 -1
  572. package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.d.ts +1 -0
  573. package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.d.ts.map +1 -1
  574. package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.js +1 -0
  575. package/build/src/core/infrastructure/api/v1/routers/media/live/openapi/VoiceSessionHttpSchemas.js.map +1 -1
  576. package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.d.ts.map +1 -1
  577. package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.js +37 -25
  578. package/build/src/core/infrastructure/api/v1/routers/media/shared/openapi/MediaHttpExamples.js.map +1 -1
  579. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.d.ts +36 -34
  580. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.d.ts.map +1 -1
  581. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.js +51 -17
  582. package/build/src/core/infrastructure/api/v1/routers/models/ModelsRouter.openapi.js.map +1 -1
  583. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.d.ts +4 -0
  584. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.d.ts.map +1 -0
  585. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.js +4 -0
  586. package/build/src/core/infrastructure/api/v1/routers/models/catalogRepresentation.js.map +1 -0
  587. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/DurableRunSchemas.openapi.d.ts +5 -0
  588. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/DurableRunSchemas.openapi.d.ts.map +1 -1
  589. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.d.ts +24 -9
  590. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.d.ts.map +1 -1
  591. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.js +1 -1
  592. package/build/src/core/infrastructure/api/v1/routers/runs/openapi/RunsRouter.openapi.js.map +1 -1
  593. package/build/src/core/infrastructure/di/builtInLLMProviders.d.ts.map +1 -1
  594. package/build/src/core/infrastructure/di/builtInLLMProviders.js +21 -5
  595. package/build/src/core/infrastructure/di/builtInLLMProviders.js.map +1 -1
  596. package/build/src/core/infrastructure/di/index.d.ts.map +1 -1
  597. package/build/src/core/infrastructure/di/index.js +67 -9
  598. package/build/src/core/infrastructure/di/index.js.map +1 -1
  599. package/build/src/core/infrastructure/di/types.d.ts +4 -1
  600. package/build/src/core/infrastructure/di/types.d.ts.map +1 -1
  601. package/build/src/core/infrastructure/di/types.js +4 -1
  602. package/build/src/core/infrastructure/di/types.js.map +1 -1
  603. package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.d.ts.map +1 -1
  604. package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.js +4 -6
  605. package/build/src/core/infrastructure/mappers/chat/default/BasicChatMessageMapper.js.map +1 -1
  606. package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.d.ts.map +1 -1
  607. package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.js +9 -0
  608. package/build/src/core/infrastructure/mappers/chat/google/GeminiChatMessageMapper.js.map +1 -1
  609. package/build/src/core/infrastructure/models/chat/completions/ChatCompletion.d.ts +1 -0
  610. package/build/src/core/infrastructure/models/chat/completions/ChatCompletion.d.ts.map +1 -1
  611. package/build/src/core/infrastructure/models/chat/completions/ChatCompletionMessageCodec.d.ts +1 -0
  612. package/build/src/core/infrastructure/models/chat/completions/ChatCompletionMessageCodec.d.ts.map +1 -1
  613. package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.d.ts +4 -1
  614. package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.d.ts.map +1 -1
  615. package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.js +16 -14
  616. package/build/src/core/infrastructure/models/chat/completions/ChatCompletionResponseValidator.js.map +1 -1
  617. package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.d.ts +2 -1
  618. package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.d.ts.map +1 -1
  619. package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.js +2 -2
  620. package/build/src/core/infrastructure/models/chat/completions/FetchChatCompletionResponse.js.map +1 -1
  621. package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.d.ts +3 -1
  622. package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.d.ts.map +1 -1
  623. package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.js +4 -1
  624. package/build/src/core/infrastructure/models/chat/completions/OpenAICompatibleChatCompletionProtocol.js.map +1 -1
  625. package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.d.ts.map +1 -1
  626. package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.js +6 -0
  627. package/build/src/core/infrastructure/persistence/dao/knex/KnexMessageDao.js.map +1 -1
  628. package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.d.ts.map +1 -1
  629. package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.js +13 -0
  630. package/build/src/core/infrastructure/persistence/repositories/media/KnexMediaReferenceRecorder.js.map +1 -1
  631. package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.d.ts.map +1 -1
  632. package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.js +2 -1
  633. package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceMediaLease.js.map +1 -1
  634. package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.d.ts +4 -2
  635. package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.d.ts.map +1 -1
  636. package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.js +28 -11
  637. package/build/src/core/infrastructure/persistence/repositories/voice/KnexVoiceSessionRepository.js.map +1 -1
  638. package/build/src/core/infrastructure/services/audio/TranscriptionWav.js +1 -1
  639. package/build/src/core/infrastructure/services/audio/TranscriptionWav.js.map +1 -1
  640. package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.d.ts.map +1 -1
  641. package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.js +2 -0
  642. package/build/src/core/infrastructure/services/chat/ChatCompletionStreamService.js.map +1 -1
  643. package/build/src/core/infrastructure/services/chat/ProviderRequestUsage.js +1 -1
  644. package/build/src/core/infrastructure/services/chat/ProviderRequestUsage.js.map +1 -1
  645. package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.d.ts +1 -0
  646. package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.d.ts.map +1 -1
  647. package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.js +44 -0
  648. package/build/src/core/infrastructure/services/media/ImageEditInputServiceImpl.js.map +1 -1
  649. package/build/src/core/infrastructure/services/media/PngAnimation.d.ts +3 -0
  650. package/build/src/core/infrastructure/services/media/PngAnimation.d.ts.map +1 -0
  651. package/build/src/core/infrastructure/services/media/PngAnimation.js +12 -0
  652. package/build/src/core/infrastructure/services/media/PngAnimation.js.map +1 -0
  653. package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.d.ts +2 -0
  654. package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.d.ts.map +1 -1
  655. package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.js +19 -3
  656. package/build/src/core/infrastructure/services/media/SafeHttpRemoteMediaFetcher.js.map +1 -1
  657. package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.d.ts +0 -2
  658. package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.d.ts.map +1 -1
  659. package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.js +19 -26
  660. package/build/src/core/infrastructure/services/runs/approval/DefaultRunApprovalService.js.map +1 -1
  661. package/build/src/core/infrastructure/services/runs/approval/RunToolInvocationLifecycleImpl.js +1 -0
  662. package/build/src/core/infrastructure/services/runs/approval/RunToolInvocationLifecycleImpl.js.map +1 -1
  663. package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.d.ts +8 -0
  664. package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.d.ts.map +1 -0
  665. package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.js +18 -0
  666. package/build/src/core/infrastructure/services/runs/approval/resolveToolApprovalPolicy.js.map +1 -0
  667. package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.d.ts +2 -1
  668. package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.d.ts.map +1 -1
  669. package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.js +23 -18
  670. package/build/src/core/infrastructure/services/security/AssuranceEvaluationServiceImpl.js.map +1 -1
  671. package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.d.ts +1 -1
  672. package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.d.ts.map +1 -1
  673. package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.js +2 -1
  674. package/build/src/core/infrastructure/services/voice/media/VoiceMediaWorkerSession.js.map +1 -1
  675. package/build/src/infrastructure/api/openapi/root.openapi.js +1 -1
  676. package/build/src/infrastructure/api/openapi/root.openapi.js.map +1 -1
  677. package/build/src/infrastructure/server/cors.d.ts.map +1 -1
  678. package/build/src/infrastructure/server/cors.js +0 -1
  679. package/build/src/infrastructure/server/cors.js.map +1 -1
  680. package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.d.ts.map +1 -1
  681. package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.js +2 -1
  682. package/build/src/infrastructure/websockets/adapters/ws/WSAdapter.js.map +1 -1
  683. package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.d.ts.map +1 -1
  684. package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.js +18 -7
  685. package/build/src/infrastructure/websockets/commands/realtime/WebsocketRealtimeTranslationCommand.js.map +1 -1
  686. package/build/src/infrastructure/websockets/mediators/WebsocketMediator.d.ts +1 -0
  687. package/build/src/infrastructure/websockets/mediators/WebsocketMediator.d.ts.map +1 -1
  688. package/build/src/infrastructure/websockets/mediators/WebsocketMediator.js +20 -1
  689. package/build/src/infrastructure/websockets/mediators/WebsocketMediator.js.map +1 -1
  690. package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.d.ts.map +1 -1
  691. package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.js +4 -1
  692. package/build/src/infrastructure/workers/voice/startVoiceMediaHostFromContainer.js.map +1 -1
  693. package/build/src/modules/admin/infrastructure/api/v1/AdminController.d.ts +2 -0
  694. package/build/src/modules/admin/infrastructure/api/v1/AdminController.d.ts.map +1 -1
  695. package/build/src/modules/admin/infrastructure/api/v1/AdminController.js +18 -3
  696. package/build/src/modules/admin/infrastructure/api/v1/AdminController.js.map +1 -1
  697. package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.d.ts.map +1 -1
  698. package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.js +1 -0
  699. package/build/src/modules/admin/infrastructure/api/v1/AdminRouter.js.map +1 -1
  700. package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.d.ts.map +1 -1
  701. package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.js +3 -0
  702. package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminExamples.openapi.js.map +1 -1
  703. package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.d.ts.map +1 -1
  704. package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.js +18 -0
  705. package/build/src/modules/admin/infrastructure/api/v1/openapi/AdminRouter.openapi.js.map +1 -1
  706. package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.d.ts.map +1 -1
  707. package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.js +17 -45
  708. package/build/src/modules/code-review/infrastructure/auth/GitHubActionsWorkflowApprovalConfig.js.map +1 -1
  709. package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.d.ts.map +1 -1
  710. package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.js +8 -2
  711. package/build/src/modules/code-review/infrastructure/persistence/repositories/KnexCodeReviewRepository.js.map +1 -1
  712. package/build/src/modules/workspaces/infrastructure/recovery/operator/authority/observer/ExecutionSources.js +1 -1
  713. package/package.json +4 -3
  714. package/resources/prompts/live-conversation.md +1 -0
  715. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.d.ts +0 -3
  716. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.d.ts.map +0 -1
  717. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.js +0 -64
  718. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsConfig.js.map +0 -1
  719. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.d.ts +0 -26
  720. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.d.ts.map +0 -1
  721. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.js +0 -121
  722. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsLLMProvider.js.map +0 -1
  723. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.d.ts +0 -18
  724. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.d.ts.map +0 -1
  725. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.js +0 -73
  726. package/build/src/core/infrastructure/ai/llm/providers/lambdalabs/LambdaLabsService.js.map +0 -1
  727. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts +0 -3
  728. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.d.ts.map +0 -1
  729. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js +0 -147
  730. package/build/src/core/infrastructure/ai/llm/providers/nvidia/NvidiaConfig.js.map +0 -1
@@ -130,7 +130,7 @@ export declare class OpenAIResponsesApiService {
130
130
  outputSchema?: NonNullable<LLMResponseOptions['outputSchema']>;
131
131
  }, options?: OpenAIResponsesApiFlowOptions & {
132
132
  baseUrl?: string;
133
- }, modelInfoArray?: Array<LLMInfo>, diagnosticContext?: OpenAIApprovalContinuationDiagnosticContext): Promise<import("openai/core/streaming.mjs").Stream<OpenAI.Responses.ResponseStreamEvent> & {
133
+ }, modelInfoArray?: Array<LLMInfo>, diagnosticContext?: OpenAIApprovalContinuationDiagnosticContext): Promise<import("openai/streaming").Stream<OpenAI.Responses.ResponseStreamEvent> & {
134
134
  _request_id?: string | null;
135
135
  }>;
136
136
  private requireModelInfo;
@@ -0,0 +1,5 @@
1
+ import { PortableContextAdapter } from '../../../context/PortableContextAdapter.js';
2
+ import type { OpenAIResponsesApiService } from './OpenAIResponsesApiService.js';
3
+ import type { LLMInfo } from '../../../../../../domain/models/llms/LLMInfo.js';
4
+ export declare function createPortableResponsesContext(responses: OpenAIResponsesApiService, params: Parameters<OpenAIResponsesApiService['getResponse']>[0], transport: NonNullable<Parameters<OpenAIResponsesApiService['getResponse']>[1]>, models: LLMInfo[], info: LLMInfo): PortableContextAdapter<import("openai/resources/responses/responses.js").ResponseInputItem>;
5
+ //# sourceMappingURL=createPortableResponsesContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPortableResponsesContext.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAgC,MAAM,4CAA4C,CAAC;AAIlH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iDAAiD,CAAC;AAE/E,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,yBAAyB,EACpC,MAAM,EAAE,UAAU,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/D,SAAS,EAAE,WAAW,CAAC,UAAU,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/E,MAAM,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,+FA+BjC"}
@@ -0,0 +1,33 @@
1
+ import { reserveContextSummary } from '../../../execution/ModelRequestPolicy.js';
2
+ import { PortableContextAdapter, CONTEXT_SUMMARY_INSTRUCTIONS } from '../../../context/PortableContextAdapter.js';
3
+ import { responsesContextCodec } from '../../../context/codecs/PortableContextCodecs.js';
4
+ import { estimateResponsesRequestTokens } from '../../../context/counting/ResponsesContextTokenEstimator.js';
5
+ import { responseUsage } from '../../../../../services/chat/ProviderRequestUsage.js';
6
+ export function createPortableResponsesContext(responses, params, transport, models, info) {
7
+ const portable = new PortableContextAdapter(info.maxContextLength, params.settings?.maxTokens ?? 8192, responsesContextCodec, {
8
+ countTokens: items => Promise.resolve(estimateResponsesRequestTokens({ model: params.model, input: [...items], instructions: params.instructions ?? '' })),
9
+ countSummaryTokens: history => Promise.resolve(estimateResponsesRequestTokens({ model: params.model, input: [...history], instructions: CONTEXT_SUMMARY_INSTRUCTIONS })),
10
+ summarize: async (history, maxTokens, signal) => {
11
+ const settle = await reserveContextSummary(maxTokens, params.toolExecutionContext);
12
+ const result = await responses.getResponse({
13
+ ...params,
14
+ messages: [...history],
15
+ instructions: CONTEXT_SUMMARY_INSTRUCTIONS,
16
+ tools: [],
17
+ settings: { ...params.settings, maxTokens },
18
+ toolExecutionContext: undefined,
19
+ runId: undefined,
20
+ approvalResumeCheckpoint: undefined,
21
+ }, { ...transport, signal }, models);
22
+ if (result.kind !== 'completed')
23
+ throw new Error('Provider context summary requires a completed response.');
24
+ await settle?.(responseUsage(result.response.usage));
25
+ return result.response.output.flatMap(item => item.type === 'message'
26
+ ? item.content.flatMap(part => part.type === 'output_text' ? [part.text] : []) : []).join('');
27
+ },
28
+ });
29
+ return params.toolExecutionContext?.executionSession
30
+ ? Object.assign(portable, { continuationIdentity: responses.getContinuationIdentity(info.providerModel, transport) })
31
+ : portable;
32
+ }
33
+ //# sourceMappingURL=createPortableResponsesContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPortableResponsesContext.js","sourceRoot":"","sources":["../../../../../../../../../src/core/infrastructure/ai/llm/providers/openai/responses/createPortableResponsesContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,C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ErC,IAAI,MAAM,CAAC,IAAI,KAAK,WAAW;gBAAE,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAAC;YAE5G,MAAM,MAAM,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;YAErD,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,SAAS;gBACnE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClG,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,oBAAoB,EAAE,gBAAgB;QAClD,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,oBAAoB,EAAE,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,CAAC;QACrH,CAAC,CAAC,QAAQ,CAAC;AACf,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { ConfigService } from "@gaia-framework/config";
2
+ import type { LLMInfo } from "../../../../../domain/models/llms/LLMInfo.js";
3
+ export interface OpenCodeModelInfo extends LLMInfo {
4
+ inference: {
5
+ temperature: boolean;
6
+ topP: boolean;
7
+ structuredOutput: boolean;
8
+ imageMimeTypes: readonly string[];
9
+ reasoningField?: "reasoning" | "reasoning_content";
10
+ maxTokensField?: "max_tokens" | "max_completion_tokens";
11
+ };
12
+ }
13
+ export declare class OpenCodeCatalog {
14
+ private readonly config;
15
+ private cached?;
16
+ private loading?;
17
+ private readonly apiKey?;
18
+ constructor(config: ConfigService);
19
+ getModels(): Promise<LLMInfo[]>;
20
+ getModelInfo(id: string): Promise<OpenCodeModelInfo | undefined>;
21
+ getCachedModelInfo(id: string): OpenCodeModelInfo | undefined;
22
+ private models;
23
+ private load;
24
+ }
25
+ //# sourceMappingURL=OpenCodeCatalog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenCodeCatalog.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAmC5E,MAAM,WAAW,iBAAkB,SAAQ,OAAO;IAChD,SAAS,EAAE;QACT,WAAW,EAAE,OAAO,CAAC;QACrB,IAAI,EAAE,OAAO,CAAC;QACd,gBAAgB,EAAE,OAAO,CAAC;QAC1B,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;QAClC,cAAc,CAAC,EAAE,WAAW,GAAG,mBAAmB,CAAC;QACnD,cAAc,CAAC,EAAE,YAAY,GAAG,uBAAuB,CAAC;KACzD,CAAC;CACH;AAiCD,qBACa,eAAe;IAKmB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAJpE,OAAO,CAAC,MAAM,CAAC,CAAgE;IAC/E,OAAO,CAAC,OAAO,CAAC,CAA0C;IAC1D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;gBAE6B,MAAM,EAAE,aAAa;IAI7E,SAAS,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAK/B,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC;IAKtE,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS;YAK/C,MAAM;YAON,IAAI;CAgCnB"}
@@ -0,0 +1,152 @@
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 { z } from "zod";
15
+ import { classifyAIExecutionFailure, createAIExecutionFailure } from "../../../../../domain/errors/AIExecutionFailure.js";
16
+ import CoreTypes from "../../../../di/types.js";
17
+ const CONFIG = "ai.llm.providers.opencode";
18
+ const CATALOG_URL = "https://opencode.ai/inference/v1/models";
19
+ const CACHE_MS = 60_000;
20
+ const knownEfforts = new Set(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
21
+ const modelId = z.string().regex(/^[\w@][\w@.+:-]*(?:\/[\w@][\w@.+:-]*)*$/u);
22
+ const tokenLimit = z.number().int().positive();
23
+ const textPrice = z.object({ price: z.number().nonnegative() });
24
+ const chatModel = z.object({
25
+ id: modelId,
26
+ type: z.literal("chat"),
27
+ name: z.string().optional(),
28
+ canonical_id: z.string().nullish(),
29
+ modalities: z.object({ input: z.array(z.string()), output: z.array(z.string()) }),
30
+ cost: z.object({ text: z.object({ input: textPrice, output: textPrice }) }),
31
+ limit: z.object({ context: tokenLimit, input: tokenLimit.optional(), output: tokenLimit }),
32
+ capabilities: z.object({
33
+ tools: z.object({ supported: z.boolean().optional() }).optional(),
34
+ reasoning: z.object({ supported: z.boolean().optional(), effort: z.array(z.string()).optional() }).optional(),
35
+ temperature: z.boolean().optional(),
36
+ top_p: z.boolean().optional(),
37
+ structured_output: z.boolean().optional(),
38
+ }).optional(),
39
+ api: z.object({
40
+ "chat-completions": z.object({
41
+ compatibility: z.object({ reasoning_field: z.string().optional(), max_tokens_field: z.string().optional() }).optional(),
42
+ }).optional(),
43
+ }).optional(),
44
+ });
45
+ function mapModel(row) {
46
+ const canonical = modelId.safeParse(row.canonical_id);
47
+ const vendorSource = canonical.success && canonical.data.includes("/") ? canonical.data : row.id;
48
+ const vendor = vendorSource.includes("/") ? vendorSource.split("/", 1)[0] : undefined;
49
+ // Including the entire raw ID keeps a qualified route distinct from a short alias on every refresh.
50
+ const route = vendor ? vendor + "/" + row.id : row.id;
51
+ const capabilities = row.capabilities;
52
+ const supportsReasoning = capabilities?.reasoning?.supported === true;
53
+ const efforts = capabilities?.reasoning?.effort?.filter((effort) => knownEfforts.has(effort));
54
+ const imageMimeTypes = row.modalities.input.filter(type => type.startsWith("image/"));
55
+ const compatibility = row.api?.["chat-completions"]?.compatibility;
56
+ const reasoningField = compatibility?.reasoning_field;
57
+ const maxTokensField = compatibility?.max_tokens_field;
58
+ // GAIA reserves output from this window. A lower upstream input cap must also constrain admission.
59
+ const context = Math.min(row.limit.context, row.limit.input ?? row.limit.context);
60
+ return {
61
+ id: "opencode/" + route, providerModel: row.id, displayName: row.name || row.id, provider: "OpenCode", type: "llm",
62
+ supportsTools: capabilities?.tools?.supported === true, supportsInstructions: true, supportsReasoning,
63
+ ...(supportsReasoning && efforts?.length ? { supportedReasoningEfforts: efforts } : {}),
64
+ inputModalities: imageMimeTypes.length ? ["text", "image"] : ["text"], outputModalities: ["text"],
65
+ maxContextLength: context, maxOutputTokens: row.limit.output,
66
+ defaultSettings: { maxTokens: Math.min(4096, row.limit.output, Math.max(1, Math.floor(context / 4))) },
67
+ inference: {
68
+ temperature: capabilities?.temperature === true, topP: capabilities?.top_p === true,
69
+ structuredOutput: capabilities?.structured_output === true, imageMimeTypes,
70
+ ...(reasoningField === "reasoning" || reasoningField === "reasoning_content" ? { reasoningField } : {}),
71
+ ...(maxTokensField === "max_tokens" || maxTokensField === "max_completion_tokens" ? { maxTokensField } : {}),
72
+ },
73
+ };
74
+ }
75
+ let OpenCodeCatalog = class OpenCodeCatalog {
76
+ config;
77
+ cached;
78
+ loading;
79
+ apiKey;
80
+ constructor(config) {
81
+ this.config = config;
82
+ this.apiKey = config.getOptionalString(CONFIG + ".apiKey")?.trim();
83
+ }
84
+ async getModels() {
85
+ const models = await this.models();
86
+ return Array.from(models.values(), ({ inference: _inference, ...model }) => model);
87
+ }
88
+ async getModelInfo(id) {
89
+ if (!id.startsWith("opencode/"))
90
+ return undefined;
91
+ return (await this.models()).get(id);
92
+ }
93
+ getCachedModelInfo(id) {
94
+ if (this.cached && this.cached.expiresAt > Date.now())
95
+ return this.cached.models.get(id);
96
+ return undefined;
97
+ }
98
+ async models() {
99
+ if (!this.apiKey || !this.config.getBoolean(CONFIG + ".enabled"))
100
+ return new Map();
101
+ if (this.cached && this.cached.expiresAt > Date.now())
102
+ return this.cached.models;
103
+ this.loading ??= this.load(this.apiKey).finally(() => { this.loading = undefined; });
104
+ return this.loading;
105
+ }
106
+ async load(key) {
107
+ const signal = AbortSignal.timeout(this.config.getNumber(CONFIG + ".requestTimeoutMs"));
108
+ try {
109
+ const response = await fetch(CATALOG_URL, {
110
+ headers: { Authorization: "Bearer " + key, Accept: "application/json" },
111
+ redirect: "error", signal,
112
+ });
113
+ if (!response.ok) {
114
+ await response.body?.cancel();
115
+ if (response.status === 401)
116
+ throw createAIExecutionFailure("provider_authentication_failed");
117
+ if (response.status === 403)
118
+ throw createAIExecutionFailure("provider_access_denied");
119
+ throw classifyAIExecutionFailure({ status: response.status });
120
+ }
121
+ const { data } = z.object({ data: z.array(z.unknown()) }).parse(await response.json());
122
+ const models = new Map();
123
+ for (const item of data) {
124
+ const result = chatModel.safeParse(item);
125
+ if (!result.success)
126
+ continue;
127
+ const row = result.data;
128
+ if (!row.modalities.input.includes("text") || !row.modalities.output.includes("text"))
129
+ continue;
130
+ // OpenCode restricts free-tier chat to its own clients, including free models without a "-free" suffix.
131
+ if (row.id.endsWith("-free") || (row.cost.text.input.price === 0 && row.cost.text.output.price === 0))
132
+ continue;
133
+ const model = mapModel(row);
134
+ models.set(model.id, model);
135
+ }
136
+ this.cached = { models, expiresAt: Date.now() + CACHE_MS };
137
+ return models;
138
+ }
139
+ catch (error) {
140
+ if (signal.aborted)
141
+ throw createAIExecutionFailure("provider_timeout");
142
+ throw createAIExecutionFailure(classifyAIExecutionFailure(error).code);
143
+ }
144
+ }
145
+ };
146
+ OpenCodeCatalog = __decorate([
147
+ injectable(),
148
+ __param(0, inject(CoreTypes.ConfigService)),
149
+ __metadata("design:paramtypes", [Function])
150
+ ], OpenCodeCatalog);
151
+ export { OpenCodeCatalog };
152
+ //# sourceMappingURL=OpenCodeCatalog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenCodeCatalog.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/opencode/OpenCodeCatalog.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,oDAAoD,CAAC;AAC1H,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,MAAM,MAAM,GAAG,2BAA2B,CAAC;AAC3C,MAAM,WAAW,GAAG,yCAAyC,CAAC;AAC9D,MAAM,QAAQ,GAAG,MAAM,CAAC;AACxB,MAAM,YAAY,GAAG,IAAI,GAAG,CAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AAC5G,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM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,CAAC,MAAM,CAAC,OAAO;oBAAE,SAAS;gBAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC;gBACxB,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;oBAAE,SAAS;gBAChG,wGAAwG;gBACxG,IAAI,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,KAAK,CAAC,CAAC;oBAAE,SAAS;gBAChH,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAC5B,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;YAC9B,CAAC;YACD,IAAI,CAAC,MAAM,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,EAAE,CAAC;YAC3D,OAAO,MAAM,CAAC;QAChB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,MAAM,CAAC,OAAO;gBAAE,MAAM,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;YACvE,MAAM,wBAAwB,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;CACF,CAAA;AA/DY,eAAe;IAD3B,UAAU,EAAE;IAME,WAAA,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;;GALjC,eAAe,CA+D3B"}
@@ -0,0 +1,22 @@
1
+ import type { LLMResponseOptions } from "../../../../../domain/ports/ai/llm/LLMProvider.js";
2
+ import type { LLMSettings } from "../../../../../domain/models/llms/LLMSettings.js";
3
+ import { BaseLLMProvider } from "../../base/BaseLLMProvider.js";
4
+ import { LocalLLMChatProviderService } from "../local/LocalLLMChatProviderService.js";
5
+ import { OpenCodeCatalog } from "./OpenCodeCatalog.js";
6
+ import { OpenCodeService } from "./OpenCodeService.js";
7
+ export declare class OpenCodeLLMProvider extends BaseLLMProvider {
8
+ private readonly catalog;
9
+ private readonly service;
10
+ private readonly chat;
11
+ readonly id = "opencode";
12
+ supportsBoundedSubagentExecution: (_model: string) => boolean;
13
+ constructor(catalog: OpenCodeCatalog, service: OpenCodeService, chat: LocalLLMChatProviderService);
14
+ getModels(): Promise<import("../../../../../../main.js").LLMInfo[]>;
15
+ isValidModel(model: string): Promise<boolean>;
16
+ supportsStructuredOutput(model: string): boolean;
17
+ validateSettings(model: string, settings?: LLMSettings | null): Promise<void>;
18
+ getResponse(options: LLMResponseOptions): Promise<import("../../../../../domain/ports/ai/llm/LLMProvider.js").LLMResponse>;
19
+ getResponseStream(options: LLMResponseOptions): AsyncGenerator<import("../../../../../../main.js").LLMExecutionEvent, any, any>;
20
+ getResponseEvents(options: LLMResponseOptions): AsyncGenerator<import("../../../../../../main.js").LLMExecutionEvent, any, any>;
21
+ }
22
+ //# sourceMappingURL=OpenCodeLLMProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenCodeLLMProvider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AAEpF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBACa,mBAAoB,SAAQ,eAAe;IAKjB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACZ,OAAO,CAAC,QAAQ,CAAC,IAAI;IANtE,QAAQ,CAAC,EAAE,cAAc;IACzB,gCAAgC,GAAI,QAAQ,MAAM,aAAU;gBAGN,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,eAAe,EACZ,IAAI,EAAE,2BAA2B;IAKnG,SAAS;IAEH,YAAY,CAAC,KAAK,EAAE,MAAM;IAEhC,wBAAwB,CAAC,KAAK,EAAE,MAAM;IAIhC,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI;IAInE,WAAW,CAAC,OAAO,EAAE,kBAAkB;IAEvC,iBAAiB,CAAC,OAAO,EAAE,kBAAkB;IAE7C,iBAAiB,CAAC,OAAO,EAAE,kBAAkB;CAC9C"}
@@ -0,0 +1,54 @@
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 CoreTypes from "../../../../di/types.js";
15
+ import { BaseLLMProvider } from "../../base/BaseLLMProvider.js";
16
+ import { LocalLLMChatProviderService } from "../local/LocalLLMChatProviderService.js";
17
+ import { OpenCodeCatalog } from "./OpenCodeCatalog.js";
18
+ import { OpenCodeService } from "./OpenCodeService.js";
19
+ let OpenCodeLLMProvider = class OpenCodeLLMProvider extends BaseLLMProvider {
20
+ catalog;
21
+ service;
22
+ chat;
23
+ id = "opencode";
24
+ supportsBoundedSubagentExecution = (_model) => true;
25
+ constructor(catalog, service, chat) {
26
+ super();
27
+ this.catalog = catalog;
28
+ this.service = service;
29
+ this.chat = chat;
30
+ }
31
+ getModels() { return this.catalog.getModels(); }
32
+ async isValidModel(model) { return Boolean(await this.catalog.getModelInfo(model)); }
33
+ supportsStructuredOutput(model) {
34
+ return this.catalog.getCachedModelInfo(model)?.inference.structuredOutput === true;
35
+ }
36
+ async validateSettings(model, settings) {
37
+ if (settings)
38
+ this.service.validateSettings(await this.service.getModelInfo(model), settings);
39
+ }
40
+ getResponse(options) { return this.chat.getResponse(this.service, options); }
41
+ getResponseStream(options) { return this.chat.getResponseStream(this.service, options); }
42
+ getResponseEvents(options) { return this.chat.getResponseEvents(this.service, options); }
43
+ };
44
+ OpenCodeLLMProvider = __decorate([
45
+ injectable(),
46
+ __param(0, inject(CoreTypes.OpenCodeCatalog)),
47
+ __param(1, inject(CoreTypes.OpenCodeService)),
48
+ __param(2, inject(CoreTypes.LocalLLMChatProviderService)),
49
+ __metadata("design:paramtypes", [OpenCodeCatalog,
50
+ OpenCodeService,
51
+ LocalLLMChatProviderService])
52
+ ], OpenCodeLLMProvider);
53
+ export { OpenCodeLLMProvider };
54
+ //# sourceMappingURL=OpenCodeLLMProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenCodeLLMProvider.js","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/opencode/OpenCodeLLMProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AA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AAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAEjG,iBAAiB,CAAC,OAA2B,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAE7G,iBAAiB,CAAC,OAA2B,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CAC9G,CAAA;AA7BY,mBAAmB;IAD/B,UAAU,EAAE;IAMR,WAAA,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,CAAA;IACjC,WAAA,MAAM,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAA;qCAFe,eAAe;QACf,eAAe;QACN,2BAA2B;GAPxF,mBAAmB,CA6B/B"}
@@ -0,0 +1,31 @@
1
+ import type OpenAI from "openai";
2
+ import type { ChatCompletionMessageParam } from "openai/resources/chat/completions.js";
3
+ import type { ConfigService } from "@gaia-framework/config";
4
+ import type { LLMSettings } from "../../../../../domain/models/llms/LLMSettings.js";
5
+ import type { LLMResponseOptions } from "../../../../../domain/ports/ai/llm/LLMProvider.js";
6
+ import type { OpenAICompatibleChatCompletionChunk } from "../../../../models/chat/completions/OpenAICompatibleChatCompletionProtocol.js";
7
+ import type { ToolProcessor } from "../../../tools/processing/ToolProcessor.js";
8
+ import { type LocalLLMChatAdapter } from "../local/LocalLLMChatProviderService.js";
9
+ import { OpenCodeCatalog, type OpenCodeModelInfo } from "./OpenCodeCatalog.js";
10
+ export declare class OpenCodeService implements LocalLLMChatAdapter {
11
+ private readonly config;
12
+ private readonly catalog;
13
+ private readonly toolProcessor;
14
+ readonly providerId = "opencode";
15
+ readonly preserveToolCallReasoning = true;
16
+ private client?;
17
+ private readonly apiKey?;
18
+ constructor(config: ConfigService, catalog: OpenCodeCatalog, toolProcessor: ToolProcessor);
19
+ getModelInfo(id: string): Promise<OpenCodeModelInfo>;
20
+ validateSettings(model: OpenCodeModelInfo, settings?: LLMSettings | null): void;
21
+ validateRequest(model: OpenCodeModelInfo, options: LLMResponseOptions): Promise<void>;
22
+ complete(messages: readonly ChatCompletionMessageParam[], model: OpenCodeModelInfo, options: LLMResponseOptions): Promise<OpenAI.Chat.Completions.ChatCompletion & {
23
+ _request_id?: string | null;
24
+ }>;
25
+ stream(messages: readonly ChatCompletionMessageParam[], model: OpenCodeModelInfo, options: LLMResponseOptions): Promise<AsyncIterable<OpenAICompatibleChatCompletionChunk>>;
26
+ private requestOptions;
27
+ private buildRequest;
28
+ private responseFormat;
29
+ private getClient;
30
+ }
31
+ //# sourceMappingURL=OpenCodeService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenCodeService.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/infrastructure/ai/llm/providers/opencode/OpenCodeService.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,KAAK,EAAuB,0BAA0B,EAA0C,MAAM,sCAAsC,CAAC;AAGpJ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AAG5F,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,+EAA+E,CAAC;AACzI,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAGhF,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAE5G,OAAO,EAAE,eAAe,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAa/E,qBACa,eAAgB,YAAW,mBAAmB;IAOtB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAC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