@runanywhere/core 0.16.11 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +427 -0
- package/RunAnywhereCore.podspec +4 -4
- package/cpp/HybridRunAnywhereCore.cpp +10 -4
- package/cpp/bridges/TelemetryBridge.cpp +10 -3
- package/ios/.testlocal +0 -0
- package/nitrogen/generated/shared/c++/HybridRunAnywhereCoreSpec.hpp +1 -1
- package/package.json +12 -11
- package/src/Features/VoiceSession/AudioCaptureManager.ts +274 -109
- package/src/Features/VoiceSession/AudioPlaybackManager.ts +247 -59
- package/src/Features/VoiceSession/VoiceSessionHandle.ts +200 -133
- package/src/Public/Extensions/RunAnywhere+Audio.ts +688 -0
- package/src/Public/Extensions/RunAnywhere+VoiceSession.ts +15 -11
- package/src/Public/Extensions/index.ts +25 -0
- package/src/Public/RunAnywhere.ts +36 -14
- package/android/src/main/include/rac/backends/rac_llm_llamacpp.h +0 -218
- package/android/src/main/include/rac/backends/rac_stt_onnx.h +0 -99
- package/android/src/main/include/rac/backends/rac_stt_whispercpp.h +0 -153
- package/android/src/main/include/rac/backends/rac_tts_onnx.h +0 -71
- package/android/src/main/include/rac/backends/rac_vad_onnx.h +0 -84
- package/android/src/main/include/rac/core/capabilities/rac_lifecycle.h +0 -290
- package/android/src/main/include/rac/core/rac_analytics_events.h +0 -610
- package/android/src/main/include/rac/core/rac_audio_utils.h +0 -88
- package/android/src/main/include/rac/core/rac_component_types.h +0 -160
- package/android/src/main/include/rac/core/rac_core.h +0 -331
- package/android/src/main/include/rac/core/rac_error.h +0 -469
- package/android/src/main/include/rac/core/rac_events.h +0 -334
- package/android/src/main/include/rac/core/rac_logger.h +0 -416
- package/android/src/main/include/rac/core/rac_platform_adapter.h +0 -340
- package/android/src/main/include/rac/core/rac_sdk_state.h +0 -292
- package/android/src/main/include/rac/core/rac_structured_error.h +0 -594
- package/android/src/main/include/rac/core/rac_types.h +0 -264
- package/android/src/main/include/rac/features/llm/rac_llm.h +0 -17
- package/android/src/main/include/rac/features/llm/rac_llm_analytics.h +0 -188
- package/android/src/main/include/rac/features/llm/rac_llm_component.h +0 -228
- package/android/src/main/include/rac/features/llm/rac_llm_events.h +0 -215
- package/android/src/main/include/rac/features/llm/rac_llm_metrics.h +0 -402
- package/android/src/main/include/rac/features/llm/rac_llm_service.h +0 -163
- package/android/src/main/include/rac/features/llm/rac_llm_structured_output.h +0 -141
- package/android/src/main/include/rac/features/llm/rac_llm_types.h +0 -384
- package/android/src/main/include/rac/features/platform/rac_llm_platform.h +0 -204
- package/android/src/main/include/rac/features/platform/rac_tts_platform.h +0 -197
- package/android/src/main/include/rac/features/stt/rac_stt.h +0 -17
- package/android/src/main/include/rac/features/stt/rac_stt_analytics.h +0 -204
- package/android/src/main/include/rac/features/stt/rac_stt_component.h +0 -162
- package/android/src/main/include/rac/features/stt/rac_stt_events.h +0 -62
- package/android/src/main/include/rac/features/stt/rac_stt_service.h +0 -154
- package/android/src/main/include/rac/features/stt/rac_stt_types.h +0 -389
- package/android/src/main/include/rac/features/tts/rac_tts.h +0 -17
- package/android/src/main/include/rac/features/tts/rac_tts_analytics.h +0 -181
- package/android/src/main/include/rac/features/tts/rac_tts_component.h +0 -158
- package/android/src/main/include/rac/features/tts/rac_tts_events.h +0 -54
- package/android/src/main/include/rac/features/tts/rac_tts_service.h +0 -162
- package/android/src/main/include/rac/features/tts/rac_tts_types.h +0 -374
- package/android/src/main/include/rac/features/vad/rac_vad.h +0 -17
- package/android/src/main/include/rac/features/vad/rac_vad_analytics.h +0 -236
- package/android/src/main/include/rac/features/vad/rac_vad_component.h +0 -185
- package/android/src/main/include/rac/features/vad/rac_vad_energy.h +0 -443
- package/android/src/main/include/rac/features/vad/rac_vad_events.h +0 -76
- package/android/src/main/include/rac/features/vad/rac_vad_service.h +0 -167
- package/android/src/main/include/rac/features/vad/rac_vad_types.h +0 -244
- package/android/src/main/include/rac/features/voice_agent/rac_voice_agent.h +0 -612
- package/android/src/main/include/rac/infrastructure/device/rac_device_manager.h +0 -176
- package/android/src/main/include/rac/infrastructure/download/rac_download.h +0 -418
- package/android/src/main/include/rac/infrastructure/events/rac_events.h +0 -177
- package/android/src/main/include/rac/infrastructure/model_management/rac_model_assignment.h +0 -169
- package/android/src/main/include/rac/infrastructure/model_management/rac_model_paths.h +0 -258
- package/android/src/main/include/rac/infrastructure/model_management/rac_model_registry.h +0 -357
- package/android/src/main/include/rac/infrastructure/model_management/rac_model_strategy.h +0 -374
- package/android/src/main/include/rac/infrastructure/model_management/rac_model_types.h +0 -613
- package/android/src/main/include/rac/infrastructure/network/rac_api_types.h +0 -335
- package/android/src/main/include/rac/infrastructure/network/rac_auth_manager.h +0 -252
- package/android/src/main/include/rac/infrastructure/network/rac_dev_config.h +0 -85
- package/android/src/main/include/rac/infrastructure/network/rac_endpoints.h +0 -102
- package/android/src/main/include/rac/infrastructure/network/rac_environment.h +0 -220
- package/android/src/main/include/rac/infrastructure/network/rac_http_client.h +0 -233
- package/android/src/main/include/rac/infrastructure/storage/rac_storage_analyzer.h +0 -286
- package/android/src/main/include/rac/infrastructure/telemetry/rac_telemetry_manager.h +0 -206
- package/android/src/main/include/rac/infrastructure/telemetry/rac_telemetry_types.h +0 -234
- package/android/src/main/jniLibs/arm64-v8a/libc++_shared.so +0 -0
- package/android/src/main/jniLibs/arm64-v8a/libomp.so +0 -0
- package/android/src/main/jniLibs/arm64-v8a/librac_commons.so +0 -0
- package/android/src/main/jniLibs/arm64-v8a/librunanywhere_jni.so +0 -0
- package/ios/Frameworks/RACommons.xcframework/Info.plist +0 -44
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/RACommons.h +0 -67
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_analytics_events.h +0 -610
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_api_types.h +0 -335
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_audio_utils.h +0 -88
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_auth_manager.h +0 -252
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_component_types.h +0 -160
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_core.h +0 -331
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_dev_config.h +0 -85
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_device_manager.h +0 -176
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_download.h +0 -418
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_endpoints.h +0 -102
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_environment.h +0 -220
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_error.h +0 -469
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_events.h +0 -177
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_http_client.h +0 -233
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_lifecycle.h +0 -290
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_analytics.h +0 -188
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_component.h +0 -228
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_events.h +0 -215
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_llamacpp.h +0 -218
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_metrics.h +0 -402
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_platform.h +0 -204
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_service.h +0 -163
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_structured_output.h +0 -141
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_llm_types.h +0 -384
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_logger.h +0 -416
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_assignment.h +0 -169
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_paths.h +0 -258
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_registry.h +0 -357
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_strategy.h +0 -374
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_model_types.h +0 -613
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_platform_adapter.h +0 -340
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_sdk_state.h +0 -292
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_storage_analyzer.h +0 -286
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_structured_error.h +0 -594
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_analytics.h +0 -204
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_component.h +0 -162
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_events.h +0 -62
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_onnx.h +0 -99
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_service.h +0 -154
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_types.h +0 -389
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_stt_whispercpp.h +0 -153
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_telemetry_manager.h +0 -206
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_telemetry_types.h +0 -234
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_analytics.h +0 -181
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_component.h +0 -158
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_events.h +0 -54
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_onnx.h +0 -71
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_platform.h +0 -197
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_service.h +0 -162
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_tts_types.h +0 -374
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_types.h +0 -264
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_analytics.h +0 -236
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_component.h +0 -185
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_energy.h +0 -443
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_events.h +0 -76
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_onnx.h +0 -84
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_service.h +0 -167
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_vad_types.h +0 -244
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Headers/rac_voice_agent.h +0 -612
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Info.plist +0 -11
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/Modules/module.modulemap +0 -5
- package/ios/Frameworks/RACommons.xcframework/ios-arm64/RACommons.framework/RACommons +0 -0
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/RACommons.h +0 -67
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_analytics_events.h +0 -610
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_api_types.h +0 -335
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_audio_utils.h +0 -88
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_auth_manager.h +0 -252
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_component_types.h +0 -160
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_core.h +0 -331
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_dev_config.h +0 -85
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_device_manager.h +0 -176
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_download.h +0 -418
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_endpoints.h +0 -102
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_environment.h +0 -220
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_error.h +0 -469
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_events.h +0 -177
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_http_client.h +0 -233
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_lifecycle.h +0 -290
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_analytics.h +0 -188
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_component.h +0 -228
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_events.h +0 -215
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_llamacpp.h +0 -218
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_metrics.h +0 -402
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_platform.h +0 -204
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_service.h +0 -163
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_structured_output.h +0 -141
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_llm_types.h +0 -384
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_logger.h +0 -416
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_assignment.h +0 -169
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_paths.h +0 -258
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_registry.h +0 -357
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_strategy.h +0 -374
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_model_types.h +0 -613
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_platform_adapter.h +0 -340
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_sdk_state.h +0 -292
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_storage_analyzer.h +0 -286
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_structured_error.h +0 -594
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_analytics.h +0 -204
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_component.h +0 -162
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_events.h +0 -62
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_onnx.h +0 -99
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_service.h +0 -154
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_types.h +0 -389
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_stt_whispercpp.h +0 -153
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_telemetry_manager.h +0 -206
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_telemetry_types.h +0 -234
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_analytics.h +0 -181
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_component.h +0 -158
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_events.h +0 -54
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_onnx.h +0 -71
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_platform.h +0 -197
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_service.h +0 -162
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_tts_types.h +0 -374
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_types.h +0 -264
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad.h +0 -17
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_analytics.h +0 -236
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_component.h +0 -185
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_energy.h +0 -443
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_events.h +0 -76
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_onnx.h +0 -84
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_service.h +0 -167
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_vad_types.h +0 -244
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers/rac_voice_agent.h +0 -612
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Info.plist +0 -11
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Modules/module.modulemap +0 -5
- package/ios/Frameworks/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/RACommons +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
# @runanywhere/core
|
|
2
|
+
|
|
3
|
+
Core SDK for RunAnywhere React Native. Foundation package providing the public API, events, model management, and native bridge infrastructure.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
`@runanywhere/core` is the foundation package of the RunAnywhere React Native SDK. It provides:
|
|
10
|
+
|
|
11
|
+
- **RunAnywhere API** — Main SDK singleton with all public methods
|
|
12
|
+
- **EventBus** — Event subscription system for SDK events
|
|
13
|
+
- **ModelRegistry** — Model metadata management and discovery
|
|
14
|
+
- **DownloadService** — Model downloads with progress and resume
|
|
15
|
+
- **FileSystem** — Cross-platform file operations
|
|
16
|
+
- **Native Bridge** — Nitrogen/Nitro JSI bindings to C++ core
|
|
17
|
+
- **Error Handling** — Structured SDK errors with recovery suggestions
|
|
18
|
+
- **Logging** — Configurable logging with multiple levels
|
|
19
|
+
|
|
20
|
+
This package is **required** for all RunAnywhere functionality. Additional capabilities are provided by:
|
|
21
|
+
- `@runanywhere/llamacpp` — LLM text generation (GGUF models)
|
|
22
|
+
- `@runanywhere/onnx` — Speech-to-Text and Text-to-Speech
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install @runanywhere/core
|
|
30
|
+
# or
|
|
31
|
+
yarn add @runanywhere/core
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Peer Dependencies
|
|
35
|
+
|
|
36
|
+
The following peer dependencies are optional but recommended:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm install react-native-nitro-modules react-native-fs react-native-blob-util react-native-device-info react-native-zip-archive
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### iOS Setup
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
cd ios && pod install && cd ..
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Android Setup
|
|
49
|
+
|
|
50
|
+
No additional setup required.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Quick Start
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { RunAnywhere, SDKEnvironment } from '@runanywhere/core';
|
|
58
|
+
|
|
59
|
+
// Initialize SDK
|
|
60
|
+
await RunAnywhere.initialize({
|
|
61
|
+
environment: SDKEnvironment.Development,
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// Check initialization
|
|
65
|
+
const isReady = await RunAnywhere.isInitialized();
|
|
66
|
+
console.log('SDK ready:', isReady);
|
|
67
|
+
|
|
68
|
+
// Get SDK version
|
|
69
|
+
console.log('Version:', RunAnywhere.version);
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## API Reference
|
|
75
|
+
|
|
76
|
+
### RunAnywhere (Main API)
|
|
77
|
+
|
|
78
|
+
The `RunAnywhere` object is the main entry point for all SDK functionality.
|
|
79
|
+
|
|
80
|
+
#### Initialization
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
// Initialize SDK
|
|
84
|
+
await RunAnywhere.initialize({
|
|
85
|
+
apiKey?: string, // API key (production/staging)
|
|
86
|
+
baseURL?: string, // API base URL
|
|
87
|
+
environment?: SDKEnvironment,
|
|
88
|
+
debug?: boolean,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
// Check status
|
|
92
|
+
const isInit = await RunAnywhere.isInitialized();
|
|
93
|
+
const isActive = RunAnywhere.isSDKInitialized;
|
|
94
|
+
|
|
95
|
+
// Reset SDK
|
|
96
|
+
await RunAnywhere.reset();
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
#### Properties
|
|
100
|
+
|
|
101
|
+
| Property | Type | Description |
|
|
102
|
+
|----------|------|-------------|
|
|
103
|
+
| `isSDKInitialized` | `boolean` | Whether SDK is initialized |
|
|
104
|
+
| `areServicesReady` | `boolean` | Whether services are ready |
|
|
105
|
+
| `currentEnvironment` | `SDKEnvironment` | Current environment |
|
|
106
|
+
| `version` | `string` | SDK version |
|
|
107
|
+
| `deviceId` | `string` | Persistent device ID |
|
|
108
|
+
| `events` | `EventBus` | Event subscription system |
|
|
109
|
+
|
|
110
|
+
#### Model Management
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
// Get available models
|
|
114
|
+
const models = await RunAnywhere.getAvailableModels();
|
|
115
|
+
|
|
116
|
+
// Get specific model info
|
|
117
|
+
const model = await RunAnywhere.getModelInfo('model-id');
|
|
118
|
+
|
|
119
|
+
// Check if downloaded
|
|
120
|
+
const isDownloaded = await RunAnywhere.isModelDownloaded('model-id');
|
|
121
|
+
|
|
122
|
+
// Download with progress
|
|
123
|
+
await RunAnywhere.downloadModel('model-id', (progress) => {
|
|
124
|
+
console.log(`${(progress.progress * 100).toFixed(1)}%`);
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
// Delete model
|
|
128
|
+
await RunAnywhere.deleteModel('model-id');
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### Storage Management
|
|
132
|
+
|
|
133
|
+
```typescript
|
|
134
|
+
// Get storage info
|
|
135
|
+
const storage = await RunAnywhere.getStorageInfo();
|
|
136
|
+
console.log('Free:', storage.freeSpace);
|
|
137
|
+
console.log('Used:', storage.usedSpace);
|
|
138
|
+
|
|
139
|
+
// Clear cache
|
|
140
|
+
await RunAnywhere.clearCache();
|
|
141
|
+
await RunAnywhere.cleanTempFiles();
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
### EventBus
|
|
147
|
+
|
|
148
|
+
Subscribe to SDK events for reactive updates.
|
|
149
|
+
|
|
150
|
+
```typescript
|
|
151
|
+
import { EventBus, EventCategory } from '@runanywhere/core';
|
|
152
|
+
|
|
153
|
+
// Subscribe to events
|
|
154
|
+
const unsubscribe = EventBus.on('Generation', (event) => {
|
|
155
|
+
console.log('Event:', event.type);
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
// Shorthand methods
|
|
159
|
+
RunAnywhere.events.onInitialization((event) => { ... });
|
|
160
|
+
RunAnywhere.events.onGeneration((event) => { ... });
|
|
161
|
+
RunAnywhere.events.onModel((event) => { ... });
|
|
162
|
+
RunAnywhere.events.onVoice((event) => { ... });
|
|
163
|
+
|
|
164
|
+
// Unsubscribe
|
|
165
|
+
unsubscribe();
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
#### Event Categories
|
|
169
|
+
|
|
170
|
+
| Category | Events |
|
|
171
|
+
|----------|--------|
|
|
172
|
+
| `Initialization` | `started`, `completed`, `failed` |
|
|
173
|
+
| `Generation` | `started`, `tokenGenerated`, `completed`, `failed` |
|
|
174
|
+
| `Model` | `downloadStarted`, `downloadProgress`, `downloadCompleted`, `loadCompleted` |
|
|
175
|
+
| `Voice` | `sttStarted`, `sttCompleted`, `ttsStarted`, `ttsCompleted` |
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
### ModelRegistry
|
|
180
|
+
|
|
181
|
+
Manage model metadata and discovery.
|
|
182
|
+
|
|
183
|
+
```typescript
|
|
184
|
+
import { ModelRegistry } from '@runanywhere/core';
|
|
185
|
+
|
|
186
|
+
// Initialize (called automatically)
|
|
187
|
+
await ModelRegistry.initialize();
|
|
188
|
+
|
|
189
|
+
// Register a model
|
|
190
|
+
await ModelRegistry.registerModel({
|
|
191
|
+
id: 'my-model',
|
|
192
|
+
name: 'My Model',
|
|
193
|
+
category: ModelCategory.Language,
|
|
194
|
+
format: ModelFormat.GGUF,
|
|
195
|
+
downloadURL: 'https://...',
|
|
196
|
+
// ...
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
// Get model
|
|
200
|
+
const model = await ModelRegistry.getModel('my-model');
|
|
201
|
+
|
|
202
|
+
// List models by category
|
|
203
|
+
const llmModels = await ModelRegistry.getModelsByCategory(ModelCategory.Language);
|
|
204
|
+
|
|
205
|
+
// Update model
|
|
206
|
+
await ModelRegistry.updateModel('my-model', { isDownloaded: true });
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
### DownloadService
|
|
212
|
+
|
|
213
|
+
Download models with progress tracking.
|
|
214
|
+
|
|
215
|
+
```typescript
|
|
216
|
+
import { DownloadService, DownloadState } from '@runanywhere/core';
|
|
217
|
+
|
|
218
|
+
// Create download task
|
|
219
|
+
const task = await DownloadService.downloadModel(
|
|
220
|
+
'model-id',
|
|
221
|
+
'https://download-url.com/model.gguf',
|
|
222
|
+
(progress) => {
|
|
223
|
+
console.log(`Progress: ${progress.progress * 100}%`);
|
|
224
|
+
console.log(`State: ${progress.state}`);
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
// Cancel download
|
|
229
|
+
await DownloadService.cancelDownload('model-id');
|
|
230
|
+
|
|
231
|
+
// Get active downloads
|
|
232
|
+
const activeDownloads = DownloadService.getActiveDownloads();
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
### FileSystem
|
|
238
|
+
|
|
239
|
+
Cross-platform file operations.
|
|
240
|
+
|
|
241
|
+
```typescript
|
|
242
|
+
import { FileSystem } from '@runanywhere/core';
|
|
243
|
+
|
|
244
|
+
// Check availability
|
|
245
|
+
if (FileSystem.isAvailable()) {
|
|
246
|
+
// Get directories
|
|
247
|
+
const docs = FileSystem.getDocumentsDirectory();
|
|
248
|
+
const cache = FileSystem.getCacheDirectory();
|
|
249
|
+
|
|
250
|
+
// Model operations
|
|
251
|
+
const exists = await FileSystem.modelExists('model-id', 'LlamaCpp');
|
|
252
|
+
const path = await FileSystem.getModelPath('model-id', 'LlamaCpp');
|
|
253
|
+
|
|
254
|
+
// File operations
|
|
255
|
+
const fileExists = await FileSystem.exists('/path/to/file');
|
|
256
|
+
const size = await FileSystem.getFileSize('/path/to/file');
|
|
257
|
+
await FileSystem.deleteFile('/path/to/file');
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
### Error Handling
|
|
264
|
+
|
|
265
|
+
```typescript
|
|
266
|
+
import {
|
|
267
|
+
SDKError,
|
|
268
|
+
SDKErrorCode,
|
|
269
|
+
isSDKError,
|
|
270
|
+
notInitializedError,
|
|
271
|
+
modelNotFoundError,
|
|
272
|
+
} from '@runanywhere/core';
|
|
273
|
+
|
|
274
|
+
try {
|
|
275
|
+
await RunAnywhere.generate('Hello');
|
|
276
|
+
} catch (error) {
|
|
277
|
+
if (isSDKError(error)) {
|
|
278
|
+
console.log('Code:', error.code);
|
|
279
|
+
console.log('Category:', error.category);
|
|
280
|
+
console.log('Suggestion:', error.recoverySuggestion);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Create errors
|
|
285
|
+
throw notInitializedError();
|
|
286
|
+
throw modelNotFoundError('model-id');
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
---
|
|
290
|
+
|
|
291
|
+
### Logging
|
|
292
|
+
|
|
293
|
+
```typescript
|
|
294
|
+
import { SDKLogger, LogLevel } from '@runanywhere/core';
|
|
295
|
+
|
|
296
|
+
// Set global log level
|
|
297
|
+
RunAnywhere.setLogLevel(LogLevel.Debug);
|
|
298
|
+
|
|
299
|
+
// Create custom logger
|
|
300
|
+
const logger = new SDKLogger('MyModule');
|
|
301
|
+
logger.debug('Debug message', { data: 'value' });
|
|
302
|
+
logger.info('Info message');
|
|
303
|
+
logger.warning('Warning message');
|
|
304
|
+
logger.error('Error message', new Error('...'));
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
---
|
|
308
|
+
|
|
309
|
+
## Types
|
|
310
|
+
|
|
311
|
+
### Enums
|
|
312
|
+
|
|
313
|
+
```typescript
|
|
314
|
+
import {
|
|
315
|
+
SDKEnvironment,
|
|
316
|
+
ExecutionTarget,
|
|
317
|
+
LLMFramework,
|
|
318
|
+
ModelCategory,
|
|
319
|
+
ModelFormat,
|
|
320
|
+
HardwareAcceleration,
|
|
321
|
+
ComponentState,
|
|
322
|
+
} from '@runanywhere/core';
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Interfaces
|
|
326
|
+
|
|
327
|
+
```typescript
|
|
328
|
+
import type {
|
|
329
|
+
// Models
|
|
330
|
+
ModelInfo,
|
|
331
|
+
StorageInfo,
|
|
332
|
+
|
|
333
|
+
// Generation
|
|
334
|
+
GenerationOptions,
|
|
335
|
+
GenerationResult,
|
|
336
|
+
PerformanceMetrics,
|
|
337
|
+
|
|
338
|
+
// Voice
|
|
339
|
+
STTOptions,
|
|
340
|
+
STTResult,
|
|
341
|
+
TTSConfiguration,
|
|
342
|
+
TTSResult,
|
|
343
|
+
VADConfiguration,
|
|
344
|
+
|
|
345
|
+
// Events
|
|
346
|
+
SDKEvent,
|
|
347
|
+
SDKGenerationEvent,
|
|
348
|
+
SDKModelEvent,
|
|
349
|
+
SDKVoiceEvent,
|
|
350
|
+
|
|
351
|
+
// Download
|
|
352
|
+
DownloadProgress,
|
|
353
|
+
DownloadConfiguration,
|
|
354
|
+
} from '@runanywhere/core';
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
|
|
359
|
+
## Package Structure
|
|
360
|
+
|
|
361
|
+
```
|
|
362
|
+
packages/core/
|
|
363
|
+
├── src/
|
|
364
|
+
│ ├── index.ts # Package exports
|
|
365
|
+
│ ├── Public/
|
|
366
|
+
│ │ ├── RunAnywhere.ts # Main API singleton
|
|
367
|
+
│ │ ├── Events/
|
|
368
|
+
│ │ │ └── EventBus.ts # Event pub/sub
|
|
369
|
+
│ │ └── Extensions/ # API method implementations
|
|
370
|
+
│ ├── Foundation/
|
|
371
|
+
│ │ ├── ErrorTypes/ # SDK errors
|
|
372
|
+
│ │ ├── Initialization/ # Init state machine
|
|
373
|
+
│ │ ├── Security/ # Secure storage
|
|
374
|
+
│ │ ├── Logging/ # Logger
|
|
375
|
+
│ │ └── DependencyInjection/ # Service registry
|
|
376
|
+
│ ├── Infrastructure/
|
|
377
|
+
│ │ └── Events/ # Event internals
|
|
378
|
+
│ ├── Features/
|
|
379
|
+
│ │ └── VoiceSession/ # Voice session
|
|
380
|
+
│ ├── services/
|
|
381
|
+
│ │ ├── ModelRegistry.ts # Model metadata
|
|
382
|
+
│ │ ├── DownloadService.ts # Downloads
|
|
383
|
+
│ │ ├── FileSystem.ts # File ops
|
|
384
|
+
│ │ └── Network/ # HTTP, telemetry
|
|
385
|
+
│ ├── types/ # TypeScript types
|
|
386
|
+
│ └── native/ # Native module access
|
|
387
|
+
├── cpp/ # C++ HybridObject bridges
|
|
388
|
+
├── ios/ # Swift native module
|
|
389
|
+
├── android/ # Kotlin native module
|
|
390
|
+
└── nitrogen/ # Generated Nitro specs
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
## Native Integration
|
|
396
|
+
|
|
397
|
+
This package includes native bindings via Nitrogen/Nitro for:
|
|
398
|
+
|
|
399
|
+
- **RACommons** — Core C++ infrastructure
|
|
400
|
+
- **PlatformAdapter** — Platform-specific implementations
|
|
401
|
+
- **SecureStorage** — Keychain (iOS) / EncryptedSharedPreferences (Android)
|
|
402
|
+
- **SDKLogger** — Native logging
|
|
403
|
+
- **AudioDecoder** — Audio file decoding
|
|
404
|
+
|
|
405
|
+
### iOS
|
|
406
|
+
|
|
407
|
+
The package uses `RACommons.xcframework` which is automatically downloaded during `pod install`.
|
|
408
|
+
|
|
409
|
+
### Android
|
|
410
|
+
|
|
411
|
+
Native libraries (`librac_commons.so`, `librunanywhere_jni.so`) are automatically downloaded during Gradle build.
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## See Also
|
|
416
|
+
|
|
417
|
+
- [Main SDK README](../../README.md) — Full SDK documentation
|
|
418
|
+
- [ARCHITECTURE.md](../../ARCHITECTURE.md) — System architecture
|
|
419
|
+
- [API Reference](../../Docs/Documentation.md) — Complete API docs
|
|
420
|
+
- [@runanywhere/llamacpp](../llamacpp/README.md) — LLM backend
|
|
421
|
+
- [@runanywhere/onnx](../onnx/README.md) — STT/TTS backend
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
## License
|
|
426
|
+
|
|
427
|
+
MIT License
|
package/RunAnywhereCore.podspec
CHANGED
|
@@ -16,10 +16,10 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
|
|
17
17
|
# =============================================================================
|
|
18
18
|
# Core SDK - RACommons xcframework is bundled in npm package
|
|
19
|
-
# No downloads needed - framework is included in ios/
|
|
19
|
+
# No downloads needed - framework is included in ios/Binaries/
|
|
20
20
|
# =============================================================================
|
|
21
21
|
puts "[RunAnywhereCore] Using bundled RACommons.xcframework from npm package"
|
|
22
|
-
s.vendored_frameworks = "ios/
|
|
22
|
+
s.vendored_frameworks = "ios/Binaries/RACommons.xcframework"
|
|
23
23
|
|
|
24
24
|
# Source files
|
|
25
25
|
s.source_files = [
|
|
@@ -35,8 +35,8 @@ Pod::Spec.new do |s|
|
|
|
35
35
|
"HEADER_SEARCH_PATHS" => [
|
|
36
36
|
"$(PODS_TARGET_SRCROOT)/cpp",
|
|
37
37
|
"$(PODS_TARGET_SRCROOT)/cpp/bridges",
|
|
38
|
-
"$(PODS_TARGET_SRCROOT)/ios/
|
|
39
|
-
"$(PODS_TARGET_SRCROOT)/ios/
|
|
38
|
+
"$(PODS_TARGET_SRCROOT)/ios/Binaries/RACommons.xcframework/ios-arm64/RACommons.framework/Headers",
|
|
39
|
+
"$(PODS_TARGET_SRCROOT)/ios/Binaries/RACommons.xcframework/ios-arm64_x86_64-simulator/RACommons.framework/Headers",
|
|
40
40
|
"$(PODS_ROOT)/Headers/Public",
|
|
41
41
|
].join(" "),
|
|
42
42
|
"GCC_PREPROCESSOR_DEFINITIONS" => "$(inherited) HAS_RACOMMONS=1",
|
|
@@ -70,10 +70,12 @@
|
|
|
70
70
|
#include <android/log.h>
|
|
71
71
|
#define LOG_TAG "HybridRunAnywhereCore"
|
|
72
72
|
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
|
73
|
+
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
|
73
74
|
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
|
74
75
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
|
|
75
76
|
#else
|
|
76
77
|
#define LOGI(...) printf("[HybridRunAnywhereCore] "); printf(__VA_ARGS__); printf("\n")
|
|
78
|
+
#define LOGW(...) printf("[HybridRunAnywhereCore WARN] "); printf(__VA_ARGS__); printf("\n")
|
|
77
79
|
#define LOGE(...) printf("[HybridRunAnywhereCore ERROR] "); printf(__VA_ARGS__); printf("\n")
|
|
78
80
|
#define LOGD(...) printf("[HybridRunAnywhereCore DEBUG] "); printf(__VA_ARGS__); printf("\n")
|
|
79
81
|
#endif
|
|
@@ -635,15 +637,19 @@ std::shared_ptr<Promise<bool>> HybridRunAnywhereCore::registerDevice(
|
|
|
635
637
|
std::string apiKey;
|
|
636
638
|
|
|
637
639
|
if (env == RAC_ENV_DEVELOPMENT) {
|
|
638
|
-
// Development: Use Supabase from C++ dev config
|
|
639
|
-
//
|
|
640
|
+
// Development: Use Supabase from C++ dev config (development_config.cpp)
|
|
641
|
+
// NO FALLBACK - credentials must come from C++ config only
|
|
640
642
|
const char* devUrl = rac_dev_config_get_supabase_url();
|
|
641
643
|
const char* devKey = rac_dev_config_get_supabase_key();
|
|
642
644
|
|
|
643
|
-
baseURL = devUrl ? devUrl : "
|
|
645
|
+
baseURL = devUrl ? devUrl : "";
|
|
644
646
|
apiKey = devKey ? devKey : "";
|
|
645
647
|
|
|
646
|
-
|
|
648
|
+
if (baseURL.empty()) {
|
|
649
|
+
LOGW("Development mode but Supabase URL not configured in C++ dev_config");
|
|
650
|
+
} else {
|
|
651
|
+
LOGD("Using Supabase from dev config: %s", baseURL.c_str());
|
|
652
|
+
}
|
|
647
653
|
} else {
|
|
648
654
|
// Production/Staging: Use configured Railway URL
|
|
649
655
|
// These come from SDK initialization (App.tsx -> RunAnywhere.initialize)
|
|
@@ -21,10 +21,12 @@
|
|
|
21
21
|
#include <android/log.h>
|
|
22
22
|
#define LOG_TAG "TelemetryBridge"
|
|
23
23
|
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
|
24
|
+
#define LOGW(...) __android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__)
|
|
24
25
|
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
|
25
26
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
|
|
26
27
|
#else
|
|
27
28
|
#define LOGI(...) printf("[TelemetryBridge] "); printf(__VA_ARGS__); printf("\n")
|
|
29
|
+
#define LOGW(...) printf("[TelemetryBridge WARN] "); printf(__VA_ARGS__); printf("\n")
|
|
28
30
|
#define LOGE(...) printf("[TelemetryBridge ERROR] "); printf(__VA_ARGS__); printf("\n")
|
|
29
31
|
#define LOGD(...) printf("[TelemetryBridge DEBUG] "); printf(__VA_ARGS__); printf("\n")
|
|
30
32
|
#endif
|
|
@@ -253,14 +255,19 @@ static void telemetryHttpCallback(
|
|
|
253
255
|
std::string apiKey;
|
|
254
256
|
|
|
255
257
|
if (env == RAC_ENV_DEVELOPMENT) {
|
|
256
|
-
// Development: Use Supabase from C++ dev config
|
|
258
|
+
// Development: Use Supabase from C++ dev config (development_config.cpp)
|
|
259
|
+
// NO FALLBACK - credentials must come from C++ config only
|
|
257
260
|
const char* devUrl = rac_dev_config_get_supabase_url();
|
|
258
261
|
const char* devKey = rac_dev_config_get_supabase_key();
|
|
259
262
|
|
|
260
|
-
baseURL = devUrl ? devUrl : "
|
|
263
|
+
baseURL = devUrl ? devUrl : "";
|
|
261
264
|
apiKey = devKey ? devKey : "";
|
|
262
265
|
|
|
263
|
-
|
|
266
|
+
if (baseURL.empty()) {
|
|
267
|
+
LOGW("Development mode but Supabase URL not configured in C++ dev_config");
|
|
268
|
+
} else {
|
|
269
|
+
LOGD("Telemetry using Supabase: %s", baseURL.c_str());
|
|
270
|
+
}
|
|
264
271
|
} else {
|
|
265
272
|
// Production/Staging: Use configured Railway URL
|
|
266
273
|
// These come from SDK initialization (App.tsx -> RunAnywhere.initialize)
|
package/ios/.testlocal
ADDED
|
File without changes
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
#include <string>
|
|
20
20
|
#include <optional>
|
|
21
21
|
#include <functional>
|
|
22
|
-
// #include <NitroModules/Null.hpp> // Removed - file does not exist in nitro-modules 0.31.3
|
|
22
|
+
// // #include <NitroModules/Null.hpp> // Removed - file does not exist in nitro-modules 0.31.3 // Removed - file does not exist in nitro-modules 0.31.3
|
|
23
23
|
#include <variant>
|
|
24
24
|
|
|
25
25
|
namespace margelo::nitro::runanywhere {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runanywhere/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Core SDK for RunAnywhere React Native - includes RACommons bindings, native bridges, and public API",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -38,17 +38,18 @@
|
|
|
38
38
|
"ai",
|
|
39
39
|
"on-device",
|
|
40
40
|
"machine-learning",
|
|
41
|
-
"nitro"
|
|
41
|
+
"nitro",
|
|
42
|
+
"expo"
|
|
42
43
|
],
|
|
43
44
|
"license": "MIT",
|
|
44
45
|
"peerDependencies": {
|
|
45
|
-
"react": "
|
|
46
|
-
"react-native": "
|
|
47
|
-
"react-native-blob-util": "
|
|
48
|
-
"react-native-device-info": "
|
|
49
|
-
"react-native-fs": "
|
|
50
|
-
"react-native-nitro-modules": "
|
|
51
|
-
"react-native-zip-archive": "
|
|
46
|
+
"react": ">=18.0.0",
|
|
47
|
+
"react-native": ">=0.74.0",
|
|
48
|
+
"react-native-blob-util": ">=0.19.0",
|
|
49
|
+
"react-native-device-info": ">=11.0.0",
|
|
50
|
+
"react-native-fs": ">=2.20.0",
|
|
51
|
+
"react-native-nitro-modules": ">=0.31.3",
|
|
52
|
+
"react-native-zip-archive": ">=6.1.0"
|
|
52
53
|
},
|
|
53
54
|
"peerDependenciesMeta": {
|
|
54
55
|
"react-native-blob-util": {
|
|
@@ -65,10 +66,10 @@
|
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
|
-
"@types/react": "
|
|
69
|
+
"@types/react": "~19.1.0",
|
|
69
70
|
"nitrogen": "^0.31.10",
|
|
70
71
|
"react-native-nitro-modules": "^0.31.10",
|
|
71
|
-
"typescript": "
|
|
72
|
+
"typescript": "~5.9.2"
|
|
72
73
|
},
|
|
73
74
|
"create-react-native-library": {
|
|
74
75
|
"languages": "kotlin-swift",
|