cactus-react-native 1.5.0 → 1.10.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/Cactus.podspec +1 -1
- package/README.md +347 -241
- package/android/CMakeLists.txt +24 -5
- package/android/src/main/jniLibs/arm64-v8a/libcactus.a +0 -0
- package/android/src/main/jniLibs/arm64-v8a/libcurl.a +0 -0
- package/android/src/main/jniLibs/arm64-v8a/libmbedcrypto.a +0 -0
- package/android/src/main/jniLibs/arm64-v8a/libmbedtls.a +0 -0
- package/android/src/main/jniLibs/arm64-v8a/libmbedx509.a +0 -0
- package/cpp/HybridCactus.cpp +197 -117
- package/cpp/HybridCactus.hpp +18 -9
- package/cpp/cactus_ffi.h +66 -42
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/cactus.h +0 -1
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/cactus_cloud.h +48 -0
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/cactus_ffi.h +66 -42
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/cactus_utils.h +568 -135
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/engine.h +148 -17
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/graph.h +145 -36
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/kernel.h +187 -6
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/kernel_utils.h +49 -149
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Info.plist +0 -0
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/cactus +0 -0
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/cactus.h +0 -1
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/cactus_cloud.h +48 -0
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/cactus_ffi.h +66 -42
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/cactus_utils.h +568 -135
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/engine.h +148 -17
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/graph.h +145 -36
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/kernel.h +187 -6
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/kernel_utils.h +49 -149
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Info.plist +0 -0
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/_CodeSignature/CodeResources +1 -1
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/cactus +0 -0
- package/lib/module/classes/CactusLM.js +16 -49
- package/lib/module/classes/CactusLM.js.map +1 -1
- package/lib/module/classes/CactusSTT.js +41 -75
- package/lib/module/classes/CactusSTT.js.map +1 -1
- package/lib/module/classes/CactusVAD.js +95 -0
- package/lib/module/classes/CactusVAD.js.map +1 -0
- package/lib/module/hooks/useCactusLM.js +10 -11
- package/lib/module/hooks/useCactusLM.js.map +1 -1
- package/lib/module/hooks/useCactusSTT.js +23 -62
- package/lib/module/hooks/useCactusSTT.js.map +1 -1
- package/lib/module/hooks/useCactusVAD.js +171 -0
- package/lib/module/hooks/useCactusVAD.js.map +1 -0
- package/lib/module/index.js +2 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/modelRegistry.js +52 -0
- package/lib/module/modelRegistry.js.map +1 -0
- package/lib/module/native/Cactus.js +103 -23
- package/lib/module/native/Cactus.js.map +1 -1
- package/lib/module/native/CactusIndex.js.map +1 -1
- package/lib/module/native/index.js +0 -3
- package/lib/module/native/index.js.map +1 -1
- package/lib/module/types/CactusVAD.js +4 -0
- package/lib/module/{specs/CactusUtil.nitro.js.map → types/CactusVAD.js.map} +1 -1
- package/lib/typescript/src/classes/CactusLM.d.ts +5 -7
- package/lib/typescript/src/classes/CactusLM.d.ts.map +1 -1
- package/lib/typescript/src/classes/CactusSTT.d.ts +9 -12
- package/lib/typescript/src/classes/CactusSTT.d.ts.map +1 -1
- package/lib/typescript/src/classes/CactusVAD.d.ts +20 -0
- package/lib/typescript/src/classes/CactusVAD.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useCactusLM.d.ts +2 -2
- package/lib/typescript/src/hooks/useCactusLM.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useCactusSTT.d.ts +6 -8
- package/lib/typescript/src/hooks/useCactusSTT.d.ts.map +1 -1
- package/lib/typescript/src/hooks/useCactusVAD.d.ts +15 -0
- package/lib/typescript/src/hooks/useCactusVAD.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +7 -5
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/modelRegistry.d.ts +5 -0
- package/lib/typescript/src/modelRegistry.d.ts.map +1 -0
- package/lib/typescript/src/native/Cactus.d.ts +13 -11
- package/lib/typescript/src/native/Cactus.d.ts.map +1 -1
- package/lib/typescript/src/native/CactusIndex.d.ts +2 -2
- package/lib/typescript/src/native/CactusIndex.d.ts.map +1 -1
- package/lib/typescript/src/native/index.d.ts +0 -3
- package/lib/typescript/src/native/index.d.ts.map +1 -1
- package/lib/typescript/src/specs/Cactus.nitro.d.ts +7 -6
- package/lib/typescript/src/specs/Cactus.nitro.d.ts.map +1 -1
- package/lib/typescript/src/types/CactusIndex.d.ts +2 -2
- package/lib/typescript/src/types/CactusIndex.d.ts.map +1 -1
- package/lib/typescript/src/types/CactusLM.d.ts +19 -11
- package/lib/typescript/src/types/CactusLM.d.ts.map +1 -1
- package/lib/typescript/src/types/CactusSTT.d.ts +44 -12
- package/lib/typescript/src/types/CactusSTT.d.ts.map +1 -1
- package/lib/typescript/src/types/CactusVAD.d.ts +34 -0
- package/lib/typescript/src/types/CactusVAD.d.ts.map +1 -0
- package/lib/typescript/src/types/common.d.ts +1 -6
- package/lib/typescript/src/types/common.d.ts.map +1 -1
- package/nitro.json +0 -11
- package/nitrogen/generated/android/cactus+autolinking.cmake +0 -5
- package/nitrogen/generated/android/cactusOnLoad.cpp +0 -30
- package/nitrogen/generated/ios/Cactus-Swift-Cxx-Bridge.cpp +0 -50
- package/nitrogen/generated/ios/Cactus-Swift-Cxx-Bridge.hpp +9 -147
- package/nitrogen/generated/ios/Cactus-Swift-Cxx-Umbrella.hpp +0 -13
- package/nitrogen/generated/ios/CactusAutolinking.mm +0 -26
- package/nitrogen/generated/ios/CactusAutolinking.swift +0 -30
- package/nitrogen/generated/shared/c++/HybridCactusSpec.cpp +5 -4
- package/nitrogen/generated/shared/c++/HybridCactusSpec.hpp +7 -6
- package/package.json +3 -3
- package/src/classes/CactusLM.ts +18 -65
- package/src/classes/CactusSTT.ts +52 -90
- package/src/classes/CactusVAD.ts +129 -0
- package/src/hooks/useCactusLM.ts +14 -17
- package/src/hooks/useCactusSTT.ts +47 -98
- package/src/hooks/useCactusVAD.ts +215 -0
- package/src/index.tsx +21 -12
- package/src/modelRegistry.ts +65 -0
- package/src/native/Cactus.ts +131 -38
- package/src/native/CactusIndex.ts +2 -2
- package/src/native/index.ts +0 -3
- package/src/specs/Cactus.nitro.ts +16 -7
- package/src/types/CactusIndex.ts +2 -2
- package/src/types/CactusLM.ts +19 -11
- package/src/types/CactusSTT.ts +47 -13
- package/src/types/CactusVAD.ts +39 -0
- package/src/types/common.ts +1 -6
- package/android/src/main/java/com/margelo/nitro/cactus/HybridCactusCrypto.kt +0 -46
- package/android/src/main/java/com/margelo/nitro/cactus/HybridCactusDeviceInfo.kt +0 -27
- package/android/src/main/jniLibs/arm64-v8a/libcactus_util.a +0 -0
- package/cpp/HybridCactusUtil.cpp +0 -47
- package/cpp/HybridCactusUtil.hpp +0 -27
- package/cpp/cactus_util.h +0 -25
- package/ios/HybridCactusCrypto.swift +0 -37
- package/ios/HybridCactusDeviceInfo.swift +0 -32
- package/ios/cactus.xcframework/ios-arm64/cactus.framework/Headers/cactus_telemetry.h +0 -656
- package/ios/cactus.xcframework/ios-arm64-simulator/cactus.framework/Headers/cactus_telemetry.h +0 -656
- package/ios/cactus_util.xcframework/Info.plist +0 -39
- package/ios/cactus_util.xcframework/ios-arm64/cactus_util.framework/Headers/cactus_util.h +0 -25
- package/ios/cactus_util.xcframework/ios-arm64/cactus_util.framework/Headers/database.h +0 -27
- package/ios/cactus_util.xcframework/ios-arm64/cactus_util.framework/Headers/ios_utils.h +0 -10
- package/ios/cactus_util.xcframework/ios-arm64/cactus_util.framework/Headers/logging.h +0 -25
- package/ios/cactus_util.xcframework/ios-arm64/cactus_util.framework/Info.plist +0 -0
- package/ios/cactus_util.xcframework/ios-arm64/cactus_util.framework/cactus_util +0 -0
- package/ios/cactus_util.xcframework/ios-arm64-simulator/cactus_util.framework/Headers/cactus_util.h +0 -25
- package/ios/cactus_util.xcframework/ios-arm64-simulator/cactus_util.framework/Headers/database.h +0 -27
- package/ios/cactus_util.xcframework/ios-arm64-simulator/cactus_util.framework/Headers/ios_utils.h +0 -10
- package/ios/cactus_util.xcframework/ios-arm64-simulator/cactus_util.framework/Headers/logging.h +0 -25
- package/ios/cactus_util.xcframework/ios-arm64-simulator/cactus_util.framework/Info.plist +0 -0
- package/ios/cactus_util.xcframework/ios-arm64-simulator/cactus_util.framework/_CodeSignature/CodeResources +0 -135
- package/ios/cactus_util.xcframework/ios-arm64-simulator/cactus_util.framework/cactus_util +0 -0
- package/lib/module/api/Database.js +0 -45
- package/lib/module/api/Database.js.map +0 -1
- package/lib/module/api/RemoteLM.js +0 -201
- package/lib/module/api/RemoteLM.js.map +0 -1
- package/lib/module/config/CactusConfig.js +0 -12
- package/lib/module/config/CactusConfig.js.map +0 -1
- package/lib/module/models.js +0 -336
- package/lib/module/models.js.map +0 -1
- package/lib/module/native/CactusCrypto.js +0 -10
- package/lib/module/native/CactusCrypto.js.map +0 -1
- package/lib/module/native/CactusDeviceInfo.js +0 -13
- package/lib/module/native/CactusDeviceInfo.js.map +0 -1
- package/lib/module/native/CactusUtil.js +0 -36
- package/lib/module/native/CactusUtil.js.map +0 -1
- package/lib/module/specs/CactusCrypto.nitro.js +0 -4
- package/lib/module/specs/CactusCrypto.nitro.js.map +0 -1
- package/lib/module/specs/CactusDeviceInfo.nitro.js +0 -4
- package/lib/module/specs/CactusDeviceInfo.nitro.js.map +0 -1
- package/lib/module/specs/CactusUtil.nitro.js +0 -4
- package/lib/module/telemetry/Telemetry.js +0 -154
- package/lib/module/telemetry/Telemetry.js.map +0 -1
- package/lib/typescript/src/api/Database.d.ts +0 -12
- package/lib/typescript/src/api/Database.d.ts.map +0 -1
- package/lib/typescript/src/api/RemoteLM.d.ts +0 -14
- package/lib/typescript/src/api/RemoteLM.d.ts.map +0 -1
- package/lib/typescript/src/config/CactusConfig.d.ts +0 -7
- package/lib/typescript/src/config/CactusConfig.d.ts.map +0 -1
- package/lib/typescript/src/models.d.ts +0 -6
- package/lib/typescript/src/models.d.ts.map +0 -1
- package/lib/typescript/src/native/CactusCrypto.d.ts +0 -5
- package/lib/typescript/src/native/CactusCrypto.d.ts.map +0 -1
- package/lib/typescript/src/native/CactusDeviceInfo.d.ts +0 -7
- package/lib/typescript/src/native/CactusDeviceInfo.d.ts.map +0 -1
- package/lib/typescript/src/native/CactusUtil.d.ts +0 -6
- package/lib/typescript/src/native/CactusUtil.d.ts.map +0 -1
- package/lib/typescript/src/specs/CactusCrypto.nitro.d.ts +0 -8
- package/lib/typescript/src/specs/CactusCrypto.nitro.d.ts.map +0 -1
- package/lib/typescript/src/specs/CactusDeviceInfo.nitro.d.ts +0 -16
- package/lib/typescript/src/specs/CactusDeviceInfo.nitro.d.ts.map +0 -1
- package/lib/typescript/src/specs/CactusUtil.nitro.d.ts +0 -10
- package/lib/typescript/src/specs/CactusUtil.nitro.d.ts.map +0 -1
- package/lib/typescript/src/telemetry/Telemetry.d.ts +0 -34
- package/lib/typescript/src/telemetry/Telemetry.d.ts.map +0 -1
- package/nitrogen/generated/android/c++/JDeviceInfo.hpp +0 -74
- package/nitrogen/generated/android/c++/JHybridCactusCryptoSpec.cpp +0 -65
- package/nitrogen/generated/android/c++/JHybridCactusCryptoSpec.hpp +0 -65
- package/nitrogen/generated/android/c++/JHybridCactusDeviceInfoSpec.cpp +0 -85
- package/nitrogen/generated/android/c++/JHybridCactusDeviceInfoSpec.hpp +0 -66
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cactus/DeviceInfo.kt +0 -50
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cactus/HybridCactusCryptoSpec.kt +0 -58
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cactus/HybridCactusDeviceInfoSpec.kt +0 -62
- package/nitrogen/generated/ios/c++/HybridCactusCryptoSpecSwift.cpp +0 -11
- package/nitrogen/generated/ios/c++/HybridCactusCryptoSpecSwift.hpp +0 -77
- package/nitrogen/generated/ios/c++/HybridCactusDeviceInfoSpecSwift.cpp +0 -11
- package/nitrogen/generated/ios/c++/HybridCactusDeviceInfoSpecSwift.hpp +0 -88
- package/nitrogen/generated/ios/swift/DeviceInfo.swift +0 -98
- package/nitrogen/generated/ios/swift/Func_void_DeviceInfo.swift +0 -47
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__string_.swift +0 -54
- package/nitrogen/generated/ios/swift/HybridCactusCryptoSpec.swift +0 -57
- package/nitrogen/generated/ios/swift/HybridCactusCryptoSpec_cxx.swift +0 -139
- package/nitrogen/generated/ios/swift/HybridCactusDeviceInfoSpec.swift +0 -58
- package/nitrogen/generated/ios/swift/HybridCactusDeviceInfoSpec_cxx.swift +0 -164
- package/nitrogen/generated/shared/c++/DeviceInfo.hpp +0 -92
- package/nitrogen/generated/shared/c++/HybridCactusCryptoSpec.cpp +0 -21
- package/nitrogen/generated/shared/c++/HybridCactusCryptoSpec.hpp +0 -63
- package/nitrogen/generated/shared/c++/HybridCactusDeviceInfoSpec.cpp +0 -22
- package/nitrogen/generated/shared/c++/HybridCactusDeviceInfoSpec.hpp +0 -67
- package/nitrogen/generated/shared/c++/HybridCactusUtilSpec.cpp +0 -23
- package/nitrogen/generated/shared/c++/HybridCactusUtilSpec.hpp +0 -66
- package/src/api/Database.ts +0 -55
- package/src/api/RemoteLM.ts +0 -273
- package/src/config/CactusConfig.ts +0 -11
- package/src/models.ts +0 -344
- package/src/native/CactusCrypto.ts +0 -11
- package/src/native/CactusDeviceInfo.ts +0 -18
- package/src/native/CactusUtil.ts +0 -43
- package/src/specs/CactusCrypto.nitro.ts +0 -6
- package/src/specs/CactusDeviceInfo.nitro.ts +0 -15
- package/src/specs/CactusUtil.nitro.ts +0 -8
- package/src/telemetry/Telemetry.ts +0 -236
package/lib/module/models.js
DELETED
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const models = {
|
|
4
|
-
'gemma-3-270m-it': {
|
|
5
|
-
completion: true,
|
|
6
|
-
tools: false,
|
|
7
|
-
vision: false,
|
|
8
|
-
embed: true,
|
|
9
|
-
speech: false,
|
|
10
|
-
quantization: {
|
|
11
|
-
int4: {
|
|
12
|
-
sizeMb: 115,
|
|
13
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/gemma-3-270m-it.zip'
|
|
14
|
-
},
|
|
15
|
-
int8: {
|
|
16
|
-
sizeMb: 172,
|
|
17
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/gemma-3-270m-it.zip'
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
'functiongemma-270m-it': {
|
|
22
|
-
completion: true,
|
|
23
|
-
tools: true,
|
|
24
|
-
vision: false,
|
|
25
|
-
embed: true,
|
|
26
|
-
speech: false,
|
|
27
|
-
quantization: {
|
|
28
|
-
int4: {
|
|
29
|
-
sizeMb: 115,
|
|
30
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/functiongemma-270m-it.zip'
|
|
31
|
-
},
|
|
32
|
-
int8: {
|
|
33
|
-
sizeMb: 172,
|
|
34
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/functiongemma-270m-it.zip'
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
'whisper-small': {
|
|
39
|
-
completion: false,
|
|
40
|
-
tools: false,
|
|
41
|
-
vision: false,
|
|
42
|
-
embed: true,
|
|
43
|
-
speech: true,
|
|
44
|
-
quantization: {
|
|
45
|
-
int4: {
|
|
46
|
-
sizeMb: 104,
|
|
47
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/whisper-small.zip',
|
|
48
|
-
pro: {
|
|
49
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/pro/apple/whisper-small.zip'
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
int8: {
|
|
53
|
-
sizeMb: 282,
|
|
54
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/whisper-small.zip',
|
|
55
|
-
pro: {
|
|
56
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/pro/apple/whisper-small.zip'
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
'lfm2-350m': {
|
|
62
|
-
completion: true,
|
|
63
|
-
tools: true,
|
|
64
|
-
vision: false,
|
|
65
|
-
embed: true,
|
|
66
|
-
speech: false,
|
|
67
|
-
quantization: {
|
|
68
|
-
int4: {
|
|
69
|
-
sizeMb: 153,
|
|
70
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/lfm2-350m.zip'
|
|
71
|
-
},
|
|
72
|
-
int8: {
|
|
73
|
-
sizeMb: 233,
|
|
74
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/lfm2-350m.zip'
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
'smollm2-360m-instruct': {
|
|
79
|
-
completion: true,
|
|
80
|
-
tools: false,
|
|
81
|
-
vision: false,
|
|
82
|
-
embed: true,
|
|
83
|
-
speech: false,
|
|
84
|
-
quantization: {
|
|
85
|
-
int4: {
|
|
86
|
-
sizeMb: 140,
|
|
87
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/smollm2-360m-instruct.zip'
|
|
88
|
-
},
|
|
89
|
-
int8: {
|
|
90
|
-
sizeMb: 227,
|
|
91
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/smollm2-360m-instruct.zip'
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
'lfm2-vl-450m': {
|
|
96
|
-
completion: true,
|
|
97
|
-
tools: false,
|
|
98
|
-
vision: true,
|
|
99
|
-
embed: true,
|
|
100
|
-
speech: false,
|
|
101
|
-
quantization: {
|
|
102
|
-
int4: {
|
|
103
|
-
sizeMb: 318,
|
|
104
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/lfm2-vl-450m.zip',
|
|
105
|
-
pro: {
|
|
106
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/pro/apple/lfm2-vl-450m.zip'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
int8: {
|
|
110
|
-
sizeMb: 480,
|
|
111
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/lfm2-vl-450m.zip',
|
|
112
|
-
pro: {
|
|
113
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/pro/apple/lfm2-vl-450m.zip'
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
'nomic-embed-text-v2-moe': {
|
|
119
|
-
completion: false,
|
|
120
|
-
tools: false,
|
|
121
|
-
vision: false,
|
|
122
|
-
embed: true,
|
|
123
|
-
speech: false,
|
|
124
|
-
quantization: {
|
|
125
|
-
int4: {
|
|
126
|
-
sizeMb: 211,
|
|
127
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/nomic-embed-text-v2-moe.zip'
|
|
128
|
-
},
|
|
129
|
-
int8: {
|
|
130
|
-
sizeMb: 456,
|
|
131
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/nomic-embed-text-v2-moe.zip'
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
'qwen3-0.6b': {
|
|
136
|
-
completion: true,
|
|
137
|
-
tools: true,
|
|
138
|
-
vision: false,
|
|
139
|
-
embed: true,
|
|
140
|
-
speech: false,
|
|
141
|
-
quantization: {
|
|
142
|
-
int4: {
|
|
143
|
-
sizeMb: 234,
|
|
144
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/qwen3-0.6b.zip'
|
|
145
|
-
},
|
|
146
|
-
int8: {
|
|
147
|
-
sizeMb: 394,
|
|
148
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/qwen3-0.6b.zip'
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
'qwen3-embedding-0.6b': {
|
|
153
|
-
completion: false,
|
|
154
|
-
tools: false,
|
|
155
|
-
vision: false,
|
|
156
|
-
embed: true,
|
|
157
|
-
speech: false,
|
|
158
|
-
quantization: {
|
|
159
|
-
int4: {
|
|
160
|
-
sizeMb: 234,
|
|
161
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/qwen3-embedding-0.6b.zip'
|
|
162
|
-
},
|
|
163
|
-
int8: {
|
|
164
|
-
sizeMb: 394,
|
|
165
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/qwen3-embedding-0.6b.zip'
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
'lfm2-700m': {
|
|
170
|
-
completion: true,
|
|
171
|
-
tools: true,
|
|
172
|
-
vision: false,
|
|
173
|
-
embed: true,
|
|
174
|
-
speech: false,
|
|
175
|
-
quantization: {
|
|
176
|
-
int4: {
|
|
177
|
-
sizeMb: 300,
|
|
178
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/lfm2-700m.zip'
|
|
179
|
-
},
|
|
180
|
-
int8: {
|
|
181
|
-
sizeMb: 467,
|
|
182
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/lfm2-700m.zip'
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
'gemma-3-1b-it': {
|
|
187
|
-
completion: true,
|
|
188
|
-
tools: false,
|
|
189
|
-
vision: false,
|
|
190
|
-
embed: false,
|
|
191
|
-
speech: false,
|
|
192
|
-
quantization: {
|
|
193
|
-
int4: {
|
|
194
|
-
sizeMb: 320,
|
|
195
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/gemma-3-1b-it.zip'
|
|
196
|
-
},
|
|
197
|
-
int8: {
|
|
198
|
-
sizeMb: 642,
|
|
199
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/gemma-3-1b-it.zip'
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
'whisper-medium': {
|
|
204
|
-
completion: false,
|
|
205
|
-
tools: false,
|
|
206
|
-
vision: false,
|
|
207
|
-
embed: true,
|
|
208
|
-
speech: true,
|
|
209
|
-
quantization: {
|
|
210
|
-
int4: {
|
|
211
|
-
sizeMb: 320,
|
|
212
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/whisper-medium.zip',
|
|
213
|
-
pro: {
|
|
214
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/pro/apple/whisper-medium.zip'
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
int8: {
|
|
218
|
-
sizeMb: 646,
|
|
219
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/whisper-medium.zip',
|
|
220
|
-
pro: {
|
|
221
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/pro/apple/whisper-medium.zip'
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
'lfm2.5-1.2b-instruct': {
|
|
227
|
-
completion: true,
|
|
228
|
-
tools: true,
|
|
229
|
-
vision: false,
|
|
230
|
-
embed: true,
|
|
231
|
-
speech: false,
|
|
232
|
-
quantization: {
|
|
233
|
-
int4: {
|
|
234
|
-
sizeMb: 474,
|
|
235
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/lfm2.5-1.2b-instruct.zip'
|
|
236
|
-
},
|
|
237
|
-
int8: {
|
|
238
|
-
sizeMb: 722,
|
|
239
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/lfm2.5-1.2b-instruct.zip'
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
'lfm2-1.2b-rag': {
|
|
244
|
-
completion: true,
|
|
245
|
-
tools: true,
|
|
246
|
-
vision: false,
|
|
247
|
-
embed: true,
|
|
248
|
-
speech: false,
|
|
249
|
-
quantization: {
|
|
250
|
-
int4: {
|
|
251
|
-
sizeMb: 474,
|
|
252
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/lfm2-1.2b-rag.zip'
|
|
253
|
-
},
|
|
254
|
-
int8: {
|
|
255
|
-
sizeMb: 722,
|
|
256
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/lfm2-1.2b-rag.zip'
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
'lfm2-1.2b-tool': {
|
|
261
|
-
completion: true,
|
|
262
|
-
tools: true,
|
|
263
|
-
vision: false,
|
|
264
|
-
embed: true,
|
|
265
|
-
speech: false,
|
|
266
|
-
quantization: {
|
|
267
|
-
int4: {
|
|
268
|
-
sizeMb: 474,
|
|
269
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/lfm2-1.2b-tool.zip'
|
|
270
|
-
},
|
|
271
|
-
int8: {
|
|
272
|
-
sizeMb: 722,
|
|
273
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/lfm2-1.2b-tool.zip'
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
'lfm2-vl-1.6b': {
|
|
278
|
-
completion: true,
|
|
279
|
-
tools: false,
|
|
280
|
-
vision: true,
|
|
281
|
-
embed: true,
|
|
282
|
-
speech: false,
|
|
283
|
-
quantization: {
|
|
284
|
-
int4: {
|
|
285
|
-
sizeMb: 954,
|
|
286
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/lfm2-vl-1.6b.zip',
|
|
287
|
-
pro: {
|
|
288
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/pro/apple/lfm2-vl-1.6b.zip'
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
int8: {
|
|
292
|
-
sizeMb: 1440,
|
|
293
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/lfm2-vl-1.6b.zip',
|
|
294
|
-
pro: {
|
|
295
|
-
apple: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/pro/apple/lfm2-vl-1.6b.zip'
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
'qwen3-1.7b': {
|
|
301
|
-
completion: true,
|
|
302
|
-
tools: true,
|
|
303
|
-
vision: false,
|
|
304
|
-
embed: true,
|
|
305
|
-
speech: false,
|
|
306
|
-
quantization: {
|
|
307
|
-
int4: {
|
|
308
|
-
sizeMb: 749,
|
|
309
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/qwen3-1.7b.zip'
|
|
310
|
-
},
|
|
311
|
-
int8: {
|
|
312
|
-
sizeMb: 1161,
|
|
313
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/qwen3-1.7b.zip'
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
'smollm2-1.7b-instruct': {
|
|
318
|
-
completion: true,
|
|
319
|
-
tools: false,
|
|
320
|
-
vision: false,
|
|
321
|
-
embed: true,
|
|
322
|
-
speech: false,
|
|
323
|
-
quantization: {
|
|
324
|
-
int4: {
|
|
325
|
-
sizeMb: 801,
|
|
326
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int4/smollm2-1.7b-instruct.zip'
|
|
327
|
-
},
|
|
328
|
-
int8: {
|
|
329
|
-
sizeMb: 1161,
|
|
330
|
-
url: 'https://vlqqczxwyaodtcdmdmlw.supabase.co/storage/v1/object/public/cactus-models/v1.5/int8/smollm2-1.7b-instruct.zip'
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
};
|
|
335
|
-
export default models;
|
|
336
|
-
//# sourceMappingURL=models.js.map
|
package/lib/module/models.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["models","completion","tools","vision","embed","speech","quantization","int4","sizeMb","url","int8","pro","apple"],"sourceRoot":"../../src","sources":["models.ts"],"mappings":";;AAEA,MAAMA,MAAsC,GAAG;EAC7C,iBAAiB,EAAE;IACjBC,UAAU,EAAE,IAAI;IAChBC,KAAK,EAAE,KAAK;IACZC,MAAM,EAAE,KAAK;IACbC,KAAK,EAAE,IAAI;IACXC,MAAM,EAAE,KAAK;IACbC,YAAY,EAAE;MACZC,IAAI,EAAE;QACJC,MAAM,EAAE,GAAG;QACXC,GAAG,EAAE;MACP,CAAC;MACDC,IAAI,EAAE;QACJF,MAAM,EAAE,GAAG;QACXC,GAAG,EAAE;MACP;IACF;EACF,CAAC;EACD,uBAAuB,EAAE;IACvBR,UAAU,EAAE,IAAI;IAChBC,KAAK,EAAE,IAAI;IACXC,MAAM,EAAE,KAAK;IACbC,KAAK,EAAE,IAAI;IACXC,MAAM,EAAE,KAAK;IACbC,YAAY,EAAE;MACZC,IAAI,EAAE;QACJC,MAAM,EAAE,GAAG;QACXC,GAAG,EAAE;MACP,CAAC;MACDC,IAAI,EAAE;QACJF,MAAM,EAAE,GAAG;QACXC,GAAG,EAAE;MACP;IACF;EACF,CAAC;EACD,eAAe,EAAE;IACfR,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE,KAAK;IACZC,MAAM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I;QACZC,GAAG,EAAE;MACP;IACF;EACF,CAAC;EACD,uBAAuB,EAAE;IACvBR,UAAU,EAAE,IAAI;IAChBC,KAAK,EAAE,KAAK;IACZC,MAAM,EAAE,KAAK;IACbC,KAAK,EAAE,IAAI;IACXC,MAAM,EAAE,KAAK;IACbC,YAAY,EAAE;MACZC,IAAI,EAAE;QACJC,MAAM,EAAE,GAAG;QACXC,GAAG,EAAE;MACP,CAAC;MACDC,IAAI,EAAE;QACJF,MAAM,EAAE,IAAI;QACZC,GAAG,EAAE;MACP;IACF;EACF;AACF,CAAC;AAED,eAAeT,MAAM","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { NitroModules } from 'react-native-nitro-modules';
|
|
4
|
-
export class CactusCrypto {
|
|
5
|
-
static hybridCactusCrypto = NitroModules.createHybridObject('CactusCrypto');
|
|
6
|
-
static uuidv5(namespaceUuid, name) {
|
|
7
|
-
return this.hybridCactusCrypto.uuidv5(namespaceUuid, name);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=CactusCrypto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NitroModules","CactusCrypto","hybridCactusCrypto","createHybridObject","uuidv5","namespaceUuid","name"],"sourceRoot":"../../../src","sources":["native/CactusCrypto.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAGzD,OAAO,MAAMC,YAAY,CAAC;EACxB,OAAwBC,kBAAkB,GACxCF,YAAY,CAACG,kBAAkB,CAAmB,cAAc,CAAC;EAEnE,OAAcC,MAAMA,CAACC,aAAqB,EAAEC,IAAY,EAAmB;IACzE,OAAO,IAAI,CAACJ,kBAAkB,CAACE,MAAM,CAACC,aAAa,EAAEC,IAAI,CAAC;EAC5D;AACF","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { NitroModules } from 'react-native-nitro-modules';
|
|
4
|
-
export class CactusDeviceInfo {
|
|
5
|
-
static hybridCactusDeviceInfo = NitroModules.createHybridObject('CactusDeviceInfo');
|
|
6
|
-
static getAppIdentifier() {
|
|
7
|
-
return this.hybridCactusDeviceInfo.getAppIdentifier();
|
|
8
|
-
}
|
|
9
|
-
static getDeviceInfo() {
|
|
10
|
-
return this.hybridCactusDeviceInfo.getDeviceInfo();
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=CactusDeviceInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NitroModules","CactusDeviceInfo","hybridCactusDeviceInfo","createHybridObject","getAppIdentifier","getDeviceInfo"],"sourceRoot":"../../../src","sources":["native/CactusDeviceInfo.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAMzD,OAAO,MAAMC,gBAAgB,CAAC;EAC5B,OAAwBC,sBAAsB,GAC5CF,YAAY,CAACG,kBAAkB,CAAuB,kBAAkB,CAAC;EAE3E,OAAcC,gBAAgBA,CAAA,EAAgC;IAC5D,OAAO,IAAI,CAACF,sBAAsB,CAACE,gBAAgB,CAAC,CAAC;EACvD;EAEA,OAAcC,aAAaA,CAAA,EAAwB;IACjD,OAAO,IAAI,CAACH,sBAAsB,CAACG,aAAa,CAAC,CAAC;EACpD;AACF","ignoreList":[]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { NitroModules } from 'react-native-nitro-modules';
|
|
4
|
-
import { Platform } from 'react-native';
|
|
5
|
-
import { CactusFileSystem } from "./CactusFileSystem.js";
|
|
6
|
-
import { CactusConfig } from "../config/CactusConfig.js";
|
|
7
|
-
import { Database } from "../api/Database.js";
|
|
8
|
-
export class CactusUtil {
|
|
9
|
-
static hybridCactusUtil = NitroModules.createHybridObject('CactusUtil');
|
|
10
|
-
static async registerApp(encryptedData) {
|
|
11
|
-
if (Platform.OS === 'android') {
|
|
12
|
-
const cactusDirectory = await CactusFileSystem.getCactusDirectory();
|
|
13
|
-
await this.hybridCactusUtil.setAndroidDataDirectory(cactusDirectory);
|
|
14
|
-
}
|
|
15
|
-
return this.hybridCactusUtil.registerApp(encryptedData);
|
|
16
|
-
}
|
|
17
|
-
static async getDeviceId() {
|
|
18
|
-
if (Platform.OS === 'android') {
|
|
19
|
-
const cactusDirectory = await CactusFileSystem.getCactusDirectory();
|
|
20
|
-
await this.hybridCactusUtil.setAndroidDataDirectory(cactusDirectory);
|
|
21
|
-
}
|
|
22
|
-
const deviceId = await this.hybridCactusUtil.getDeviceId(CactusConfig.cactusProKey);
|
|
23
|
-
if (!deviceId) {
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
if (deviceId?.indexOf('|') !== -1) {
|
|
27
|
-
const parts = deviceId.split('|');
|
|
28
|
-
CactusConfig.cactusProKey = parts[1];
|
|
29
|
-
return await Database.registerDevice({
|
|
30
|
-
deviceId: parts[0]
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return deviceId;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=CactusUtil.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NitroModules","Platform","CactusFileSystem","CactusConfig","Database","CactusUtil","hybridCactusUtil","createHybridObject","registerApp","encryptedData","OS","cactusDirectory","getCactusDirectory","setAndroidDataDirectory","getDeviceId","deviceId","cactusProKey","indexOf","parts","split","registerDevice"],"sourceRoot":"../../../src","sources":["native/CactusUtil.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAEzD,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,SAASC,YAAY,QAAQ,2BAAwB;AACrD,SAASC,QAAQ,QAAQ,oBAAiB;AAE1C,OAAO,MAAMC,UAAU,CAAC;EACtB,OAAwBC,gBAAgB,GACtCN,YAAY,CAACO,kBAAkB,CAAiB,YAAY,CAAC;EAE/D,aAAoBC,WAAWA,CAACC,aAAqB,EAAmB;IACtE,IAAIR,QAAQ,CAACS,EAAE,KAAK,SAAS,EAAE;MAC7B,MAAMC,eAAe,GAAG,MAAMT,gBAAgB,CAACU,kBAAkB,CAAC,CAAC;MACnE,MAAM,IAAI,CAACN,gBAAgB,CAACO,uBAAuB,CAACF,eAAe,CAAC;IACtE;IAEA,OAAO,IAAI,CAACL,gBAAgB,CAACE,WAAW,CAACC,aAAa,CAAC;EACzD;EAEA,aAAoBK,WAAWA,CAAA,EAA2B;IACxD,IAAIb,QAAQ,CAACS,EAAE,KAAK,SAAS,EAAE;MAC7B,MAAMC,eAAe,GAAG,MAAMT,gBAAgB,CAACU,kBAAkB,CAAC,CAAC;MACnE,MAAM,IAAI,CAACN,gBAAgB,CAACO,uBAAuB,CAACF,eAAe,CAAC;IACtE;IAEA,MAAMI,QAAQ,GAAG,MAAM,IAAI,CAACT,gBAAgB,CAACQ,WAAW,CACtDX,YAAY,CAACa,YACf,CAAC;IAED,IAAI,CAACD,QAAQ,EAAE;MACb,OAAO,IAAI;IACb;IAEA,IAAIA,QAAQ,EAAEE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;MACjC,MAAMC,KAAK,GAAGH,QAAQ,CAACI,KAAK,CAAC,GAAG,CAAC;MACjChB,YAAY,CAACa,YAAY,GAAGE,KAAK,CAAC,CAAC,CAAC;MACpC,OAAO,MAAMd,QAAQ,CAACgB,cAAc,CAAC;QAAEL,QAAQ,EAAEG,KAAK,CAAC,CAAC;MAAE,CAAC,CAAC;IAC9D;IAEA,OAAOH,QAAQ;EACjB;AACF","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["specs/CactusCrypto.nitro.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["specs/CactusDeviceInfo.nitro.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Database } from "../api/Database.js";
|
|
4
|
-
import { CactusCrypto, CactusDeviceInfo, CactusFileSystem, CactusUtil } from "../native/index.js";
|
|
5
|
-
import { CactusConfig } from "../config/CactusConfig.js";
|
|
6
|
-
import { packageVersion } from "../constants/packageVersion.js";
|
|
7
|
-
export class Telemetry {
|
|
8
|
-
static namespaceUrl = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
9
|
-
static logBufferPaths = {
|
|
10
|
-
init: 'logs/init.json',
|
|
11
|
-
completion: 'logs/completion.json',
|
|
12
|
-
transcription: 'logs/transcription.json',
|
|
13
|
-
embedding: 'logs/embedding.json',
|
|
14
|
-
image_embedding: 'logs/image_embedding.json',
|
|
15
|
-
audio_embedding: 'logs/audio_embedding.json'
|
|
16
|
-
};
|
|
17
|
-
static async handleLog(logRecord) {
|
|
18
|
-
if (!this.isInitialized()) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
if (!CactusConfig.isTelemetryEnabled) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const logBufferPath = this.logBufferPaths[logRecord.event_type];
|
|
25
|
-
let logs = [];
|
|
26
|
-
if (await CactusFileSystem.fileExists(logBufferPath)) {
|
|
27
|
-
try {
|
|
28
|
-
logs = JSON.parse(await CactusFileSystem.readFile(logBufferPath));
|
|
29
|
-
} catch {
|
|
30
|
-
// Delete corrupted log buffer
|
|
31
|
-
await CactusFileSystem.deleteFile(logBufferPath);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
logs.push(logRecord);
|
|
35
|
-
try {
|
|
36
|
-
await Database.sendLogRecords(logs);
|
|
37
|
-
if (await CactusFileSystem.fileExists(logBufferPath)) {
|
|
38
|
-
await CactusFileSystem.deleteFile(logBufferPath);
|
|
39
|
-
}
|
|
40
|
-
} catch {
|
|
41
|
-
await CactusFileSystem.writeFile(logBufferPath, JSON.stringify(logs));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
static isInitialized() {
|
|
45
|
-
return !!(this.projectId && this.deviceId);
|
|
46
|
-
}
|
|
47
|
-
static async init(cactusTelemetryToken) {
|
|
48
|
-
if (this.isInitialized()) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
if (!CactusConfig.isTelemetryEnabled) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
this.cactusTelemetryToken = cactusTelemetryToken;
|
|
55
|
-
const appIdentifier = await CactusDeviceInfo.getAppIdentifier();
|
|
56
|
-
const name = `https://cactus-react-native/${appIdentifier}/v1`;
|
|
57
|
-
this.projectId = await CactusCrypto.uuidv5(this.namespaceUrl, name);
|
|
58
|
-
const deviceInfo = await CactusDeviceInfo.getDeviceInfo();
|
|
59
|
-
try {
|
|
60
|
-
this.deviceId = (await CactusUtil.getDeviceId()) ?? (await Database.registerDevice({
|
|
61
|
-
deviceData: deviceInfo
|
|
62
|
-
}));
|
|
63
|
-
} catch (error) {
|
|
64
|
-
console.log(error);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
static logInit(model, success, message) {
|
|
68
|
-
return this.handleLog({
|
|
69
|
-
framework: 'react-native',
|
|
70
|
-
framework_version: packageVersion,
|
|
71
|
-
event_type: 'init',
|
|
72
|
-
model,
|
|
73
|
-
success,
|
|
74
|
-
message,
|
|
75
|
-
telemetry_token: this.cactusTelemetryToken,
|
|
76
|
-
project_id: this.projectId,
|
|
77
|
-
device_id: this.deviceId
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
static logCompletion(model, success, message, result) {
|
|
81
|
-
return this.handleLog({
|
|
82
|
-
framework: 'react-native',
|
|
83
|
-
framework_version: packageVersion,
|
|
84
|
-
event_type: 'completion',
|
|
85
|
-
model,
|
|
86
|
-
success,
|
|
87
|
-
message,
|
|
88
|
-
telemetry_token: this.cactusTelemetryToken,
|
|
89
|
-
project_id: this.projectId,
|
|
90
|
-
device_id: this.deviceId,
|
|
91
|
-
tokens: result?.totalTokens,
|
|
92
|
-
response_time: result?.totalTimeMs,
|
|
93
|
-
ttft: result?.timeToFirstTokenMs,
|
|
94
|
-
tps: result?.tokensPerSecond
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
static logTranscribe(model, success, message, result) {
|
|
98
|
-
return this.handleLog({
|
|
99
|
-
framework: 'react-native',
|
|
100
|
-
framework_version: packageVersion,
|
|
101
|
-
event_type: 'transcription',
|
|
102
|
-
model,
|
|
103
|
-
success,
|
|
104
|
-
message,
|
|
105
|
-
telemetry_token: this.cactusTelemetryToken,
|
|
106
|
-
project_id: this.projectId,
|
|
107
|
-
device_id: this.deviceId,
|
|
108
|
-
tokens: result?.totalTokens,
|
|
109
|
-
response_time: result?.totalTimeMs,
|
|
110
|
-
ttft: result?.timeToFirstTokenMs,
|
|
111
|
-
tps: result?.tokensPerSecond
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
static logEmbedding(model, success, message) {
|
|
115
|
-
return this.handleLog({
|
|
116
|
-
framework: 'react-native',
|
|
117
|
-
framework_version: packageVersion,
|
|
118
|
-
event_type: 'embedding',
|
|
119
|
-
model,
|
|
120
|
-
success,
|
|
121
|
-
message,
|
|
122
|
-
telemetry_token: this.cactusTelemetryToken,
|
|
123
|
-
project_id: this.projectId,
|
|
124
|
-
device_id: this.deviceId
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
static logImageEmbedding(model, success, message) {
|
|
128
|
-
return this.handleLog({
|
|
129
|
-
framework: 'react-native',
|
|
130
|
-
framework_version: packageVersion,
|
|
131
|
-
event_type: 'image_embedding',
|
|
132
|
-
model,
|
|
133
|
-
success,
|
|
134
|
-
message,
|
|
135
|
-
telemetry_token: this.cactusTelemetryToken,
|
|
136
|
-
project_id: this.projectId,
|
|
137
|
-
device_id: this.deviceId
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
static logAudioEmbedding(model, success, message) {
|
|
141
|
-
return this.handleLog({
|
|
142
|
-
framework: 'react-native',
|
|
143
|
-
framework_version: packageVersion,
|
|
144
|
-
event_type: 'audio_embedding',
|
|
145
|
-
model,
|
|
146
|
-
success,
|
|
147
|
-
message,
|
|
148
|
-
telemetry_token: this.cactusTelemetryToken,
|
|
149
|
-
project_id: this.projectId,
|
|
150
|
-
device_id: this.deviceId
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
//# sourceMappingURL=Telemetry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Database","CactusCrypto","CactusDeviceInfo","CactusFileSystem","CactusUtil","CactusConfig","packageVersion","Telemetry","namespaceUrl","logBufferPaths","init","completion","transcription","embedding","image_embedding","audio_embedding","handleLog","logRecord","isInitialized","isTelemetryEnabled","logBufferPath","event_type","logs","fileExists","JSON","parse","readFile","deleteFile","push","sendLogRecords","writeFile","stringify","projectId","deviceId","cactusTelemetryToken","appIdentifier","getAppIdentifier","name","uuidv5","deviceInfo","getDeviceInfo","getDeviceId","registerDevice","deviceData","error","console","log","logInit","model","success","message","framework","framework_version","telemetry_token","project_id","device_id","logCompletion","result","tokens","totalTokens","response_time","totalTimeMs","ttft","timeToFirstTokenMs","tps","tokensPerSecond","logTranscribe","logEmbedding","logImageEmbedding","logAudioEmbedding"],"sourceRoot":"../../../src","sources":["telemetry/Telemetry.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,oBAAiB;AAC1C,SACEC,YAAY,EACZC,gBAAgB,EAChBC,gBAAgB,EAChBC,UAAU,QACL,oBAAW;AAClB,SAASC,YAAY,QAAQ,2BAAwB;AACrD,SAASC,cAAc,QAAQ,gCAA6B;AAiC5D,OAAO,MAAMC,SAAS,CAAC;EAKrB,OAAwBC,YAAY,GAAG,sCAAsC;EAC7E,OAAwBC,cAAc,GAAG;IACvCC,IAAI,EA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AS,EAAE,IAAI,CAACtB;IAClB,CAAC,CAAC;EACJ;EAEA,OAAcmC,iBAAiBA,CAC7BpB,KAAa,EACbC,OAAgB,EAChBC,OAAgB,EACD;IACf,OAAO,IAAI,CAAClC,SAAS,CAAC;MACpBmC,SAAS,EAAE,cAAc;MACzBC,iBAAiB,EAAE9C,cAAc;MACjCe,UAAU,EAAE,iBAAiB;MAC7B2B,KAAK;MACLC,OAAO;MACPC,OAAO;MACPG,eAAe,EAAE,IAAI,CAACnB,oBAAoB;MAC1CoB,UAAU,EAAE,IAAI,CAACtB,SAAS;MAC1BuB,SAAS,EAAE,IAAI,CAACtB;IAClB,CAAC,CAAC;EACJ;EAEA,OAAcoC,iBAAiBA,CAC7BrB,KAAa,EACbC,OAAgB,EAChBC,OAAgB,EACD;IACf,OAAO,IAAI,CAAClC,SAAS,CAAC;MACpBmC,SAAS,EAAE,cAAc;MACzBC,iBAAiB,EAAE9C,cAAc;MACjCe,UAAU,EAAE,iBAAiB;MAC7B2B,KAAK;MACLC,OAAO;MACPC,OAAO;MACPG,eAAe,EAAE,IAAI,CAACnB,oBAAoB;MAC1CoB,UAAU,EAAE,IAAI,CAACtB,SAAS;MAC1BuB,SAAS,EAAE,IAAI,CAACtB;IAClB,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { DeviceInfo } from '../specs/CactusDeviceInfo.nitro';
|
|
2
|
-
import type { LogRecord } from '../telemetry/Telemetry';
|
|
3
|
-
export declare class Database {
|
|
4
|
-
private static readonly url;
|
|
5
|
-
private static readonly key;
|
|
6
|
-
static sendLogRecords(records: LogRecord[]): Promise<void>;
|
|
7
|
-
static registerDevice({ deviceData, deviceId, }: {
|
|
8
|
-
deviceData?: DeviceInfo;
|
|
9
|
-
deviceId?: string;
|
|
10
|
-
}): Promise<string>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Database.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Database.d.ts","sourceRoot":"","sources":["../../../../src/api/Database.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAGxD,qBAAa,QAAQ;IACnB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAA8C;IACzE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAC0L;WAEjM,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;WAkBnD,cAAc,CAAC,EACjC,UAAU,EACV,QAAQ,GACT,EAAE;QACD,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC,MAAM,CAAC;CAoBpB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CactusLMCompleteResult, Message, CompleteOptions, Tool } from '../types/CactusLM';
|
|
2
|
-
export declare class RemoteLM {
|
|
3
|
-
private static readonly completionsUrl;
|
|
4
|
-
private static readonly defaultModel;
|
|
5
|
-
static complete(messages: Message[], options?: CompleteOptions, tools?: {
|
|
6
|
-
type: 'function';
|
|
7
|
-
function: Tool;
|
|
8
|
-
}[], callback?: (token: string) => void): Promise<CactusLMCompleteResult>;
|
|
9
|
-
private static getMimeType;
|
|
10
|
-
private static transformMessages;
|
|
11
|
-
private static streamXHR;
|
|
12
|
-
private static nonStreamFetch;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=RemoteLM.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteLM.d.ts","sourceRoot":"","sources":["../../../../src/api/RemoteLM.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,sBAAsB,EACtB,OAAO,EACP,eAAe,EACf,IAAI,EACL,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,QAAQ;IACnB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CACY;IAElD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAkC;WAElD,QAAQ,CAC1B,QAAQ,EAAE,OAAO,EAAE,EACnB,OAAO,CAAC,EAAE,eAAe,EACzB,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE,EAAE,EAC9C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GACjC,OAAO,CAAC,sBAAsB,CAAC;IAsBlC,OAAO,CAAC,MAAM,CAAC,WAAW;mBAiBL,iBAAiB;IAsCtC,OAAO,CAAC,MAAM,CAAC,SAAS;mBA0HH,cAAc;CAqDpC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CactusConfig.d.ts","sourceRoot":"","sources":["../../../../src/config/CactusConfig.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAEvB,OAAc,cAAc,CAAC,EAAE,MAAM,CAAC;IACtC,OAAc,kBAAkB,EAAE,OAAO,CAAQ;IAGjD,OAAc,WAAW,CAAC,EAAE,MAAM,CAAC;IAGnC,OAAc,YAAY,CAAC,EAAE,MAAM,CAAC;CACrC"}
|