@runanywhere/llamacpp 0.16.4 → 0.16.6

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.
@@ -49,8 +49,18 @@ apply from: '../nitrogen/generated/android/runanywherellama+autolinking.gradle'
49
49
  apply plugin: 'com.facebook.react'
50
50
 
51
51
  // Configure node path for Android Studio builds
52
- react {
53
- nodeExecutableAndArgs = [findNodeBinary()]
52
+ // Set the react extension's nodeExecutableAndArgs after plugin is applied
53
+ def nodeBinary = findNodeBinary()
54
+ logger.lifecycle("[RunAnywhereLlama] Using node binary: ${nodeBinary}")
55
+
56
+ // Configure all codegen tasks to use the detected node binary
57
+ afterEvaluate {
58
+ tasks.withType(com.facebook.react.tasks.GenerateCodegenSchemaTask).configureEach {
59
+ nodeExecutableAndArgs.set([nodeBinary])
60
+ }
61
+ tasks.withType(com.facebook.react.tasks.GenerateCodegenArtifactsTask).configureEach {
62
+ nodeExecutableAndArgs.set([nodeBinary])
63
+ }
54
64
  }
55
65
 
56
66
  def getExtOrIntegerDefault(name) {
@@ -316,14 +326,17 @@ if (!useLocalBuild) {
316
326
  }
317
327
  }
318
328
 
329
+ // NOTE: cleanNativeLibs is NOT attached to clean task because npm-bundled libs should persist
330
+ // Only use this task manually when needed during development
319
331
  task cleanNativeLibs(type: Delete) {
320
- description = "Removes downloaded native libraries"
332
+ description = "Removes downloaded native libraries (use manually, not during normal clean)"
321
333
  group = "build"
322
- delete jniLibsDir
323
334
  delete downloadedLibsDir
335
+ // DO NOT delete jniLibsDir - it contains npm-bundled libraries
324
336
  }
325
337
 
326
- clean.dependsOn cleanNativeLibs
338
+ // DO NOT add: clean.dependsOn cleanNativeLibs
339
+ // This would delete bundled .so files from the npm package
327
340
 
328
341
  repositories {
329
342
  mavenCentral()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runanywhere/llamacpp",
3
- "version": "0.16.4",
3
+ "version": "0.16.6",
4
4
  "description": "LlamaCpp backend for RunAnywhere React Native SDK - GGUF model support for on-device LLM",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",