react-native-nobodywho 5.1.0 → 6.0.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/Nobodywho.podspec +25 -20
- package/README.md +8 -8
- package/android/CMakeLists.txt +4 -15
- package/android/build.gradle +4 -5
- package/android/proguard-rules.pro +6 -0
- package/{generated/cpp → cpp/generated}/nobodywho.cpp +424 -66
- package/{generated/cpp → cpp/generated}/nobodywho.hpp +26 -2
- package/cpp/react-native-nobodywho.cpp +1 -1
- package/package.json +28 -14
- package/src/generated/index.ts +2 -0
- package/src/generated/jsi/nobodywho-ffi.ts +937 -0
- package/src/generated/jsi/nobodywho.ts +7421 -0
- package/src/index.ts +23 -0
- package/src/{chat.ts → wrapper/chat.ts} +1 -1
- package/src/wrapper/convert_value.ts +47 -0
- package/src/{cross_encoder.ts → wrapper/cross_encoder.ts} +1 -1
- package/src/wrapper/decision.ts +112 -0
- package/src/{encoder.ts → wrapper/encoder.ts} +1 -1
- package/src/{wrapper.ts → wrapper/index.ts} +11 -24
- package/src/{message.ts → wrapper/message.ts} +1 -1
- package/src/{model.ts → wrapper/model.ts} +1 -1
- package/src/{prompt.ts → wrapper/prompt.ts} +1 -1
- package/src/{sampler_presets.ts → wrapper/sampler_presets.ts} +1 -1
- package/src/{speech_to_text.ts → wrapper/speech_to_text.ts} +2 -2
- package/src/{streaming.ts → wrapper/streaming.ts} +1 -1
- package/src/{text_to_speech.ts → wrapper/text_to_speech.ts} +1 -1
- package/src/{tool.ts → wrapper/tool.ts} +2 -51
- package/src/{vad.ts → wrapper/vad.ts} +3 -3
- package/ubrn.config.yaml +26 -5
- package/cpp/nobodywho-react-native.cpp +0 -16
- package/cpp/nobodywho-react-native.h +0 -15
- package/generated/ts/nobodywho-ffi.ts +0 -414
- package/generated/ts/nobodywho.ts +0 -5472
- package/src/index.tsx +0 -41
|
@@ -22,10 +22,13 @@ protected:
|
|
|
22
22
|
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_byte_length(
|
|
23
23
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
24
24
|
size_t count);
|
|
25
|
-
jsi::Value
|
|
25
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_to_buffer(
|
|
26
26
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
27
27
|
size_t count);
|
|
28
|
-
jsi::Value
|
|
28
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__string_from_buffer(
|
|
29
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
30
|
+
size_t count);
|
|
31
|
+
jsi::Value cpp_uniffi_internal_fn_func_ffi__read_string_from_buffer(
|
|
29
32
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
30
33
|
size_t count);
|
|
31
34
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustchat(
|
|
@@ -121,6 +124,18 @@ protected:
|
|
|
121
124
|
cpp_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_json(
|
|
122
125
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
123
126
|
size_t count);
|
|
127
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustdecision(
|
|
128
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
129
|
+
size_t count);
|
|
130
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_free_rustdecision(
|
|
131
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
132
|
+
size_t count);
|
|
133
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_constructor_rustdecision_new(
|
|
134
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
135
|
+
size_t count);
|
|
136
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_method_rustdecision_decide(
|
|
137
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
138
|
+
size_t count);
|
|
124
139
|
jsi::Value cpp_uniffi_nobodywho_uniffi_fn_clone_rustencoder(
|
|
125
140
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
126
141
|
size_t count);
|
|
@@ -682,6 +697,9 @@ protected:
|
|
|
682
697
|
cpp_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(
|
|
683
698
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
684
699
|
size_t count);
|
|
700
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustdecision_decide(
|
|
701
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
702
|
+
size_t count);
|
|
685
703
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(
|
|
686
704
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
687
705
|
size_t count);
|
|
@@ -832,6 +850,9 @@ protected:
|
|
|
832
850
|
cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(
|
|
833
851
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
834
852
|
size_t count);
|
|
853
|
+
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustdecision_new(
|
|
854
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
855
|
+
size_t count);
|
|
835
856
|
jsi::Value cpp_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(
|
|
836
857
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
837
858
|
size_t count);
|
|
@@ -878,6 +899,9 @@ protected:
|
|
|
878
899
|
jsi::Value cpp_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(
|
|
879
900
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
880
901
|
size_t count);
|
|
902
|
+
jsi::Value cpp_uniffi_internal_fn_method_rustdecision_ffi__bless_pointer(
|
|
903
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
904
|
+
size_t count);
|
|
881
905
|
jsi::Value cpp_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(
|
|
882
906
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
883
907
|
size_t count);
|
package/package.json
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nobodywho",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
|
+
"author": "NobodyWho <info@nobodywho.ooo>",
|
|
4
5
|
"description": "Run LLMs locally and offline with React Native & Expo - Tool calling, RAG, Speech-to-Text, Text-to-Speech, and VAD",
|
|
5
|
-
"main": "src/
|
|
6
|
-
"types": "src/
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
7
8
|
"exports": {
|
|
8
|
-
".": "./src/
|
|
9
|
+
".": "./src/index.ts"
|
|
9
10
|
},
|
|
11
|
+
"type": "module",
|
|
10
12
|
"license": "EUPL-1.2",
|
|
11
13
|
"homepage": "https://www.nobodywho.ai",
|
|
12
14
|
"bugs": "https://github.com/nobodywho-ooo/nobodywho/issues",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/nobodywho-ooo/nobodywho.git",
|
|
18
|
+
"directory": "nobodywho/js"
|
|
19
|
+
},
|
|
13
20
|
"keywords": [
|
|
14
21
|
"react-native",
|
|
15
22
|
"expo",
|
|
@@ -26,7 +33,6 @@
|
|
|
26
33
|
],
|
|
27
34
|
"files": [
|
|
28
35
|
"src/",
|
|
29
|
-
"generated/",
|
|
30
36
|
"cpp/",
|
|
31
37
|
"ios/",
|
|
32
38
|
"android/",
|
|
@@ -36,25 +42,33 @@
|
|
|
36
42
|
"!android/.cxx",
|
|
37
43
|
"!android/src/main/jniLibs"
|
|
38
44
|
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"ios": "uniffi-bindgen-react-native build ios",
|
|
47
|
+
"android": "uniffi-bindgen-react-native build android",
|
|
48
|
+
"generate-turbo-module": "uniffi-bindgen-react-native generate jsi turbo-module nobodywho",
|
|
49
|
+
"test": "node --test",
|
|
50
|
+
"generate-bindings": "cd ../uniffi && uniffi-bindgen-react-native generate jsi bindings --library --ts-dir ../js/src/generated/jsi --cpp-dir ../js/cpp/generated"
|
|
51
|
+
},
|
|
39
52
|
"codegenConfig": {
|
|
40
53
|
"name": "NobodywhoSpec",
|
|
41
54
|
"type": "modules",
|
|
42
|
-
"jsSrcsDir": "src"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"url": "git+https://github.com/nobodywho-ooo/nobodywho.git"
|
|
55
|
+
"jsSrcsDir": "src",
|
|
56
|
+
"android": {
|
|
57
|
+
"javaPackageName": "ooo.nobodywho"
|
|
58
|
+
}
|
|
47
59
|
},
|
|
48
60
|
"peerDependencies": {
|
|
49
61
|
"react": "*",
|
|
50
62
|
"react-native": "*"
|
|
51
63
|
},
|
|
52
64
|
"dependencies": {
|
|
53
|
-
"
|
|
65
|
+
"@ubjs/core": "0.31.0-6",
|
|
66
|
+
"uniffi-bindgen-react-native": "0.31.0-6"
|
|
54
67
|
},
|
|
55
68
|
"devDependencies": {
|
|
56
|
-
"@types/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
69
|
+
"@types/node": "^24.0.0",
|
|
70
|
+
"react": "^19.2.3",
|
|
71
|
+
"react-native": "^0.84.1",
|
|
72
|
+
"prettier": "^3.9.10"
|
|
59
73
|
}
|
|
60
74
|
}
|