@runanywhere/core 0.16.11 → 0.17.1

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 (217) hide show
  1. package/README.md +427 -0
  2. package/RunAnywhereCore.podspec +4 -4
  3. package/android/src/main/jniLibs/arm64-v8a/librac_commons.so +0 -0
  4. package/cpp/HybridRunAnywhereCore.cpp +10 -4
  5. package/cpp/bridges/TelemetryBridge.cpp +10 -3
  6. package/ios/.testlocal +0 -0
  7. package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/RACommons +0 -0
  8. package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/RACommons +0 -0
  9. package/nitrogen/generated/shared/c++/HybridRunAnywhereCoreSpec.hpp +1 -1
  10. package/package.json +12 -11
  11. package/src/Features/VoiceSession/AudioCaptureManager.ts +274 -109
  12. package/src/Features/VoiceSession/AudioPlaybackManager.ts +247 -59
  13. package/src/Features/VoiceSession/VoiceSessionHandle.ts +200 -133
  14. package/src/Public/Extensions/RunAnywhere+Audio.ts +688 -0
  15. package/src/Public/Extensions/RunAnywhere+VoiceSession.ts +15 -11
  16. package/src/Public/Extensions/index.ts +25 -0
  17. package/src/Public/RunAnywhere.ts +36 -14
  18. package/android/src/main/include/rac/backends/rac_llm_llamacpp.h +0 -218
  19. package/android/src/main/include/rac/backends/rac_stt_onnx.h +0 -99
  20. package/android/src/main/include/rac/backends/rac_stt_whispercpp.h +0 -153
  21. package/android/src/main/include/rac/backends/rac_tts_onnx.h +0 -71
  22. package/android/src/main/include/rac/backends/rac_vad_onnx.h +0 -84
  23. package/android/src/main/include/rac/core/capabilities/rac_lifecycle.h +0 -290
  24. package/android/src/main/include/rac/core/rac_analytics_events.h +0 -610
  25. package/android/src/main/include/rac/core/rac_audio_utils.h +0 -88
  26. package/android/src/main/include/rac/core/rac_component_types.h +0 -160
  27. package/android/src/main/include/rac/core/rac_core.h +0 -331
  28. package/android/src/main/include/rac/core/rac_error.h +0 -469
  29. package/android/src/main/include/rac/core/rac_events.h +0 -334
  30. package/android/src/main/include/rac/core/rac_logger.h +0 -416
  31. package/android/src/main/include/rac/core/rac_platform_adapter.h +0 -340
  32. package/android/src/main/include/rac/core/rac_sdk_state.h +0 -292
  33. package/android/src/main/include/rac/core/rac_structured_error.h +0 -594
  34. package/android/src/main/include/rac/features/llm/rac_llm.h +0 -17
  35. package/android/src/main/include/rac/features/llm/rac_llm_analytics.h +0 -188
  36. package/android/src/main/include/rac/features/llm/rac_llm_component.h +0 -228
  37. package/android/src/main/include/rac/features/llm/rac_llm_events.h +0 -215
  38. package/android/src/main/include/rac/features/llm/rac_llm_metrics.h +0 -402
  39. package/android/src/main/include/rac/features/llm/rac_llm_service.h +0 -163
  40. package/android/src/main/include/rac/features/llm/rac_llm_structured_output.h +0 -141
  41. package/android/src/main/include/rac/features/llm/rac_llm_types.h +0 -384
  42. package/android/src/main/include/rac/features/platform/rac_llm_platform.h +0 -204
  43. package/android/src/main/include/rac/features/platform/rac_tts_platform.h +0 -197
  44. package/android/src/main/include/rac/features/stt/rac_stt.h +0 -17
  45. package/android/src/main/include/rac/features/stt/rac_stt_analytics.h +0 -204
  46. package/android/src/main/include/rac/features/stt/rac_stt_component.h +0 -162
  47. package/android/src/main/include/rac/features/stt/rac_stt_events.h +0 -62
  48. package/android/src/main/include/rac/features/stt/rac_stt_service.h +0 -154
  49. package/android/src/main/include/rac/features/stt/rac_stt_types.h +0 -389
  50. package/android/src/main/include/rac/features/tts/rac_tts.h +0 -17
  51. package/android/src/main/include/rac/features/tts/rac_tts_analytics.h +0 -181
  52. package/android/src/main/include/rac/features/tts/rac_tts_component.h +0 -158
  53. package/android/src/main/include/rac/features/tts/rac_tts_events.h +0 -54
  54. package/android/src/main/include/rac/features/tts/rac_tts_service.h +0 -162
  55. package/android/src/main/include/rac/features/tts/rac_tts_types.h +0 -374
  56. package/android/src/main/include/rac/features/vad/rac_vad.h +0 -17
  57. package/android/src/main/include/rac/features/vad/rac_vad_analytics.h +0 -236
  58. package/android/src/main/include/rac/features/vad/rac_vad_component.h +0 -185
  59. package/android/src/main/include/rac/features/vad/rac_vad_energy.h +0 -443
  60. package/android/src/main/include/rac/features/vad/rac_vad_events.h +0 -76
  61. package/android/src/main/include/rac/features/vad/rac_vad_service.h +0 -167
  62. package/android/src/main/include/rac/features/vad/rac_vad_types.h +0 -244
  63. package/android/src/main/include/rac/features/voice_agent/rac_voice_agent.h +0 -612
  64. package/android/src/main/include/rac/infrastructure/device/rac_device_manager.h +0 -176
  65. package/android/src/main/include/rac/infrastructure/download/rac_download.h +0 -418
  66. package/android/src/main/include/rac/infrastructure/events/rac_events.h +0 -177
  67. package/android/src/main/include/rac/infrastructure/model_management/rac_model_assignment.h +0 -169
  68. package/android/src/main/include/rac/infrastructure/model_management/rac_model_paths.h +0 -258
  69. package/android/src/main/include/rac/infrastructure/model_management/rac_model_registry.h +0 -357
  70. package/android/src/main/include/rac/infrastructure/model_management/rac_model_strategy.h +0 -374
  71. package/android/src/main/include/rac/infrastructure/model_management/rac_model_types.h +0 -613
  72. package/android/src/main/include/rac/infrastructure/network/rac_auth_manager.h +0 -252
  73. package/android/src/main/include/rac/infrastructure/network/rac_dev_config.h +0 -85
  74. package/android/src/main/include/rac/infrastructure/network/rac_endpoints.h +0 -102
  75. package/android/src/main/include/rac/infrastructure/network/rac_environment.h +0 -220
  76. package/android/src/main/include/rac/infrastructure/storage/rac_storage_analyzer.h +0 -286
  77. package/android/src/main/include/rac/infrastructure/telemetry/rac_telemetry_manager.h +0 -206
  78. package/android/src/main/include/rac/infrastructure/telemetry/rac_telemetry_types.h +0 -234
  79. package/android/src/main/jniLibs/arm64-v8a/libc++_shared.so +0 -0
  80. package/android/src/main/jniLibs/arm64-v8a/libomp.so +0 -0
  81. package/android/src/main/jniLibs/arm64-v8a/librunanywhere_jni.so +0 -0
  82. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_api_types.h +0 -335
  83. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_http_client.h +0 -233
  84. package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_types.h +0 -264
  85. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/Info.plist +0 -0
  86. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/RACommons.h +0 -0
  87. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_analytics_events.h +0 -0
  88. /package/{android/src/main/include/rac/infrastructure/network → ios/Binaries/RACommons.xcframework/ios-arm64/RACommons.framework/Headers}/rac_api_types.h +0 -0
  89. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_audio_utils.h +0 -0
  90. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_auth_manager.h +0 -0
  91. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_component_types.h +0 -0
  92. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_core.h +0 -0
  93. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_dev_config.h +0 -0
  94. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_device_manager.h +0 -0
  95. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_download.h +0 -0
  96. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_endpoints.h +0 -0
  97. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_environment.h +0 -0
  98. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_error.h +0 -0
  99. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_events.h +0 -0
  100. /package/{android/src/main/include/rac/infrastructure/network → ios/Binaries/RACommons.xcframework/ios-arm64/RACommons.framework/Headers}/rac_http_client.h +0 -0
  101. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_lifecycle.h +0 -0
  102. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm.h +0 -0
  103. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_analytics.h +0 -0
  104. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_component.h +0 -0
  105. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_events.h +0 -0
  106. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_llamacpp.h +0 -0
  107. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_metrics.h +0 -0
  108. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_platform.h +0 -0
  109. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_service.h +0 -0
  110. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_structured_output.h +0 -0
  111. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_types.h +0 -0
  112. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_logger.h +0 -0
  113. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_assignment.h +0 -0
  114. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_paths.h +0 -0
  115. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_registry.h +0 -0
  116. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_strategy.h +0 -0
  117. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_types.h +0 -0
  118. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_platform_adapter.h +0 -0
  119. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_sdk_state.h +0 -0
  120. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_storage_analyzer.h +0 -0
  121. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_structured_error.h +0 -0
  122. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt.h +0 -0
  123. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_analytics.h +0 -0
  124. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_component.h +0 -0
  125. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_events.h +0 -0
  126. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_onnx.h +0 -0
  127. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_service.h +0 -0
  128. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_types.h +0 -0
  129. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_whispercpp.h +0 -0
  130. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_telemetry_manager.h +0 -0
  131. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_telemetry_types.h +0 -0
  132. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts.h +0 -0
  133. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_analytics.h +0 -0
  134. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_component.h +0 -0
  135. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_events.h +0 -0
  136. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_onnx.h +0 -0
  137. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_platform.h +0 -0
  138. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_service.h +0 -0
  139. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_types.h +0 -0
  140. /package/{android/src/main/include/rac/core → ios/Binaries/RACommons.xcframework/ios-arm64/RACommons.framework/Headers}/rac_types.h +0 -0
  141. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad.h +0 -0
  142. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_analytics.h +0 -0
  143. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_component.h +0 -0
  144. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_energy.h +0 -0
  145. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_events.h +0 -0
  146. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_onnx.h +0 -0
  147. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_service.h +0 -0
  148. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_types.h +0 -0
  149. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_voice_agent.h +0 -0
  150. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Info.plist +0 -0
  151. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64/RACommons.framework/Modules/module.modulemap +0 -0
  152. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/RACommons.h +0 -0
  153. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_analytics_events.h +0 -0
  154. /package/ios/{Frameworks/RACommons.xcframework/ios-arm64 → Binaries/RACommons.xcframework/ios-arm64_x86_64-simulator}/RACommons.framework/Headers/rac_api_types.h +0 -0
  155. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_audio_utils.h +0 -0
  156. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_auth_manager.h +0 -0
  157. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_component_types.h +0 -0
  158. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_core.h +0 -0
  159. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_dev_config.h +0 -0
  160. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_device_manager.h +0 -0
  161. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_download.h +0 -0
  162. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_endpoints.h +0 -0
  163. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_environment.h +0 -0
  164. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_error.h +0 -0
  165. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_events.h +0 -0
  166. /package/ios/{Frameworks/RACommons.xcframework/ios-arm64 → Binaries/RACommons.xcframework/ios-arm64_x86_64-simulator}/RACommons.framework/Headers/rac_http_client.h +0 -0
  167. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_lifecycle.h +0 -0
  168. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm.h +0 -0
  169. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_analytics.h +0 -0
  170. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_component.h +0 -0
  171. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_events.h +0 -0
  172. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_llamacpp.h +0 -0
  173. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_metrics.h +0 -0
  174. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_platform.h +0 -0
  175. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_service.h +0 -0
  176. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_structured_output.h +0 -0
  177. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_types.h +0 -0
  178. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_logger.h +0 -0
  179. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_assignment.h +0 -0
  180. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_paths.h +0 -0
  181. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_registry.h +0 -0
  182. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_strategy.h +0 -0
  183. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_types.h +0 -0
  184. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_platform_adapter.h +0 -0
  185. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_sdk_state.h +0 -0
  186. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_storage_analyzer.h +0 -0
  187. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_structured_error.h +0 -0
  188. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt.h +0 -0
  189. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_analytics.h +0 -0
  190. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_component.h +0 -0
  191. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_events.h +0 -0
  192. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_onnx.h +0 -0
  193. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_service.h +0 -0
  194. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_types.h +0 -0
  195. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_whispercpp.h +0 -0
  196. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_telemetry_manager.h +0 -0
  197. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_telemetry_types.h +0 -0
  198. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts.h +0 -0
  199. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_analytics.h +0 -0
  200. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_component.h +0 -0
  201. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_events.h +0 -0
  202. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_onnx.h +0 -0
  203. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_platform.h +0 -0
  204. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_service.h +0 -0
  205. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_types.h +0 -0
  206. /package/ios/{Frameworks/RACommons.xcframework/ios-arm64 → Binaries/RACommons.xcframework/ios-arm64_x86_64-simulator}/RACommons.framework/Headers/rac_types.h +0 -0
  207. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad.h +0 -0
  208. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_analytics.h +0 -0
  209. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_component.h +0 -0
  210. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_energy.h +0 -0
  211. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_events.h +0 -0
  212. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_onnx.h +0 -0
  213. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_service.h +0 -0
  214. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_types.h +0 -0
  215. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_voice_agent.h +0 -0
  216. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Info.plist +0 -0
  217. /package/ios/{Frameworks → Binaries}/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Modules/module.modulemap +0 -0
@@ -1,233 +0,0 @@
1
- /**
2
- * @file rac_http_client.h
3
- * @brief HTTP client abstraction
4
- *
5
- * Defines a platform-agnostic HTTP interface. Platform SDKs implement
6
- * the actual HTTP transport (URLSession, OkHttp, etc.) and register
7
- * it via callback.
8
- */
9
-
10
- #ifndef RAC_HTTP_CLIENT_H
11
- #define RAC_HTTP_CLIENT_H
12
-
13
- #include <stdbool.h>
14
- #include <stddef.h>
15
- #include <stdint.h>
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- // =============================================================================
22
- // HTTP Types
23
- // =============================================================================
24
-
25
- /**
26
- * @brief HTTP method enum
27
- */
28
- typedef enum {
29
- RAC_HTTP_GET = 0,
30
- RAC_HTTP_POST = 1,
31
- RAC_HTTP_PUT = 2,
32
- RAC_HTTP_DELETE = 3,
33
- RAC_HTTP_PATCH = 4
34
- } rac_http_method_t;
35
-
36
- /**
37
- * @brief HTTP header key-value pair
38
- */
39
- typedef struct {
40
- const char* key;
41
- const char* value;
42
- } rac_http_header_t;
43
-
44
- /**
45
- * @brief HTTP request structure
46
- */
47
- typedef struct {
48
- rac_http_method_t method;
49
- const char* url; // Full URL
50
- const char* body; // JSON body (can be NULL for GET)
51
- size_t body_length;
52
- rac_http_header_t* headers;
53
- size_t header_count;
54
- int32_t timeout_ms; // Request timeout in milliseconds
55
- } rac_http_request_t;
56
-
57
- /**
58
- * @brief HTTP response structure
59
- */
60
- typedef struct {
61
- int32_t status_code; // HTTP status code (200, 401, etc.)
62
- char* body; // Response body (caller frees)
63
- size_t body_length;
64
- rac_http_header_t* headers;
65
- size_t header_count;
66
- char* error_message; // Non-HTTP error (network failure, etc.)
67
- } rac_http_response_t;
68
-
69
- // =============================================================================
70
- // Response Memory Management
71
- // =============================================================================
72
-
73
- /**
74
- * @brief Free HTTP response
75
- */
76
- void rac_http_response_free(rac_http_response_t* response);
77
-
78
- // =============================================================================
79
- // Platform Callback Interface
80
- // =============================================================================
81
-
82
- /**
83
- * @brief Callback type for receiving HTTP response
84
- *
85
- * @param response The HTTP response (platform must free after callback returns)
86
- * @param user_data Opaque user data passed to request
87
- */
88
- typedef void (*rac_http_callback_t)(const rac_http_response_t* response, void* user_data);
89
-
90
- /**
91
- * @brief HTTP executor function type
92
- *
93
- * Platform implements this to perform actual HTTP requests.
94
- * Must call callback when request completes (success or failure).
95
- *
96
- * @param request The HTTP request to execute
97
- * @param callback Callback to invoke with response
98
- * @param user_data Opaque user data to pass to callback
99
- */
100
- typedef void (*rac_http_executor_t)(const rac_http_request_t* request, rac_http_callback_t callback,
101
- void* user_data);
102
-
103
- /**
104
- * @brief Register platform HTTP executor
105
- *
106
- * Platform SDKs must call this during initialization to provide
107
- * their HTTP implementation.
108
- *
109
- * @param executor The executor function
110
- */
111
- void rac_http_set_executor(rac_http_executor_t executor);
112
-
113
- /**
114
- * @brief Check if HTTP executor is registered
115
- * @return true if executor has been set
116
- */
117
- bool rac_http_has_executor(void);
118
-
119
- // =============================================================================
120
- // Request Building Helpers
121
- // =============================================================================
122
-
123
- /**
124
- * @brief Create a new HTTP request
125
- * @param method HTTP method
126
- * @param url Full URL
127
- * @return New request (caller must free with rac_http_request_free)
128
- */
129
- rac_http_request_t* rac_http_request_create(rac_http_method_t method, const char* url);
130
-
131
- /**
132
- * @brief Set request body
133
- * @param request The request
134
- * @param body JSON body string
135
- */
136
- void rac_http_request_set_body(rac_http_request_t* request, const char* body);
137
-
138
- /**
139
- * @brief Add header to request
140
- * @param request The request
141
- * @param key Header key
142
- * @param value Header value
143
- */
144
- void rac_http_request_add_header(rac_http_request_t* request, const char* key, const char* value);
145
-
146
- /**
147
- * @brief Set request timeout
148
- * @param request The request
149
- * @param timeout_ms Timeout in milliseconds
150
- */
151
- void rac_http_request_set_timeout(rac_http_request_t* request, int32_t timeout_ms);
152
-
153
- /**
154
- * @brief Free HTTP request
155
- */
156
- void rac_http_request_free(rac_http_request_t* request);
157
-
158
- // =============================================================================
159
- // Standard Headers
160
- // =============================================================================
161
-
162
- /**
163
- * @brief Add standard SDK headers to request
164
- *
165
- * Adds: Content-Type, X-SDK-Client, X-SDK-Version, X-Platform
166
- *
167
- * @param request The request
168
- * @param sdk_version SDK version string
169
- * @param platform Platform string
170
- */
171
- void rac_http_add_sdk_headers(rac_http_request_t* request, const char* sdk_version,
172
- const char* platform);
173
-
174
- /**
175
- * @brief Add authorization header
176
- * @param request The request
177
- * @param token Bearer token
178
- */
179
- void rac_http_add_auth_header(rac_http_request_t* request, const char* token);
180
-
181
- /**
182
- * @brief Add API key header (for Supabase compatibility)
183
- * @param request The request
184
- * @param api_key API key
185
- */
186
- void rac_http_add_api_key_header(rac_http_request_t* request, const char* api_key);
187
-
188
- // =============================================================================
189
- // High-Level Request Functions
190
- // =============================================================================
191
-
192
- /**
193
- * @brief Context for async HTTP operations
194
- */
195
- typedef struct {
196
- void* user_data;
197
- void (*on_success)(const char* response_body, void* user_data);
198
- void (*on_error)(int status_code, const char* error_message, void* user_data);
199
- } rac_http_context_t;
200
-
201
- /**
202
- * @brief Execute HTTP request asynchronously
203
- *
204
- * Uses the registered platform executor.
205
- *
206
- * @param request The request to execute
207
- * @param context Callback context
208
- */
209
- void rac_http_execute(const rac_http_request_t* request, rac_http_context_t* context);
210
-
211
- /**
212
- * @brief Helper: POST JSON to endpoint
213
- * @param url Full URL
214
- * @param json_body JSON body
215
- * @param auth_token Bearer token (can be NULL)
216
- * @param context Callback context
217
- */
218
- void rac_http_post_json(const char* url, const char* json_body, const char* auth_token,
219
- rac_http_context_t* context);
220
-
221
- /**
222
- * @brief Helper: GET from endpoint
223
- * @param url Full URL
224
- * @param auth_token Bearer token (can be NULL)
225
- * @param context Callback context
226
- */
227
- void rac_http_get(const char* url, const char* auth_token, rac_http_context_t* context);
228
-
229
- #ifdef __cplusplus
230
- }
231
- #endif
232
-
233
- #endif // RAC_HTTP_CLIENT_H
@@ -1,264 +0,0 @@
1
- /**
2
- * @file rac_types.h
3
- * @brief RunAnywhere Commons - Common Types and Definitions
4
- *
5
- * This header defines common types, handle types, and macros used throughout
6
- * the runanywhere-commons library. All types use the RAC_ prefix to distinguish
7
- * from the underlying runanywhere-core (ra_*) types.
8
- */
9
-
10
- #ifndef RAC_TYPES_H
11
- #define RAC_TYPES_H
12
-
13
- #include <stddef.h>
14
- #include <stdint.h>
15
-
16
- /**
17
- * Null pointer macro for use in static initializers.
18
- * Uses nullptr in C++ (preferred by clang-tidy modernize-use-nullptr)
19
- * and NULL in C for compatibility.
20
- */
21
- #ifdef __cplusplus
22
- #define RAC_NULL nullptr
23
- #else
24
- #define RAC_NULL NULL
25
- #endif
26
-
27
- #ifdef __cplusplus
28
- extern "C" {
29
- #endif
30
-
31
- // =============================================================================
32
- // API VISIBILITY MACROS
33
- // =============================================================================
34
- //
35
- // RAC_API marks functions that must be visible to FFI (dlsym).
36
- //
37
- // CRITICAL: For iOS/Android Flutter FFI, symbols MUST have public visibility
38
- // even when statically linked. dlsym(RTLD_DEFAULT, ...) can only find symbols
39
- // with "external" visibility, not "private external".
40
- //
41
- // Without visibility("default"), static library symbols get "private external"
42
- // visibility (due to -fvisibility=hidden), which becomes "non-external" (local)
43
- // in the final binary - breaking FFI symbol lookup.
44
- // =============================================================================
45
-
46
- #if defined(_WIN32)
47
- #if defined(RAC_BUILDING_SHARED)
48
- #define RAC_API __declspec(dllexport)
49
- #elif defined(RAC_USING_SHARED)
50
- #define RAC_API __declspec(dllimport)
51
- #else
52
- #define RAC_API
53
- #endif
54
- #elif defined(__GNUC__) || defined(__clang__)
55
- // Always use default visibility for FFI compatibility
56
- // This ensures dlsym() can find symbols even in static libraries
57
- #define RAC_API __attribute__((visibility("default")))
58
- #else
59
- #define RAC_API
60
- #endif
61
-
62
- // =============================================================================
63
- // RESULT TYPE
64
- // =============================================================================
65
-
66
- /**
67
- * Result type for all RAC functions.
68
- * - 0 indicates success
69
- * - Negative values indicate errors (see rac_error.h)
70
- *
71
- * Error code ranges:
72
- * - runanywhere-core (ra_*): 0 to -99
73
- * - runanywhere-commons (rac_*): -100 to -999
74
- */
75
- typedef int32_t rac_result_t;
76
-
77
- /** Success result */
78
- #define RAC_SUCCESS ((rac_result_t)0)
79
-
80
- // =============================================================================
81
- // BOOLEAN TYPE
82
- // =============================================================================
83
-
84
- /** Boolean type for C compatibility */
85
- typedef int32_t rac_bool_t;
86
-
87
- #define RAC_TRUE ((rac_bool_t)1)
88
- #define RAC_FALSE ((rac_bool_t)0)
89
-
90
- // =============================================================================
91
- // HANDLE TYPES
92
- // =============================================================================
93
-
94
- /**
95
- * Opaque handle for internal objects.
96
- * Handles should be treated as opaque pointers.
97
- */
98
- typedef void* rac_handle_t;
99
-
100
- /** Invalid handle value */
101
- #define RAC_INVALID_HANDLE ((rac_handle_t)NULL)
102
-
103
- // =============================================================================
104
- // STRING TYPES
105
- // =============================================================================
106
-
107
- /**
108
- * String view (non-owning reference to a string).
109
- * The string is NOT guaranteed to be null-terminated.
110
- */
111
- typedef struct rac_string_view {
112
- const char* data; /**< Pointer to string data */
113
- size_t length; /**< Length in bytes (not including any null terminator) */
114
- } rac_string_view_t;
115
-
116
- /**
117
- * Creates a string view from a null-terminated C string.
118
- */
119
- #define RAC_STRING_VIEW(s) ((rac_string_view_t){(s), (s) ? strlen(s) : 0})
120
-
121
- // =============================================================================
122
- // AUDIO TYPES
123
- // =============================================================================
124
-
125
- /**
126
- * Audio buffer for STT/VAD operations.
127
- * Contains PCM float samples in the range [-1.0, 1.0].
128
- */
129
- typedef struct rac_audio_buffer {
130
- const float* samples; /**< PCM float samples */
131
- size_t num_samples; /**< Number of samples */
132
- int32_t sample_rate; /**< Sample rate in Hz (e.g., 16000) */
133
- int32_t channels; /**< Number of channels (1 = mono, 2 = stereo) */
134
- } rac_audio_buffer_t;
135
-
136
- /**
137
- * Audio format specification.
138
- */
139
- typedef struct rac_audio_format {
140
- int32_t sample_rate; /**< Sample rate in Hz */
141
- int32_t channels; /**< Number of channels */
142
- int32_t bits_per_sample; /**< Bits per sample (16 or 32) */
143
- } rac_audio_format_t;
144
-
145
- // =============================================================================
146
- // MEMORY INFO
147
- // =============================================================================
148
-
149
- /**
150
- * Memory information structure.
151
- * Used by the platform adapter to report available memory.
152
- */
153
- typedef struct rac_memory_info {
154
- uint64_t total_bytes; /**< Total physical memory in bytes */
155
- uint64_t available_bytes; /**< Available memory in bytes */
156
- uint64_t used_bytes; /**< Used memory in bytes */
157
- } rac_memory_info_t;
158
-
159
- // =============================================================================
160
- // CAPABILITY TYPES
161
- // =============================================================================
162
-
163
- /**
164
- * Capability types supported by backends.
165
- * These match the capabilities defined in runanywhere-core.
166
- */
167
- typedef enum rac_capability {
168
- RAC_CAPABILITY_UNKNOWN = 0,
169
- RAC_CAPABILITY_TEXT_GENERATION = 1, /**< LLM text generation */
170
- RAC_CAPABILITY_EMBEDDINGS = 2, /**< Text embeddings */
171
- RAC_CAPABILITY_STT = 3, /**< Speech-to-text */
172
- RAC_CAPABILITY_TTS = 4, /**< Text-to-speech */
173
- RAC_CAPABILITY_VAD = 5, /**< Voice activity detection */
174
- RAC_CAPABILITY_DIARIZATION = 6, /**< Speaker diarization */
175
- } rac_capability_t;
176
-
177
- /**
178
- * Device type for backend execution.
179
- */
180
- typedef enum rac_device {
181
- RAC_DEVICE_CPU = 0,
182
- RAC_DEVICE_GPU = 1,
183
- RAC_DEVICE_NPU = 2,
184
- RAC_DEVICE_AUTO = 3,
185
- } rac_device_t;
186
-
187
- // =============================================================================
188
- // LOG LEVELS
189
- // =============================================================================
190
-
191
- /**
192
- * Log level for the logging callback.
193
- */
194
- typedef enum rac_log_level {
195
- RAC_LOG_TRACE = 0,
196
- RAC_LOG_DEBUG = 1,
197
- RAC_LOG_INFO = 2,
198
- RAC_LOG_WARNING = 3,
199
- RAC_LOG_ERROR = 4,
200
- RAC_LOG_FATAL = 5,
201
- } rac_log_level_t;
202
-
203
- // =============================================================================
204
- // VERSION INFO
205
- // =============================================================================
206
-
207
- /**
208
- * Version information structure.
209
- */
210
- typedef struct rac_version {
211
- uint16_t major;
212
- uint16_t minor;
213
- uint16_t patch;
214
- const char* string; /**< Version string (e.g., "1.0.0") */
215
- } rac_version_t;
216
-
217
- // =============================================================================
218
- // UTILITY MACROS
219
- // =============================================================================
220
-
221
- /** Check if a result is a success */
222
- #define RAC_SUCCEEDED(result) ((result) >= 0)
223
-
224
- /** Check if a result is an error */
225
- #define RAC_FAILED(result) ((result) < 0)
226
-
227
- /** Check if a handle is valid */
228
- #define RAC_IS_VALID_HANDLE(handle) ((handle) != RAC_INVALID_HANDLE)
229
-
230
- // =============================================================================
231
- // MEMORY MANAGEMENT
232
- // =============================================================================
233
-
234
- /**
235
- * Frees memory allocated by RAC functions.
236
- *
237
- * Use this to free strings and buffers returned by RAC functions that
238
- * are marked as "must be freed with rac_free".
239
- *
240
- * @param ptr Pointer to memory to free (can be NULL)
241
- */
242
- RAC_API void rac_free(void* ptr);
243
-
244
- /**
245
- * Allocates memory using the RAC allocator.
246
- *
247
- * @param size Number of bytes to allocate
248
- * @return Pointer to allocated memory, or NULL on failure
249
- */
250
- RAC_API void* rac_alloc(size_t size);
251
-
252
- /**
253
- * Duplicates a null-terminated string.
254
- *
255
- * @param str String to duplicate (can be NULL)
256
- * @return Duplicated string (must be freed with rac_free), or NULL if str is NULL
257
- */
258
- RAC_API char* rac_strdup(const char* str);
259
-
260
- #ifdef __cplusplus
261
- }
262
- #endif
263
-
264
- #endif /* RAC_TYPES_H */