react-native-executorch 0.5.1 → 0.5.3
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/android/CMakeLists.txt +24 -0
- package/android/build.gradle +1 -0
- package/android/src/main/cpp/CMakeLists.txt +25 -0
- package/android/src/main/java/com/swmansion/rnexecutorch/RnExecutorchPackage.kt +1 -13
- package/common/rnexecutorch/RnExecutorchInstaller.cpp +52 -18
- package/common/rnexecutorch/RnExecutorchInstaller.h +0 -25
- package/common/rnexecutorch/TokenizerModule.cpp +1 -1
- package/common/rnexecutorch/TokenizerModule.h +4 -1
- package/common/rnexecutorch/data_processing/FileUtils.h +2 -2
- package/common/rnexecutorch/data_processing/ImageProcessing.cpp +5 -5
- package/common/rnexecutorch/data_processing/ImageProcessing.h +2 -2
- package/common/rnexecutorch/data_processing/Numerical.cpp +13 -0
- package/common/rnexecutorch/host_objects/JsiConversions.h +43 -62
- package/common/rnexecutorch/host_objects/ModelHostObject.h +43 -24
- package/common/rnexecutorch/metaprogramming/ConstructorHelpers.h +8 -6
- package/common/rnexecutorch/metaprogramming/FunctionHelpers.h +1 -1
- package/common/rnexecutorch/models/BaseModel.cpp +2 -2
- package/common/rnexecutorch/models/BaseModel.h +5 -0
- package/common/rnexecutorch/models/EncoderDecoderBase.cpp +2 -2
- package/common/rnexecutorch/models/EncoderDecoderBase.h +2 -2
- package/common/rnexecutorch/models/classification/Classification.cpp +6 -6
- package/common/rnexecutorch/models/classification/Classification.h +5 -0
- package/common/rnexecutorch/models/classification/Constants.h +3 -3
- package/common/rnexecutorch/models/embeddings/BaseEmbeddings.cpp +2 -2
- package/common/rnexecutorch/models/embeddings/BaseEmbeddings.h +2 -2
- package/common/rnexecutorch/models/embeddings/image/ImageEmbeddings.cpp +3 -3
- package/common/rnexecutorch/models/embeddings/image/ImageEmbeddings.h +5 -0
- package/common/rnexecutorch/models/embeddings/text/TextEmbeddings.cpp +2 -2
- package/common/rnexecutorch/models/embeddings/text/TextEmbeddings.h +6 -1
- package/common/rnexecutorch/models/image_segmentation/Constants.h +3 -3
- package/common/rnexecutorch/models/image_segmentation/ImageSegmentation.cpp +6 -5
- package/common/rnexecutorch/models/image_segmentation/ImageSegmentation.h +8 -1
- package/common/rnexecutorch/models/llm/LLM.cpp +58 -0
- package/common/rnexecutorch/models/llm/LLM.h +35 -0
- package/common/rnexecutorch/models/object_detection/Constants.h +3 -3
- package/common/rnexecutorch/models/object_detection/ObjectDetection.cpp +8 -8
- package/common/rnexecutorch/models/object_detection/ObjectDetection.h +11 -5
- package/common/rnexecutorch/models/object_detection/Types.h +13 -0
- package/common/rnexecutorch/models/object_detection/Utils.cpp +13 -11
- package/common/rnexecutorch/models/object_detection/Utils.h +7 -13
- package/common/rnexecutorch/models/ocr/CTCLabelConverter.cpp +2 -2
- package/common/rnexecutorch/models/ocr/CTCLabelConverter.h +2 -2
- package/common/rnexecutorch/models/ocr/Constants.h +33 -26
- package/common/rnexecutorch/models/ocr/Detector.cpp +20 -22
- package/common/rnexecutorch/models/ocr/Detector.h +4 -4
- package/common/rnexecutorch/models/ocr/OCR.cpp +9 -8
- package/common/rnexecutorch/models/ocr/OCR.h +11 -3
- package/common/rnexecutorch/models/ocr/RecognitionHandler.cpp +20 -19
- package/common/rnexecutorch/models/ocr/RecognitionHandler.h +9 -7
- package/common/rnexecutorch/models/ocr/Recognizer.cpp +7 -7
- package/common/rnexecutorch/models/ocr/Recognizer.h +2 -2
- package/common/rnexecutorch/models/ocr/Types.h +4 -6
- package/common/rnexecutorch/models/ocr/{DetectorUtils.cpp → utils/DetectorUtils.cpp} +70 -63
- package/common/rnexecutorch/models/ocr/{DetectorUtils.h → utils/DetectorUtils.h} +12 -11
- package/common/rnexecutorch/models/ocr/{RecognitionHandlerUtils.cpp → utils/RecognitionHandlerUtils.cpp} +14 -11
- package/common/rnexecutorch/models/ocr/{RecognitionHandlerUtils.h → utils/RecognitionHandlerUtils.h} +5 -5
- package/common/rnexecutorch/models/ocr/{RecognizerUtils.cpp → utils/RecognizerUtils.cpp} +28 -26
- package/common/rnexecutorch/models/ocr/{RecognizerUtils.h → utils/RecognizerUtils.h} +15 -14
- package/common/rnexecutorch/models/speech_to_text/SpeechToText.cpp +2 -2
- package/common/rnexecutorch/models/speech_to_text/SpeechToText.h +9 -2
- package/common/rnexecutorch/models/speech_to_text/SpeechToTextStrategy.h +2 -2
- package/common/rnexecutorch/models/speech_to_text/WhisperStrategy.cpp +2 -2
- package/common/rnexecutorch/models/speech_to_text/WhisperStrategy.h +2 -2
- package/common/rnexecutorch/models/style_transfer/StyleTransfer.cpp +5 -5
- package/common/rnexecutorch/models/style_transfer/StyleTransfer.h +6 -0
- package/common/rnexecutorch/models/vertical_ocr/VerticalDetector.cpp +23 -22
- package/common/rnexecutorch/models/vertical_ocr/VerticalDetector.h +4 -4
- package/common/rnexecutorch/models/vertical_ocr/VerticalOCR.cpp +34 -34
- package/common/rnexecutorch/models/vertical_ocr/VerticalOCR.h +27 -20
- package/{third-party/ios/ExecutorchLib/ExecutorchLib/sampler → common/runner}/sampler.cpp +3 -2
- package/{third-party/ios/ExecutorchLib/ExecutorchLib/sampler → common/runner}/sampler.h +3 -2
- package/ios/libs/executorch/libbackend_coreml_ios.a +0 -0
- package/ios/libs/executorch/libbackend_coreml_simulator.a +0 -0
- package/{third-party/ios/ExecutorchLib/frameworks/backend_mps.xcframework/ios-arm64 → ios/libs/executorch}/libbackend_mps_ios.a +0 -0
- package/{third-party/ios/ExecutorchLib/frameworks/backend_mps.xcframework/ios-arm64-simulator → ios/libs/executorch}/libbackend_mps_simulator.a +0 -0
- package/ios/libs/executorch/libbackend_xnnpack_ios.a +0 -0
- package/ios/libs/executorch/libbackend_xnnpack_simulator.a +0 -0
- package/ios/libs/executorch/libexecutorch_ios.a +0 -0
- package/ios/libs/executorch/libexecutorch_simulator.a +0 -0
- package/ios/libs/executorch/libkernels_custom_ios.a +0 -0
- package/ios/libs/executorch/libkernels_custom_simulator.a +0 -0
- package/ios/libs/executorch/libkernels_optimized_ios.a +0 -0
- package/ios/libs/executorch/libkernels_optimized_simulator.a +0 -0
- package/ios/libs/executorch/libkernels_portable_ios.a +0 -0
- package/ios/libs/executorch/libkernels_portable_simulator.a +0 -0
- package/ios/libs/executorch/libkernels_quantized_ios.a +0 -0
- package/ios/libs/executorch/libkernels_quantized_simulator.a +0 -0
- package/ios/libs/tokenizers-cpp/physical-arm64-release/libsentencepiece.a +0 -0
- package/ios/{ExecutorchLib.xcframework/ios-arm64-simulator/ExecutorchLib.framework/ExecutorchLib → libs/tokenizers-cpp/physical-arm64-release/libtokenizers_c.a} +0 -0
- package/ios/libs/tokenizers-cpp/physical-arm64-release/libtokenizers_cpp.a +0 -0
- package/ios/libs/tokenizers-cpp/simulator-arm64-debug/libsentencepiece.a +0 -0
- package/ios/{ExecutorchLib.xcframework/ios-arm64/ExecutorchLib.framework/ExecutorchLib → libs/tokenizers-cpp/simulator-arm64-debug/libtokenizers_c.a} +0 -0
- package/ios/libs/tokenizers-cpp/simulator-arm64-debug/libtokenizers_cpp.a +0 -0
- package/lib/Error.js +53 -0
- package/lib/ThreadPool.d.ts +10 -0
- package/lib/ThreadPool.js +28 -0
- package/lib/common/Logger.d.ts +8 -0
- package/lib/common/Logger.js +19 -0
- package/lib/constants/directories.js +2 -0
- package/lib/constants/llmDefaults.d.ts +6 -0
- package/lib/constants/llmDefaults.js +16 -0
- package/lib/constants/modelUrls.d.ts +223 -0
- package/lib/constants/modelUrls.js +322 -0
- package/lib/constants/ocr/models.d.ts +882 -0
- package/lib/constants/ocr/models.js +182 -0
- package/lib/constants/ocr/symbols.js +139 -0
- package/lib/constants/sttDefaults.d.ts +28 -0
- package/lib/constants/sttDefaults.js +68 -0
- package/lib/controllers/LLMController.d.ts +47 -0
- package/lib/controllers/LLMController.js +213 -0
- package/lib/controllers/OCRController.js +67 -0
- package/lib/controllers/SpeechToTextController.d.ts +56 -0
- package/lib/controllers/SpeechToTextController.js +349 -0
- package/lib/controllers/VerticalOCRController.js +70 -0
- package/lib/hooks/computer_vision/useClassification.d.ts +15 -0
- package/lib/hooks/computer_vision/useClassification.js +7 -0
- package/lib/hooks/computer_vision/useImageEmbeddings.d.ts +15 -0
- package/lib/hooks/computer_vision/useImageEmbeddings.js +7 -0
- package/lib/hooks/computer_vision/useImageSegmentation.d.ts +38 -0
- package/lib/hooks/computer_vision/useImageSegmentation.js +7 -0
- package/lib/hooks/computer_vision/useOCR.d.ts +20 -0
- package/lib/hooks/computer_vision/useOCR.js +41 -0
- package/lib/hooks/computer_vision/useObjectDetection.d.ts +15 -0
- package/lib/hooks/computer_vision/useObjectDetection.js +7 -0
- package/lib/hooks/computer_vision/useStyleTransfer.d.ts +15 -0
- package/lib/hooks/computer_vision/useStyleTransfer.js +7 -0
- package/lib/hooks/computer_vision/useVerticalOCR.d.ts +21 -0
- package/lib/hooks/computer_vision/useVerticalOCR.js +43 -0
- package/lib/hooks/general/useExecutorchModule.d.ts +13 -0
- package/lib/hooks/general/useExecutorchModule.js +7 -0
- package/lib/hooks/natural_language_processing/useLLM.d.ts +10 -0
- package/lib/hooks/natural_language_processing/useLLM.js +78 -0
- package/lib/hooks/natural_language_processing/useSpeechToText.d.ts +27 -0
- package/lib/hooks/natural_language_processing/useSpeechToText.js +49 -0
- package/lib/hooks/natural_language_processing/useTextEmbeddings.d.ts +16 -0
- package/lib/hooks/natural_language_processing/useTextEmbeddings.js +7 -0
- package/lib/hooks/natural_language_processing/useTokenizer.d.ts +17 -0
- package/lib/hooks/natural_language_processing/useTokenizer.js +52 -0
- package/lib/hooks/useModule.js +45 -0
- package/lib/hooks/useNonStaticModule.d.ts +20 -0
- package/lib/hooks/useNonStaticModule.js +49 -0
- package/lib/index.d.ts +48 -0
- package/lib/index.js +58 -0
- package/lib/module/controllers/LLMController.js +6 -10
- package/lib/module/controllers/LLMController.js.map +1 -1
- package/lib/module/hooks/computer_vision/useClassification.js +2 -2
- package/lib/module/hooks/computer_vision/useClassification.js.map +1 -1
- package/lib/module/hooks/computer_vision/useImageEmbeddings.js +2 -2
- package/lib/module/hooks/computer_vision/useImageEmbeddings.js.map +1 -1
- package/lib/module/hooks/computer_vision/useImageSegmentation.js +2 -2
- package/lib/module/hooks/computer_vision/useImageSegmentation.js.map +1 -1
- package/lib/module/hooks/computer_vision/useObjectDetection.js +2 -2
- package/lib/module/hooks/computer_vision/useObjectDetection.js.map +1 -1
- package/lib/module/hooks/computer_vision/useStyleTransfer.js +2 -2
- package/lib/module/hooks/computer_vision/useStyleTransfer.js.map +1 -1
- package/lib/module/hooks/general/useExecutorchModule.js +2 -2
- package/lib/module/hooks/general/useExecutorchModule.js.map +1 -1
- package/lib/module/hooks/natural_language_processing/useTextEmbeddings.js +2 -2
- package/lib/module/hooks/natural_language_processing/useTextEmbeddings.js.map +1 -1
- package/lib/module/hooks/useModule.js +13 -9
- package/lib/module/hooks/useModule.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/BaseModule.js +9 -17
- package/lib/module/modules/BaseModule.js.map +1 -1
- package/lib/module/modules/computer_vision/ClassificationModule.js +2 -2
- package/lib/module/modules/computer_vision/ClassificationModule.js.map +1 -1
- package/lib/module/modules/computer_vision/ImageEmbeddingsModule.js +2 -2
- package/lib/module/modules/computer_vision/ImageEmbeddingsModule.js.map +1 -1
- package/lib/module/modules/computer_vision/ImageSegmentationModule.js +2 -2
- package/lib/module/modules/computer_vision/ImageSegmentationModule.js.map +1 -1
- package/lib/module/modules/computer_vision/ObjectDetectionModule.js +2 -2
- package/lib/module/modules/computer_vision/ObjectDetectionModule.js.map +1 -1
- package/lib/module/modules/computer_vision/StyleTransferModule.js +2 -2
- package/lib/module/modules/computer_vision/StyleTransferModule.js.map +1 -1
- package/lib/module/modules/general/ExecutorchModule.js +2 -2
- package/lib/module/modules/general/ExecutorchModule.js.map +1 -1
- package/lib/module/modules/natural_language_processing/TextEmbeddingsModule.js +2 -2
- package/lib/module/modules/natural_language_processing/TextEmbeddingsModule.js.map +1 -1
- package/lib/module/native/RnExecutorchModules.js +1 -2
- package/lib/module/native/RnExecutorchModules.js.map +1 -1
- package/lib/module/utils/ResourceFetcher.js +6 -8
- package/lib/module/utils/ResourceFetcher.js.map +1 -1
- package/lib/module/utils/ResourceFetcherUtils.js +20 -20
- package/lib/module/utils/ResourceFetcherUtils.js.map +1 -1
- package/lib/module/utils/SpeechToTextModule/ASR.js +3 -3
- package/lib/module/utils/SpeechToTextModule/ASR.js.map +1 -1
- package/lib/modules/BaseModule.js +25 -0
- package/lib/modules/BaseNonStaticModule.js +14 -0
- package/lib/modules/computer_vision/ClassificationModule.d.ts +8 -0
- package/lib/modules/computer_vision/ClassificationModule.js +17 -0
- package/lib/modules/computer_vision/ImageEmbeddingsModule.d.ts +8 -0
- package/lib/modules/computer_vision/ImageEmbeddingsModule.js +17 -0
- package/lib/modules/computer_vision/ImageSegmentationModule.d.ts +11 -0
- package/lib/modules/computer_vision/ImageSegmentationModule.js +27 -0
- package/lib/modules/computer_vision/OCRModule.d.ts +14 -0
- package/lib/modules/computer_vision/OCRModule.js +17 -0
- package/lib/modules/computer_vision/ObjectDetectionModule.d.ts +9 -0
- package/lib/modules/computer_vision/ObjectDetectionModule.js +17 -0
- package/lib/modules/computer_vision/StyleTransferModule.d.ts +8 -0
- package/lib/modules/computer_vision/StyleTransferModule.js +17 -0
- package/lib/modules/computer_vision/VerticalOCRModule.d.ts +14 -0
- package/lib/modules/computer_vision/VerticalOCRModule.js +19 -0
- package/lib/modules/general/ExecutorchModule.d.ts +7 -0
- package/lib/modules/general/ExecutorchModule.js +14 -0
- package/lib/modules/natural_language_processing/LLMModule.d.ts +28 -0
- package/lib/modules/natural_language_processing/LLMModule.js +45 -0
- package/lib/modules/natural_language_processing/SpeechToTextModule.d.ts +24 -0
- package/lib/modules/natural_language_processing/SpeechToTextModule.js +36 -0
- package/lib/modules/natural_language_processing/TextEmbeddingsModule.d.ts +9 -0
- package/lib/modules/natural_language_processing/TextEmbeddingsModule.js +21 -0
- package/lib/modules/natural_language_processing/TokenizerModule.d.ts +12 -0
- package/lib/modules/natural_language_processing/TokenizerModule.js +30 -0
- package/lib/native/NativeETInstaller.js +2 -0
- package/lib/native/NativeOCR.js +2 -0
- package/lib/native/NativeVerticalOCR.js +2 -0
- package/lib/native/RnExecutorchModules.d.ts +7 -0
- package/lib/native/RnExecutorchModules.js +18 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/common.d.ts +32 -0
- package/lib/types/common.js +25 -0
- package/lib/types/imageSegmentation.js +26 -0
- package/lib/types/llm.d.ts +46 -0
- package/lib/types/llm.js +9 -0
- package/lib/types/objectDetection.js +94 -0
- package/lib/types/ocr.js +1 -0
- package/lib/types/stt.d.ts +94 -0
- package/lib/types/stt.js +85 -0
- package/lib/typescript/controllers/LLMController.d.ts +1 -1
- package/lib/typescript/controllers/LLMController.d.ts.map +1 -1
- package/lib/typescript/hooks/useModule.d.ts +8 -5
- package/lib/typescript/hooks/useModule.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/modules/BaseModule.d.ts +7 -6
- package/lib/typescript/modules/BaseModule.d.ts.map +1 -1
- package/lib/typescript/modules/computer_vision/ClassificationModule.d.ts +2 -2
- package/lib/typescript/modules/computer_vision/ClassificationModule.d.ts.map +1 -1
- package/lib/typescript/modules/computer_vision/ImageEmbeddingsModule.d.ts +2 -2
- package/lib/typescript/modules/computer_vision/ImageEmbeddingsModule.d.ts.map +1 -1
- package/lib/typescript/modules/computer_vision/ImageSegmentationModule.d.ts +2 -2
- package/lib/typescript/modules/computer_vision/ImageSegmentationModule.d.ts.map +1 -1
- package/lib/typescript/modules/computer_vision/ObjectDetectionModule.d.ts +2 -2
- package/lib/typescript/modules/computer_vision/ObjectDetectionModule.d.ts.map +1 -1
- package/lib/typescript/modules/computer_vision/StyleTransferModule.d.ts +2 -2
- package/lib/typescript/modules/computer_vision/StyleTransferModule.d.ts.map +1 -1
- package/lib/typescript/modules/general/ExecutorchModule.d.ts +2 -2
- package/lib/typescript/modules/general/ExecutorchModule.d.ts.map +1 -1
- package/lib/typescript/modules/natural_language_processing/TextEmbeddingsModule.d.ts +2 -2
- package/lib/typescript/modules/natural_language_processing/TextEmbeddingsModule.d.ts.map +1 -1
- package/lib/typescript/native/RnExecutorchModules.d.ts +1 -3
- package/lib/typescript/native/RnExecutorchModules.d.ts.map +1 -1
- package/lib/typescript/utils/ResourceFetcher.d.ts.map +1 -1
- package/lib/typescript/utils/ResourceFetcherUtils.d.ts.map +1 -1
- package/lib/utils/ResourceFetcher.d.ts +24 -0
- package/lib/utils/ResourceFetcher.js +305 -0
- package/lib/utils/ResourceFetcherUtils.d.ts +54 -0
- package/lib/utils/ResourceFetcherUtils.js +127 -0
- package/lib/utils/llm.d.ts +6 -0
- package/lib/utils/llm.js +72 -0
- package/lib/utils/stt.js +21 -0
- package/package.json +1 -2
- package/react-native-executorch.podspec +47 -44
- package/src/controllers/LLMController.ts +8 -13
- package/src/hooks/computer_vision/useClassification.ts +2 -2
- package/src/hooks/computer_vision/useImageEmbeddings.ts +2 -2
- package/src/hooks/computer_vision/useImageSegmentation.ts +2 -2
- package/src/hooks/computer_vision/useObjectDetection.ts +2 -2
- package/src/hooks/computer_vision/useStyleTransfer.ts +2 -2
- package/src/hooks/general/useExecutorchModule.ts +2 -2
- package/src/hooks/natural_language_processing/useTextEmbeddings.ts +2 -2
- package/src/hooks/useModule.ts +23 -13
- package/src/index.ts +3 -2
- package/src/modules/BaseModule.ts +17 -28
- package/src/modules/computer_vision/ClassificationModule.ts +2 -2
- package/src/modules/computer_vision/ImageEmbeddingsModule.ts +2 -2
- package/src/modules/computer_vision/ImageSegmentationModule.ts +2 -2
- package/src/modules/computer_vision/ObjectDetectionModule.ts +2 -2
- package/src/modules/computer_vision/StyleTransferModule.ts +2 -2
- package/src/modules/general/ExecutorchModule.ts +2 -2
- package/src/modules/natural_language_processing/TextEmbeddingsModule.ts +2 -2
- package/src/native/RnExecutorchModules.ts +1 -5
- package/src/utils/ResourceFetcher.ts +9 -7
- package/src/utils/ResourceFetcherUtils.ts +15 -17
- package/src/utils/SpeechToTextModule/ASR.ts +4 -4
- package/third-party/android/libs/cpuinfo/arm64-v8a/libcpuinfo.so +0 -0
- package/third-party/android/libs/pthreadpool/arm64-v8a/libpthreadpool.so +0 -0
- package/third-party/include/cpuinfo/cpuinfo.h +2305 -0
- package/third-party/include/executorch/extension/threadpool/cpuinfo_utils.h +26 -0
- package/third-party/include/executorch/extension/threadpool/threadpool.h +94 -0
- package/third-party/include/pthreadpool/pthreadpool.h +2236 -0
- package/android/src/main/java/com/swmansion/rnexecutorch/LLM.kt +0 -63
- package/ios/ExecutorchLib.xcframework/Info.plist +0 -43
- package/ios/ExecutorchLib.xcframework/ios-arm64/ExecutorchLib.framework/Headers/ETModel.h +0 -27
- package/ios/ExecutorchLib.xcframework/ios-arm64/ExecutorchLib.framework/Headers/HuggingFaceTokenizer.h +0 -14
- package/ios/ExecutorchLib.xcframework/ios-arm64/ExecutorchLib.framework/Headers/LLaMARunner.h +0 -32
- package/ios/ExecutorchLib.xcframework/ios-arm64/ExecutorchLib.framework/Info.plist +0 -0
- package/ios/ExecutorchLib.xcframework/ios-arm64-simulator/ExecutorchLib.framework/Headers/ETModel.h +0 -27
- package/ios/ExecutorchLib.xcframework/ios-arm64-simulator/ExecutorchLib.framework/Headers/HuggingFaceTokenizer.h +0 -14
- package/ios/ExecutorchLib.xcframework/ios-arm64-simulator/ExecutorchLib.framework/Headers/LLaMARunner.h +0 -32
- package/ios/ExecutorchLib.xcframework/ios-arm64-simulator/ExecutorchLib.framework/Info.plist +0 -0
- package/ios/RnExecutorch/LLM.h +0 -5
- package/ios/RnExecutorch/LLM.mm +0 -78
- package/ios/RnExecutorch.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/ios/RnExecutorch.xcodeproj/project.xcworkspace/xcuserdata/jakubchmura.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RnExecutorch.xcodeproj/xcuserdata/jakubchmura.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/lib/module/modules/BaseNonStaticModule.js +0 -17
- package/lib/module/modules/BaseNonStaticModule.js.map +0 -1
- package/lib/module/native/NativeLLM.js +0 -5
- package/lib/module/native/NativeLLM.js.map +0 -1
- package/lib/typescript/modules/BaseNonStaticModule.d.ts +0 -10
- package/lib/typescript/modules/BaseNonStaticModule.d.ts.map +0 -1
- package/lib/typescript/native/NativeLLM.d.ts +0 -12
- package/lib/typescript/native/NativeLLM.d.ts.map +0 -1
- package/src/modules/BaseNonStaticModule.ts +0 -26
- package/src/native/NativeLLM.ts +0 -14
- package/third-party/include/tokenizers-cpp/tokenizers_c.h +0 -61
- package/third-party/ios/ExecutorchLib/ExecutorchLib/Exported/ETModel.h +0 -27
- package/third-party/ios/ExecutorchLib/ExecutorchLib/Exported/ETModel.mm +0 -249
- package/third-party/ios/ExecutorchLib/ExecutorchLib/Exported/HuggingFaceTokenizer.h +0 -14
- package/third-party/ios/ExecutorchLib/ExecutorchLib/Exported/HuggingFaceTokenizer.mm +0 -80
- package/third-party/ios/ExecutorchLib/ExecutorchLib/Exported/LLaMARunner.h +0 -32
- package/third-party/ios/ExecutorchLib/ExecutorchLib/Exported/LLaMARunner.mm +0 -95
- package/third-party/ios/ExecutorchLib/ExecutorchLib/InputType.h +0 -12
- package/third-party/ios/ExecutorchLib/ExecutorchLib/Utils.hpp +0 -217
- package/third-party/ios/ExecutorchLib/ExecutorchLib/model/Model.cpp +0 -11
- package/third-party/ios/ExecutorchLib/ExecutorchLib/model/Model.h +0 -11
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/base64.h +0 -202
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/bpe_tokenizer.cpp +0 -313
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/bpe_tokenizer.h +0 -57
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/llama_tiktoken.cpp +0 -78
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/llama_tiktoken.h +0 -23
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/tiktoken.cpp +0 -427
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/tiktoken.h +0 -87
- package/third-party/ios/ExecutorchLib/ExecutorchLib/tokenizer/tokenizer.h +0 -76
- package/third-party/ios/ExecutorchLib/ExecutorchLib.xcodeproj/project.pbxproj +0 -683
- package/third-party/ios/ExecutorchLib/ExecutorchLib.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/third-party/ios/ExecutorchLib/ExecutorchLib.xcodeproj/project.xcworkspace/xcuserdata/jakubchmura.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/third-party/ios/ExecutorchLib/ExecutorchLib.xcodeproj/xcuserdata/jakubchmura.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/third-party/ios/ExecutorchLib/build.sh +0 -44
- package/third-party/ios/ExecutorchLib/frameworks/backend_coreml.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/backend_coreml.xcframework/ios-arm64/libbackend_coreml_ios.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/backend_coreml.xcframework/ios-arm64-simulator/libbackend_coreml_simulator.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/backend_mps.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/backend_xnnpack.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/backend_xnnpack.xcframework/ios-arm64/libbackend_xnnpack_ios.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/backend_xnnpack.xcframework/ios-arm64-simulator/libbackend_xnnpack_simulator.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/Info.plist +0 -47
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/macros/Export.h +0 -163
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/macros/Macros.h +0 -497
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/BFloat16-inl.h +0 -342
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/BFloat16-math.h +0 -266
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/BFloat16.h +0 -125
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/Half-inl.h +0 -347
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/Half.h +0 -416
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/TypeSafeSignMath.h +0 -133
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/bit_cast.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/floating_point_utils.h +0 -33
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/c10/util/irange.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/ExecuTorch.h +0 -13
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/ExecuTorchError.h +0 -16
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/ExecuTorchLog.h +0 -76
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/ExecuTorchModule.h +0 -286
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/ExecuTorchTensor.h +0 -742
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/ExecuTorchValue.h +0 -219
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/extension/module/module.h +0 -492
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/extension/tensor/tensor.h +0 -13
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/extension/tensor/tensor_accessor.h +0 -190
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/extension/tensor/tensor_ptr.h +0 -347
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/extension/tensor/tensor_ptr_maker.h +0 -653
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/backend/backend_execution_context.h +0 -71
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/backend/backend_init_context.h +0 -72
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/backend/interface.h +0 -166
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/array_ref.h +0 -235
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/data_loader.h +0 -136
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/defines.h +0 -20
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/error.h +0 -229
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/evalue.h +0 -521
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/event_tracer.h +0 -565
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/event_tracer_hooks.h +0 -323
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/event_tracer_hooks_delegate.h +0 -197
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/exec_aten/exec_aten.h +0 -147
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/exec_aten/util/dim_order_util.h +0 -263
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/exec_aten/util/scalar_type_util.h +0 -1331
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/exec_aten/util/tensor_dimension_limit.h +0 -21
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/exec_aten/util/tensor_shape_to_c_string.h +0 -69
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/exec_aten/util/tensor_util.h +0 -1250
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/freeable_buffer.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/hierarchical_allocator.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/memory_allocator.h +0 -198
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/named_data_map.h +0 -86
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/bfloat16.h +0 -27
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/bfloat16_math.h +0 -14
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/bits_types.h +0 -83
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/macros/Export.h +0 -163
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/macros/Macros.h +0 -497
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/BFloat16-inl.h +0 -342
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/BFloat16-math.h +0 -266
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/BFloat16.h +0 -125
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/Half-inl.h +0 -347
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/Half.h +0 -416
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/TypeSafeSignMath.h +0 -133
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/bit_cast.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/floating_point_utils.h +0 -33
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/c10/c10/util/irange.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/complex.h +0 -44
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/device.h +0 -70
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/half.h +0 -27
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/optional.h +0 -36
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/qint_types.h +0 -83
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/scalar.h +0 -110
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/scalar_type.h +0 -154
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/string_view.h +0 -29
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/tensor.h +0 -142
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/tensor_impl.h +0 -261
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/portable_type/tensor_options.h +0 -60
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/result.h +0 -258
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/span.h +0 -93
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/tag.h +0 -71
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/tensor_layout.h +0 -79
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/core/tensor_shape_dynamism.h +0 -39
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/executor/memory_manager.h +0 -113
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/executor/method.h +0 -387
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/executor/method_meta.h +0 -251
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/executor/program.h +0 -320
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/executor/pte_data_map.h +0 -144
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/executor/tensor_parser.h +0 -156
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/kernel/kernel_runtime_context.h +0 -122
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/kernel/operator_registry.h +0 -278
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/abort.h +0 -36
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/assert.h +0 -119
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/clock.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/compat_unistd.h +0 -75
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/compiler.h +0 -191
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/log.h +0 -177
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/platform.h +0 -133
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/profiler.h +0 -292
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/runtime.h +0 -35
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/system.h +0 -49
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/runtime/platform/types.h +0 -24
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/executorch/schema/extended_header.h +0 -76
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/Headers/module.modulemap +0 -5
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64/libexecutorch_ios.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/macros/Export.h +0 -163
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/macros/Macros.h +0 -497
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/BFloat16-inl.h +0 -342
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/BFloat16-math.h +0 -266
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/BFloat16.h +0 -125
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/Half-inl.h +0 -347
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/Half.h +0 -416
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/TypeSafeSignMath.h +0 -133
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/bit_cast.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/floating_point_utils.h +0 -33
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/c10/util/irange.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/ExecuTorch.h +0 -13
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/ExecuTorchError.h +0 -16
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/ExecuTorchLog.h +0 -76
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/ExecuTorchModule.h +0 -286
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/ExecuTorchTensor.h +0 -742
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/ExecuTorchValue.h +0 -219
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/extension/module/module.h +0 -492
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/extension/tensor/tensor.h +0 -13
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/extension/tensor/tensor_accessor.h +0 -190
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/extension/tensor/tensor_ptr.h +0 -347
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/extension/tensor/tensor_ptr_maker.h +0 -653
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/backend/backend_execution_context.h +0 -71
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/backend/backend_init_context.h +0 -72
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/backend/interface.h +0 -166
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/array_ref.h +0 -235
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/data_loader.h +0 -136
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/defines.h +0 -20
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/error.h +0 -229
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/evalue.h +0 -521
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/event_tracer.h +0 -565
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/event_tracer_hooks.h +0 -323
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/event_tracer_hooks_delegate.h +0 -197
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/exec_aten/exec_aten.h +0 -147
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/exec_aten/util/dim_order_util.h +0 -263
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/exec_aten/util/scalar_type_util.h +0 -1331
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/exec_aten/util/tensor_dimension_limit.h +0 -21
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/exec_aten/util/tensor_shape_to_c_string.h +0 -69
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/exec_aten/util/tensor_util.h +0 -1250
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/freeable_buffer.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/hierarchical_allocator.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/memory_allocator.h +0 -198
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/named_data_map.h +0 -86
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/bfloat16.h +0 -27
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/bfloat16_math.h +0 -14
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/bits_types.h +0 -83
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/macros/Export.h +0 -163
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/macros/Macros.h +0 -497
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/BFloat16-inl.h +0 -342
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/BFloat16-math.h +0 -266
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/BFloat16.h +0 -125
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/Half-inl.h +0 -347
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/Half.h +0 -416
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/TypeSafeSignMath.h +0 -133
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/bit_cast.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/floating_point_utils.h +0 -33
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/c10/c10/util/irange.h +0 -107
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/complex.h +0 -44
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/device.h +0 -70
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/half.h +0 -27
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/optional.h +0 -36
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/qint_types.h +0 -83
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/scalar.h +0 -110
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/scalar_type.h +0 -154
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/string_view.h +0 -29
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/tensor.h +0 -142
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/tensor_impl.h +0 -261
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/portable_type/tensor_options.h +0 -60
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/result.h +0 -258
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/span.h +0 -93
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/tag.h +0 -71
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/tensor_layout.h +0 -79
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/core/tensor_shape_dynamism.h +0 -39
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/executor/memory_manager.h +0 -113
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/executor/method.h +0 -387
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/executor/method_meta.h +0 -251
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/executor/program.h +0 -320
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/executor/pte_data_map.h +0 -144
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/executor/tensor_parser.h +0 -156
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/kernel/kernel_runtime_context.h +0 -122
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/kernel/operator_registry.h +0 -278
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/abort.h +0 -36
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/assert.h +0 -119
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/clock.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/compat_unistd.h +0 -75
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/compiler.h +0 -191
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/log.h +0 -177
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/platform.h +0 -133
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/profiler.h +0 -292
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/runtime.h +0 -35
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/system.h +0 -49
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/runtime/platform/types.h +0 -24
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/executorch/schema/extended_header.h +0 -76
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/Headers/module.modulemap +0 -5
- package/third-party/ios/ExecutorchLib/frameworks/executorch.xcframework/ios-arm64-simulator/libexecutorch_simulator.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_custom.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/kernels_custom.xcframework/ios-arm64/libkernels_custom_ios.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_custom.xcframework/ios-arm64-simulator/libkernels_custom_simulator.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_optimized.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/kernels_optimized.xcframework/ios-arm64/libkernels_optimized_ios.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_optimized.xcframework/ios-arm64-simulator/libkernels_optimized_simulator.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_portable.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/kernels_portable.xcframework/ios-arm64/libkernels_portable_ios.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_portable.xcframework/ios-arm64-simulator/libkernels_portable_simulator.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_quantized.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/kernels_quantized.xcframework/ios-arm64/libkernels_quantized_ios.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/kernels_quantized.xcframework/ios-arm64-simulator/libkernels_quantized_simulator.a +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/Info.plist +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/bitmap256.h +0 -82
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/filtered_re2.h +0 -111
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/pod_array.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/prefilter.h +0 -130
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/prefilter_tree.h +0 -139
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/prog.h +0 -483
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/re2.h +0 -994
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/regexp.h +0 -692
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/set.h +0 -85
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/sparse_array.h +0 -367
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/sparse_set.h +0 -241
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/stringpiece.h +0 -205
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/unicode_casefold.h +0 -78
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/unicode_groups.h +0 -64
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Headers/walker-inl.h +0 -235
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/Info.plist +0 -26
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64/re2.framework/re2 +0 -0
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/bitmap256.h +0 -82
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/filtered_re2.h +0 -111
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/pod_array.h +0 -43
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/prefilter.h +0 -130
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/prefilter_tree.h +0 -139
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/prog.h +0 -483
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/re2.h +0 -994
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/regexp.h +0 -692
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/set.h +0 -85
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/sparse_array.h +0 -367
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/sparse_set.h +0 -241
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/stringpiece.h +0 -205
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/unicode_casefold.h +0 -78
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/unicode_groups.h +0 -64
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Headers/walker-inl.h +0 -235
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/Info.plist +0 -26
- package/third-party/ios/ExecutorchLib/frameworks/re2.xcframework/ios-arm64-simulator/re2.framework/re2 +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/irunner.h +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/runner.cpp +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/runner.h +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/stats.h +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/text_decoder_runner.cpp +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/text_decoder_runner.h +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/text_prefiller.cpp +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/text_prefiller.h +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/text_token_generator.h +0 -0
- /package/{third-party/ios/ExecutorchLib/ExecutorchLib → common}/runner/util.h +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface LLMType {
|
|
2
|
+
messageHistory: Message[];
|
|
3
|
+
response: string;
|
|
4
|
+
token: string;
|
|
5
|
+
isReady: boolean;
|
|
6
|
+
isGenerating: boolean;
|
|
7
|
+
downloadProgress: number;
|
|
8
|
+
error: string | null;
|
|
9
|
+
configure: ({ chatConfig, toolsConfig, }: {
|
|
10
|
+
chatConfig?: Partial<ChatConfig>;
|
|
11
|
+
toolsConfig?: ToolsConfig;
|
|
12
|
+
}) => void;
|
|
13
|
+
generate: (messages: Message[], tools?: LLMTool[]) => Promise<void>;
|
|
14
|
+
sendMessage: (message: string) => Promise<void>;
|
|
15
|
+
deleteMessage: (index: number) => void;
|
|
16
|
+
interrupt: () => void;
|
|
17
|
+
}
|
|
18
|
+
export type MessageRole = 'user' | 'assistant' | 'system';
|
|
19
|
+
export interface Message {
|
|
20
|
+
role: MessageRole;
|
|
21
|
+
content: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ToolCall {
|
|
24
|
+
toolName: string;
|
|
25
|
+
arguments: Object;
|
|
26
|
+
}
|
|
27
|
+
export type LLMTool = Object;
|
|
28
|
+
export interface ChatConfig {
|
|
29
|
+
initialMessageHistory: Message[];
|
|
30
|
+
contextWindowLength: number;
|
|
31
|
+
systemPrompt: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ToolsConfig {
|
|
34
|
+
tools: LLMTool[];
|
|
35
|
+
executeToolCallback: (call: ToolCall) => Promise<string | null>;
|
|
36
|
+
displayToolCalls?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare const SPECIAL_TOKENS: {
|
|
39
|
+
BOS_TOKEN: string;
|
|
40
|
+
EOS_TOKEN: string;
|
|
41
|
+
UNK_TOKEN: string;
|
|
42
|
+
SEP_TOKEN: string;
|
|
43
|
+
PAD_TOKEN: string;
|
|
44
|
+
CLS_TOKEN: string;
|
|
45
|
+
MASK_TOKEN: string;
|
|
46
|
+
};
|
package/lib/types/llm.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var CocoLabel;
|
|
2
|
+
(function (CocoLabel) {
|
|
3
|
+
CocoLabel[CocoLabel["PERSON"] = 1] = "PERSON";
|
|
4
|
+
CocoLabel[CocoLabel["BICYCLE"] = 2] = "BICYCLE";
|
|
5
|
+
CocoLabel[CocoLabel["CAR"] = 3] = "CAR";
|
|
6
|
+
CocoLabel[CocoLabel["MOTORCYCLE"] = 4] = "MOTORCYCLE";
|
|
7
|
+
CocoLabel[CocoLabel["AIRPLANE"] = 5] = "AIRPLANE";
|
|
8
|
+
CocoLabel[CocoLabel["BUS"] = 6] = "BUS";
|
|
9
|
+
CocoLabel[CocoLabel["TRAIN"] = 7] = "TRAIN";
|
|
10
|
+
CocoLabel[CocoLabel["TRUCK"] = 8] = "TRUCK";
|
|
11
|
+
CocoLabel[CocoLabel["BOAT"] = 9] = "BOAT";
|
|
12
|
+
CocoLabel[CocoLabel["TRAFFIC_LIGHT"] = 10] = "TRAFFIC_LIGHT";
|
|
13
|
+
CocoLabel[CocoLabel["FIRE_HYDRANT"] = 11] = "FIRE_HYDRANT";
|
|
14
|
+
CocoLabel[CocoLabel["STREET_SIGN"] = 12] = "STREET_SIGN";
|
|
15
|
+
CocoLabel[CocoLabel["STOP_SIGN"] = 13] = "STOP_SIGN";
|
|
16
|
+
CocoLabel[CocoLabel["PARKING"] = 14] = "PARKING";
|
|
17
|
+
CocoLabel[CocoLabel["BENCH"] = 15] = "BENCH";
|
|
18
|
+
CocoLabel[CocoLabel["BIRD"] = 16] = "BIRD";
|
|
19
|
+
CocoLabel[CocoLabel["CAT"] = 17] = "CAT";
|
|
20
|
+
CocoLabel[CocoLabel["DOG"] = 18] = "DOG";
|
|
21
|
+
CocoLabel[CocoLabel["HORSE"] = 19] = "HORSE";
|
|
22
|
+
CocoLabel[CocoLabel["SHEEP"] = 20] = "SHEEP";
|
|
23
|
+
CocoLabel[CocoLabel["COW"] = 21] = "COW";
|
|
24
|
+
CocoLabel[CocoLabel["ELEPHANT"] = 22] = "ELEPHANT";
|
|
25
|
+
CocoLabel[CocoLabel["BEAR"] = 23] = "BEAR";
|
|
26
|
+
CocoLabel[CocoLabel["ZEBRA"] = 24] = "ZEBRA";
|
|
27
|
+
CocoLabel[CocoLabel["GIRAFFE"] = 25] = "GIRAFFE";
|
|
28
|
+
CocoLabel[CocoLabel["HAT"] = 26] = "HAT";
|
|
29
|
+
CocoLabel[CocoLabel["BACKPACK"] = 27] = "BACKPACK";
|
|
30
|
+
CocoLabel[CocoLabel["UMBRELLA"] = 28] = "UMBRELLA";
|
|
31
|
+
CocoLabel[CocoLabel["SHOE"] = 29] = "SHOE";
|
|
32
|
+
CocoLabel[CocoLabel["EYE"] = 30] = "EYE";
|
|
33
|
+
CocoLabel[CocoLabel["HANDBAG"] = 31] = "HANDBAG";
|
|
34
|
+
CocoLabel[CocoLabel["TIE"] = 32] = "TIE";
|
|
35
|
+
CocoLabel[CocoLabel["SUITCASE"] = 33] = "SUITCASE";
|
|
36
|
+
CocoLabel[CocoLabel["FRISBEE"] = 34] = "FRISBEE";
|
|
37
|
+
CocoLabel[CocoLabel["SKIS"] = 35] = "SKIS";
|
|
38
|
+
CocoLabel[CocoLabel["SNOWBOARD"] = 36] = "SNOWBOARD";
|
|
39
|
+
CocoLabel[CocoLabel["SPORTS"] = 37] = "SPORTS";
|
|
40
|
+
CocoLabel[CocoLabel["KITE"] = 38] = "KITE";
|
|
41
|
+
CocoLabel[CocoLabel["BASEBALL"] = 39] = "BASEBALL";
|
|
42
|
+
CocoLabel[CocoLabel["SKATEBOARD"] = 41] = "SKATEBOARD";
|
|
43
|
+
CocoLabel[CocoLabel["SURFBOARD"] = 42] = "SURFBOARD";
|
|
44
|
+
CocoLabel[CocoLabel["TENNIS_RACKET"] = 43] = "TENNIS_RACKET";
|
|
45
|
+
CocoLabel[CocoLabel["BOTTLE"] = 44] = "BOTTLE";
|
|
46
|
+
CocoLabel[CocoLabel["PLATE"] = 45] = "PLATE";
|
|
47
|
+
CocoLabel[CocoLabel["WINE_GLASS"] = 46] = "WINE_GLASS";
|
|
48
|
+
CocoLabel[CocoLabel["CUP"] = 47] = "CUP";
|
|
49
|
+
CocoLabel[CocoLabel["FORK"] = 48] = "FORK";
|
|
50
|
+
CocoLabel[CocoLabel["KNIFE"] = 49] = "KNIFE";
|
|
51
|
+
CocoLabel[CocoLabel["SPOON"] = 50] = "SPOON";
|
|
52
|
+
CocoLabel[CocoLabel["BOWL"] = 51] = "BOWL";
|
|
53
|
+
CocoLabel[CocoLabel["BANANA"] = 52] = "BANANA";
|
|
54
|
+
CocoLabel[CocoLabel["APPLE"] = 53] = "APPLE";
|
|
55
|
+
CocoLabel[CocoLabel["SANDWICH"] = 54] = "SANDWICH";
|
|
56
|
+
CocoLabel[CocoLabel["ORANGE"] = 55] = "ORANGE";
|
|
57
|
+
CocoLabel[CocoLabel["BROCCOLI"] = 56] = "BROCCOLI";
|
|
58
|
+
CocoLabel[CocoLabel["CARROT"] = 57] = "CARROT";
|
|
59
|
+
CocoLabel[CocoLabel["HOT_DOG"] = 58] = "HOT_DOG";
|
|
60
|
+
CocoLabel[CocoLabel["PIZZA"] = 59] = "PIZZA";
|
|
61
|
+
CocoLabel[CocoLabel["DONUT"] = 60] = "DONUT";
|
|
62
|
+
CocoLabel[CocoLabel["CAKE"] = 61] = "CAKE";
|
|
63
|
+
CocoLabel[CocoLabel["CHAIR"] = 62] = "CHAIR";
|
|
64
|
+
CocoLabel[CocoLabel["COUCH"] = 63] = "COUCH";
|
|
65
|
+
CocoLabel[CocoLabel["POTTED_PLANT"] = 64] = "POTTED_PLANT";
|
|
66
|
+
CocoLabel[CocoLabel["BED"] = 65] = "BED";
|
|
67
|
+
CocoLabel[CocoLabel["MIRROR"] = 66] = "MIRROR";
|
|
68
|
+
CocoLabel[CocoLabel["DINING_TABLE"] = 67] = "DINING_TABLE";
|
|
69
|
+
CocoLabel[CocoLabel["WINDOW"] = 68] = "WINDOW";
|
|
70
|
+
CocoLabel[CocoLabel["DESK"] = 69] = "DESK";
|
|
71
|
+
CocoLabel[CocoLabel["TOILET"] = 70] = "TOILET";
|
|
72
|
+
CocoLabel[CocoLabel["DOOR"] = 71] = "DOOR";
|
|
73
|
+
CocoLabel[CocoLabel["TV"] = 72] = "TV";
|
|
74
|
+
CocoLabel[CocoLabel["LAPTOP"] = 73] = "LAPTOP";
|
|
75
|
+
CocoLabel[CocoLabel["MOUSE"] = 74] = "MOUSE";
|
|
76
|
+
CocoLabel[CocoLabel["REMOTE"] = 75] = "REMOTE";
|
|
77
|
+
CocoLabel[CocoLabel["KEYBOARD"] = 76] = "KEYBOARD";
|
|
78
|
+
CocoLabel[CocoLabel["CELL_PHONE"] = 77] = "CELL_PHONE";
|
|
79
|
+
CocoLabel[CocoLabel["MICROWAVE"] = 78] = "MICROWAVE";
|
|
80
|
+
CocoLabel[CocoLabel["OVEN"] = 79] = "OVEN";
|
|
81
|
+
CocoLabel[CocoLabel["TOASTER"] = 80] = "TOASTER";
|
|
82
|
+
CocoLabel[CocoLabel["SINK"] = 81] = "SINK";
|
|
83
|
+
CocoLabel[CocoLabel["REFRIGERATOR"] = 82] = "REFRIGERATOR";
|
|
84
|
+
CocoLabel[CocoLabel["BLENDER"] = 83] = "BLENDER";
|
|
85
|
+
CocoLabel[CocoLabel["BOOK"] = 84] = "BOOK";
|
|
86
|
+
CocoLabel[CocoLabel["CLOCK"] = 85] = "CLOCK";
|
|
87
|
+
CocoLabel[CocoLabel["VASE"] = 86] = "VASE";
|
|
88
|
+
CocoLabel[CocoLabel["SCISSORS"] = 87] = "SCISSORS";
|
|
89
|
+
CocoLabel[CocoLabel["TEDDY_BEAR"] = 88] = "TEDDY_BEAR";
|
|
90
|
+
CocoLabel[CocoLabel["HAIR_DRIER"] = 89] = "HAIR_DRIER";
|
|
91
|
+
CocoLabel[CocoLabel["TOOTHBRUSH"] = 90] = "TOOTHBRUSH";
|
|
92
|
+
CocoLabel[CocoLabel["HAIR_BRUSH"] = 91] = "HAIR_BRUSH";
|
|
93
|
+
})(CocoLabel || (CocoLabel = {}));
|
|
94
|
+
export {};
|
package/lib/types/ocr.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export interface ModelConfig {
|
|
2
|
+
sources: {
|
|
3
|
+
encoder: string;
|
|
4
|
+
decoder: string;
|
|
5
|
+
};
|
|
6
|
+
tokenizer: {
|
|
7
|
+
source: string;
|
|
8
|
+
bos: number;
|
|
9
|
+
eos: number;
|
|
10
|
+
};
|
|
11
|
+
isMultilingual: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare enum SpeechToTextLanguage {
|
|
14
|
+
Afrikaans = "af",
|
|
15
|
+
Albanian = "sq",
|
|
16
|
+
Arabic = "ar",
|
|
17
|
+
Armenian = "hy",
|
|
18
|
+
Azerbaijani = "az",
|
|
19
|
+
Basque = "eu",
|
|
20
|
+
Belarusian = "be",
|
|
21
|
+
Bengali = "bn",
|
|
22
|
+
Bosnian = "bs",
|
|
23
|
+
Bulgarian = "bg",
|
|
24
|
+
Burmese = "my",
|
|
25
|
+
Catalan = "ca",
|
|
26
|
+
Chinese = "zh",
|
|
27
|
+
Croatian = "hr",
|
|
28
|
+
Czech = "cs",
|
|
29
|
+
Danish = "da",
|
|
30
|
+
Dutch = "nl",
|
|
31
|
+
Estonian = "et",
|
|
32
|
+
English = "en",
|
|
33
|
+
Finnish = "fi",
|
|
34
|
+
French = "fr",
|
|
35
|
+
Galician = "gl",
|
|
36
|
+
Georgian = "ka",
|
|
37
|
+
German = "de",
|
|
38
|
+
Greek = "el",
|
|
39
|
+
Gujarati = "gu",
|
|
40
|
+
HaitianCreole = "ht",
|
|
41
|
+
Hebrew = "he",
|
|
42
|
+
Hindi = "hi",
|
|
43
|
+
Hungarian = "hu",
|
|
44
|
+
Icelandic = "is",
|
|
45
|
+
Indonesian = "id",
|
|
46
|
+
Italian = "it",
|
|
47
|
+
Japanese = "ja",
|
|
48
|
+
Kannada = "kn",
|
|
49
|
+
Kazakh = "kk",
|
|
50
|
+
Khmer = "km",
|
|
51
|
+
Korean = "ko",
|
|
52
|
+
Lao = "lo",
|
|
53
|
+
Latvian = "lv",
|
|
54
|
+
Lithuanian = "lt",
|
|
55
|
+
Macedonian = "mk",
|
|
56
|
+
Malagasy = "mg",
|
|
57
|
+
Malay = "ms",
|
|
58
|
+
Malayalam = "ml",
|
|
59
|
+
Maltese = "mt",
|
|
60
|
+
Marathi = "mr",
|
|
61
|
+
Nepali = "ne",
|
|
62
|
+
Norwegian = "no",
|
|
63
|
+
Persian = "fa",
|
|
64
|
+
Polish = "pl",
|
|
65
|
+
Portuguese = "pt",
|
|
66
|
+
Punjabi = "pa",
|
|
67
|
+
Romanian = "ro",
|
|
68
|
+
Russian = "ru",
|
|
69
|
+
Serbian = "sr",
|
|
70
|
+
Sinhala = "si",
|
|
71
|
+
Slovak = "sk",
|
|
72
|
+
Slovenian = "sl",
|
|
73
|
+
Spanish = "es",
|
|
74
|
+
Sundanese = "su",
|
|
75
|
+
Swahili = "sw",
|
|
76
|
+
Swedish = "sv",
|
|
77
|
+
Tagalog = "tl",
|
|
78
|
+
Tajik = "tg",
|
|
79
|
+
Tamil = "ta",
|
|
80
|
+
Telugu = "te",
|
|
81
|
+
Thai = "th",
|
|
82
|
+
Turkish = "tr",
|
|
83
|
+
Ukrainian = "uk",
|
|
84
|
+
Urdu = "ur",
|
|
85
|
+
Uzbek = "uz",
|
|
86
|
+
Vietnamese = "vi",
|
|
87
|
+
Welsh = "cy",
|
|
88
|
+
Yiddish = "yi"
|
|
89
|
+
}
|
|
90
|
+
export declare enum AvailableModels {
|
|
91
|
+
WHISPER = "whisper",
|
|
92
|
+
MOONSHINE = "moonshine",
|
|
93
|
+
WHISPER_MULTILINGUAL = "whisperMultilingual"
|
|
94
|
+
}
|
package/lib/types/stt.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Those languages are supported just by whisper multilingual
|
|
2
|
+
export var SpeechToTextLanguage;
|
|
3
|
+
(function (SpeechToTextLanguage) {
|
|
4
|
+
SpeechToTextLanguage["Afrikaans"] = "af";
|
|
5
|
+
SpeechToTextLanguage["Albanian"] = "sq";
|
|
6
|
+
SpeechToTextLanguage["Arabic"] = "ar";
|
|
7
|
+
SpeechToTextLanguage["Armenian"] = "hy";
|
|
8
|
+
SpeechToTextLanguage["Azerbaijani"] = "az";
|
|
9
|
+
SpeechToTextLanguage["Basque"] = "eu";
|
|
10
|
+
SpeechToTextLanguage["Belarusian"] = "be";
|
|
11
|
+
SpeechToTextLanguage["Bengali"] = "bn";
|
|
12
|
+
SpeechToTextLanguage["Bosnian"] = "bs";
|
|
13
|
+
SpeechToTextLanguage["Bulgarian"] = "bg";
|
|
14
|
+
SpeechToTextLanguage["Burmese"] = "my";
|
|
15
|
+
SpeechToTextLanguage["Catalan"] = "ca";
|
|
16
|
+
SpeechToTextLanguage["Chinese"] = "zh";
|
|
17
|
+
SpeechToTextLanguage["Croatian"] = "hr";
|
|
18
|
+
SpeechToTextLanguage["Czech"] = "cs";
|
|
19
|
+
SpeechToTextLanguage["Danish"] = "da";
|
|
20
|
+
SpeechToTextLanguage["Dutch"] = "nl";
|
|
21
|
+
SpeechToTextLanguage["Estonian"] = "et";
|
|
22
|
+
SpeechToTextLanguage["English"] = "en";
|
|
23
|
+
SpeechToTextLanguage["Finnish"] = "fi";
|
|
24
|
+
SpeechToTextLanguage["French"] = "fr";
|
|
25
|
+
SpeechToTextLanguage["Galician"] = "gl";
|
|
26
|
+
SpeechToTextLanguage["Georgian"] = "ka";
|
|
27
|
+
SpeechToTextLanguage["German"] = "de";
|
|
28
|
+
SpeechToTextLanguage["Greek"] = "el";
|
|
29
|
+
SpeechToTextLanguage["Gujarati"] = "gu";
|
|
30
|
+
SpeechToTextLanguage["HaitianCreole"] = "ht";
|
|
31
|
+
SpeechToTextLanguage["Hebrew"] = "he";
|
|
32
|
+
SpeechToTextLanguage["Hindi"] = "hi";
|
|
33
|
+
SpeechToTextLanguage["Hungarian"] = "hu";
|
|
34
|
+
SpeechToTextLanguage["Icelandic"] = "is";
|
|
35
|
+
SpeechToTextLanguage["Indonesian"] = "id";
|
|
36
|
+
SpeechToTextLanguage["Italian"] = "it";
|
|
37
|
+
SpeechToTextLanguage["Japanese"] = "ja";
|
|
38
|
+
SpeechToTextLanguage["Kannada"] = "kn";
|
|
39
|
+
SpeechToTextLanguage["Kazakh"] = "kk";
|
|
40
|
+
SpeechToTextLanguage["Khmer"] = "km";
|
|
41
|
+
SpeechToTextLanguage["Korean"] = "ko";
|
|
42
|
+
SpeechToTextLanguage["Lao"] = "lo";
|
|
43
|
+
SpeechToTextLanguage["Latvian"] = "lv";
|
|
44
|
+
SpeechToTextLanguage["Lithuanian"] = "lt";
|
|
45
|
+
SpeechToTextLanguage["Macedonian"] = "mk";
|
|
46
|
+
SpeechToTextLanguage["Malagasy"] = "mg";
|
|
47
|
+
SpeechToTextLanguage["Malay"] = "ms";
|
|
48
|
+
SpeechToTextLanguage["Malayalam"] = "ml";
|
|
49
|
+
SpeechToTextLanguage["Maltese"] = "mt";
|
|
50
|
+
SpeechToTextLanguage["Marathi"] = "mr";
|
|
51
|
+
SpeechToTextLanguage["Nepali"] = "ne";
|
|
52
|
+
SpeechToTextLanguage["Norwegian"] = "no";
|
|
53
|
+
SpeechToTextLanguage["Persian"] = "fa";
|
|
54
|
+
SpeechToTextLanguage["Polish"] = "pl";
|
|
55
|
+
SpeechToTextLanguage["Portuguese"] = "pt";
|
|
56
|
+
SpeechToTextLanguage["Punjabi"] = "pa";
|
|
57
|
+
SpeechToTextLanguage["Romanian"] = "ro";
|
|
58
|
+
SpeechToTextLanguage["Russian"] = "ru";
|
|
59
|
+
SpeechToTextLanguage["Serbian"] = "sr";
|
|
60
|
+
SpeechToTextLanguage["Sinhala"] = "si";
|
|
61
|
+
SpeechToTextLanguage["Slovak"] = "sk";
|
|
62
|
+
SpeechToTextLanguage["Slovenian"] = "sl";
|
|
63
|
+
SpeechToTextLanguage["Spanish"] = "es";
|
|
64
|
+
SpeechToTextLanguage["Sundanese"] = "su";
|
|
65
|
+
SpeechToTextLanguage["Swahili"] = "sw";
|
|
66
|
+
SpeechToTextLanguage["Swedish"] = "sv";
|
|
67
|
+
SpeechToTextLanguage["Tagalog"] = "tl";
|
|
68
|
+
SpeechToTextLanguage["Tajik"] = "tg";
|
|
69
|
+
SpeechToTextLanguage["Tamil"] = "ta";
|
|
70
|
+
SpeechToTextLanguage["Telugu"] = "te";
|
|
71
|
+
SpeechToTextLanguage["Thai"] = "th";
|
|
72
|
+
SpeechToTextLanguage["Turkish"] = "tr";
|
|
73
|
+
SpeechToTextLanguage["Ukrainian"] = "uk";
|
|
74
|
+
SpeechToTextLanguage["Urdu"] = "ur";
|
|
75
|
+
SpeechToTextLanguage["Uzbek"] = "uz";
|
|
76
|
+
SpeechToTextLanguage["Vietnamese"] = "vi";
|
|
77
|
+
SpeechToTextLanguage["Welsh"] = "cy";
|
|
78
|
+
SpeechToTextLanguage["Yiddish"] = "yi";
|
|
79
|
+
})(SpeechToTextLanguage || (SpeechToTextLanguage = {}));
|
|
80
|
+
export var AvailableModels;
|
|
81
|
+
(function (AvailableModels) {
|
|
82
|
+
AvailableModels["WHISPER"] = "whisper";
|
|
83
|
+
AvailableModels["MOONSHINE"] = "moonshine";
|
|
84
|
+
AvailableModels["WHISPER_MULTILINGUAL"] = "whisperMultilingual";
|
|
85
|
+
})(AvailableModels || (AvailableModels = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LLMController.d.ts","sourceRoot":"","sources":["../../../src/controllers/LLMController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LLMController.d.ts","sourceRoot":"","sources":["../../../src/controllers/LLMController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMjD,OAAO,EACL,UAAU,EACV,OAAO,EACP,OAAO,EAEP,WAAW,EACZ,MAAM,cAAc,CAAC;AAItB,qBAAa,aAAa;IACxB,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,UAAU,CAAmC;IACrD,OAAO,CAAC,WAAW,CAA0B;IAC7C,OAAO,CAAC,eAAe,CAAM;IAC7B,OAAO,CAAC,OAAO,CAAC,CAA0B;IAC1C,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,eAAe,CAAiB;IAGxC,OAAO,CAAC,aAAa,CAA0B;IAC/C,OAAO,CAAC,gBAAgB,CAA6B;IACrD,OAAO,CAAC,sBAAsB,CAAsC;IACpE,OAAO,CAAC,eAAe,CAA6B;IACpD,OAAO,CAAC,oBAAoB,CAAkC;gBAElD,EACV,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,oBAAoB,GACrB,EAAE;QACD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACxC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;QAC9C,sBAAsB,CAAC,EAAE,CAAC,cAA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
6
|
+
interface ModuleConstructor<M extends Module> {
|
|
7
|
+
new (): M;
|
|
8
|
+
}
|
|
9
|
+
export declare const useModule: <M extends Module, LoadArgs extends Parameters<M["load"]>, ForwardArgs extends Parameters<M["forward"]>, ForwardReturn extends Awaited<ReturnType<M["forward"]>>>({ module, model, preventLoad, }: {
|
|
10
|
+
module: ModuleConstructor<M>;
|
|
11
|
+
model: LoadArgs[0];
|
|
9
12
|
preventLoad?: boolean;
|
|
10
13
|
}) => {
|
|
11
14
|
error: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../src/hooks/useModule.ts"],"names":[],"mappings":"AAGA,UAAU,MAAM;IACd,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,EAAE,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../src/hooks/useModule.ts"],"names":[],"mappings":"AAGA,UAAU,MAAM;IACd,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,UAAU,iBAAiB,CAAC,CAAC,SAAS,MAAM;IAC1C,QAAQ,CAAC,CAAC;CACX;AAED,eAAO,MAAM,SAAS,GACpB,CAAC,SAAS,MAAM,EAChB,QAAQ,SAAS,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EACtC,WAAW,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAC5C,aAAa,SAAS,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACvD,iCAIC;IACD,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAC7B,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;;;;;wBA6BkC,WAAW,KAAG,OAAO,CAAC,aAAa,CAAC;CAkBtE,CAAC"}
|
|
@@ -7,6 +7,7 @@ declare global {
|
|
|
7
7
|
var loadTokenizerModule: (source: string) => any;
|
|
8
8
|
var loadImageEmbeddings: (source: string) => any;
|
|
9
9
|
var loadTextEmbeddings: (modelSource: string, tokenizerSource: string) => any;
|
|
10
|
+
var loadLLM: (modelSource: string, tokenizerSource: string) => any;
|
|
10
11
|
var loadSpeechToText: (encoderSource: string, decoderSource: string, modelName: string) => any;
|
|
11
12
|
var loadOCR: (detectorSource: string, recognizerLarge: string, recognizerMedium: string, recognizerSmall: string, symbols: string) => any;
|
|
12
13
|
var loadVerticalOCR: (detectorLarge: string, detectorNarrow: string, recognizer: string, symbols: string, independentCharacters?: boolean) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,CAAC;IACb,IAAI,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IAC/C,IAAI,qBAAqB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IACnD,IAAI,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IAChD,IAAI,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IACjD,IAAI,oBAAoB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IAClD,IAAI,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAAC;IACjD,IAAI,mBAAmB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,GAAG,CAA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uB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ResourceSource } from '../types/common';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
protected
|
|
7
|
-
|
|
2
|
+
import { TensorPtr } from '../types/common';
|
|
3
|
+
export declare abstract class BaseModule {
|
|
4
|
+
nativeModule: any;
|
|
5
|
+
abstract load(modelSource: ResourceSource, onDownloadProgressCallback: (_: number) => void, ...args: any[]): Promise<void>;
|
|
6
|
+
protected forwardET(inputTensor: TensorPtr[]): Promise<TensorPtr[]>;
|
|
7
|
+
getInputShape(methodName: string, index: number): Promise<number[]>;
|
|
8
|
+
delete(): void;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=BaseModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseModule.d.ts","sourceRoot":"","sources":["../../../src/modules/BaseModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseModule.d.ts","sourceRoot":"","sources":["../../../src/modules/BaseModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,8BAAsB,UAAU;IAC9B,YAAY,EAAE,GAAG,CAAQ;IAEzB,QAAQ,CAAC,IAAI,CACX,WAAW,EAAE,cAAc,EAC3B,0BAA0B,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,EAC/C,GAAG,IAAI,EAAE,GAAG,EAAE,GACb,OAAO,CAAC,IAAI,CAAC;cAEA,SAAS,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAInE,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAIzE,MAAM;CAKP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResourceSource } from '../../types/common';
|
|
2
|
-
import {
|
|
3
|
-
export declare class ClassificationModule extends
|
|
2
|
+
import { BaseModule } from '../BaseModule';
|
|
3
|
+
export declare class ClassificationModule extends BaseModule {
|
|
4
4
|
load(model: {
|
|
5
5
|
modelSource: ResourceSource;
|
|
6
6
|
}, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassificationModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ClassificationModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ClassificationModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ClassificationModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,oBAAqB,SAAQ,UAAU;IAC5C,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,EACtC,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAWV,OAAO,CAAC,WAAW,EAAE,MAAM;CAKlC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResourceSource } from '../../types/common';
|
|
2
|
-
import {
|
|
3
|
-
export declare class ImageEmbeddingsModule extends
|
|
2
|
+
import { BaseModule } from '../BaseModule';
|
|
3
|
+
export declare class ImageEmbeddingsModule extends BaseModule {
|
|
4
4
|
load(model: {
|
|
5
5
|
modelSource: ResourceSource;
|
|
6
6
|
}, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageEmbeddingsModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ImageEmbeddingsModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ImageEmbeddingsModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ImageEmbeddingsModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,qBAAsB,SAAQ,UAAU;IAC7C,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,EACtC,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAWV,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAK1D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResourceSource } from '../../types/common';
|
|
2
2
|
import { DeeplabLabel } from '../../types/imageSegmentation';
|
|
3
|
-
import {
|
|
4
|
-
export declare class ImageSegmentationModule extends
|
|
3
|
+
import { BaseModule } from '../BaseModule';
|
|
4
|
+
export declare class ImageSegmentationModule extends BaseModule {
|
|
5
5
|
load(model: {
|
|
6
6
|
modelSource: ResourceSource;
|
|
7
7
|
}, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageSegmentationModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ImageSegmentationModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ImageSegmentationModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ImageSegmentationModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,uBAAwB,SAAQ,UAAU;IAC/C,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,EACtC,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAWV,OAAO,CACX,WAAW,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,YAAY,EAAE,EAClC,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC;SAAG,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE;KAAE,CAAC;CAqBjD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResourceSource } from '../../types/common';
|
|
2
2
|
import { Detection } from '../../types/objectDetection';
|
|
3
|
-
import {
|
|
4
|
-
export declare class ObjectDetectionModule extends
|
|
3
|
+
import { BaseModule } from '../BaseModule';
|
|
4
|
+
export declare class ObjectDetectionModule extends BaseModule {
|
|
5
5
|
load(model: {
|
|
6
6
|
modelSource: ResourceSource;
|
|
7
7
|
}, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectDetectionModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ObjectDetectionModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ObjectDetectionModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/ObjectDetectionModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,qBAAsB,SAAQ,UAAU;IAC7C,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,EACtC,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAWV,OAAO,CACX,WAAW,EAAE,MAAM,EACnB,kBAAkB,GAAE,MAAY,GAC/B,OAAO,CAAC,SAAS,EAAE,CAAC;CAKxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResourceSource } from '../../types/common';
|
|
2
|
-
import {
|
|
3
|
-
export declare class StyleTransferModule extends
|
|
2
|
+
import { BaseModule } from '../BaseModule';
|
|
3
|
+
export declare class StyleTransferModule extends BaseModule {
|
|
4
4
|
load(model: {
|
|
5
5
|
modelSource: ResourceSource;
|
|
6
6
|
}, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyleTransferModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/StyleTransferModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StyleTransferModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/computer_vision/StyleTransferModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,mBAAoB,SAAQ,UAAU;IAC3C,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAA;KAAE,EACtC,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAWV,OAAO,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAKpD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TensorPtr } from '../../types/common';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseModule } from '../BaseModule';
|
|
3
3
|
import { ResourceSource } from '../../types/common';
|
|
4
|
-
export declare class ExecutorchModule extends
|
|
4
|
+
export declare class ExecutorchModule extends BaseModule {
|
|
5
5
|
load(modelSource: ResourceSource, onDownloadProgressCallback?: (progress: number) => void): Promise<void>;
|
|
6
6
|
forward(inputTensor: TensorPtr[]): Promise<TensorPtr[]>;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExecutorchModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/general/ExecutorchModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ExecutorchModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/general/ExecutorchModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBAAa,gBAAiB,SAAQ,UAAU;IACxC,IAAI,CACR,WAAW,EAAE,cAAc,EAC3B,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAWV,OAAO,CAAC,WAAW,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;CAG9D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResourceSource } from '../../types/common';
|
|
2
|
-
import {
|
|
3
|
-
export declare class TextEmbeddingsModule extends
|
|
2
|
+
import { BaseModule } from '../BaseModule';
|
|
3
|
+
export declare class TextEmbeddingsModule extends BaseModule {
|
|
4
4
|
load(model: {
|
|
5
5
|
modelSource: ResourceSource;
|
|
6
6
|
tokenizerSource: ResourceSource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextEmbeddingsModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TextEmbeddingsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TextEmbeddingsModule.d.ts","sourceRoot":"","sources":["../../../../src/modules/natural_language_processing/TextEmbeddingsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,oBAAqB,SAAQ,UAAU;IAC5C,IAAI,CACR,KAAK,EAAE;QAAE,WAAW,EAAE,cAAc,CAAC;QAAC,eAAe,EAAE,cAAc,CAAA;KAAE,EACvE,0BAA0B,GAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAe,GAChE,OAAO,CAAC,IAAI,CAAC;IAqBV,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAGpD"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Spec as LLMInterface } from './NativeLLM';
|
|
2
1
|
import { Spec as ETInstallerInterface } from './NativeETInstaller';
|
|
3
2
|
declare const ETInstallerNativeModule: ETInstallerInterface;
|
|
4
|
-
|
|
5
|
-
export { LLMNativeModule, ETInstallerNativeModule };
|
|
3
|
+
export { ETInstallerNativeModule };
|
|
6
4
|
//# sourceMappingURL=RnExecutorchModules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RnExecutorchModules.d.ts","sourceRoot":"","sources":["../../../src/native/RnExecutorchModules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"RnExecutorchModules.d.ts","sourceRoot":"","sources":["../../../src/native/RnExecutorchModules.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAqBnE,QAAA,MAAM,uBAAuB,EAAE,oBACwC,CAAC;AAExE,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceFetcher.d.ts","sourceRoot":"","sources":["../../../src/utils/ResourceFetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResourceFetcher.d.ts","sourceRoot":"","sources":["../../../src/utils/ResourceFetcher.ts"],"names":[],"mappings":"AA2CA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAML,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAEhC,qBAAa,eAAe;IAC1B,MAAM,CAAC,SAAS,wCAA+C;WAElD,KAAK,CAChB,QAAQ,GAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAe,EACvD,GAAG,OAAO,EAAE,cAAc,EAAE;mBA2CT,WAAW;IA0ChC,OAAO,CAAC,MAAM,CAAC,iBAAiB;mBAeX,KAAK;mBAcL,MAAM;mBAkDN,MAAM;WAMd,aAAa,CAAC,GAAG,OAAO,EAAE,cAAc,EAAE;WAK1C,cAAc,CAAC,GAAG,OAAO,EAAE,cAAc,EAAE;WAK3C,cAAc,CAAC,GAAG,OAAO,EAAE,cAAc,EAAE;IAKxD,OAAO,CAAC,MAAM,CAAC,UAAU;WAWZ,mBAA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,SAAgB,UAAU,CAAC,UAAU,EAAE,MAAM,UAU5C;IAED,SAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,EACnB,wBAAwB,EAAE,MAAM,EAChC,iBAAiB,EAAE,MAAM,EACzB,WAAW,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,IAEvC,UAAU,MAAM,UAoBzB;IAMD,SAAsB,iCAAiC,CAAC,GAAG,EAAE,MAAM,iBASlE;IAED,SAAsB,yBAAyB,kBAI9C;IAED,SAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,oBAGpD;IAED,SAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,UAI7C;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ResourceSource } from '../types/common';
|
|
2
|
+
import { DownloadResource } from './ResourceFetcherUtils';
|
|
3
|
+
export declare class ResourceFetcher {
|
|
4
|
+
static downloads: Map<ResourceSource, DownloadResource>;
|
|
5
|
+
static fetch(callback?: (downloadProgress: number) => void, ...sources: ResourceSource[]): Promise<string[] | null>;
|
|
6
|
+
private static singleFetch;
|
|
7
|
+
private static returnOrStartNext;
|
|
8
|
+
private static pause;
|
|
9
|
+
private static resume;
|
|
10
|
+
private static cancel;
|
|
11
|
+
static pauseFetching(...sources: ResourceSource[]): Promise<void>;
|
|
12
|
+
static resumeFetching(...sources: ResourceSource[]): Promise<void>;
|
|
13
|
+
static cancelFetching(...sources: ResourceSource[]): Promise<void>;
|
|
14
|
+
private static findActive;
|
|
15
|
+
static listDownloadedFiles(): Promise<string[]>;
|
|
16
|
+
static listDownloadedModels(): Promise<string[]>;
|
|
17
|
+
static deleteResources(...sources: ResourceSource[]): Promise<void>;
|
|
18
|
+
static getFilesTotalSize(...sources: ResourceSource[]): Promise<number>;
|
|
19
|
+
private static handleObject;
|
|
20
|
+
private static handleLocalFile;
|
|
21
|
+
private static handleReleaseModeFile;
|
|
22
|
+
private static handleDevModeFile;
|
|
23
|
+
private static handleRemoteFile;
|
|
24
|
+
}
|