You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,11 @@ This is a cross-platform SDK monorepo. On a Linux cloud VM, the buildable servic
11
11
| Kotlin SDK (Android target) |`./gradlew :runanywhere-kotlin:compileDebugKotlinAndroid -Prunanywhere.testLocal=false`| Android unit tests require device/emulator |`./gradlew :runanywhere-kotlin:runKtlintCheckOverCommonMainSourceSet`| JVM target has a known issue: `RAGBridge.kt` in `jvmAndroidMain` imports `@Keep` from `androidx.annotation` which is unavailable for JVM compilation |
12
12
| Web SDK (TypeScript) |`npm run build -w packages/core` (from `sdk/runanywhere-web/`) | N/A |`npm run typecheck -w packages/core`|`llamacpp` package has a pre-existing duplicate index signature TS error |
13
13
| Web Example App |`npm run dev` (from `examples/web/RunAnywhereAI/`) | Manual browser testing at `localhost:5173`| N/A | Full Vite app, works in demo mode without WASM |
14
-
| C++ Commons |`cmake -B build ... && cmake --build build` (from `sdk/runanywhere-commons/`) | Tests require model files | N/A | Must use `gcc`/`g++` on this VM (clang lacks C++ stdlib headers). Pass `-DRAC_BUILD_PLATFORM=OFF` on Linux |
14
+
| C++ Commons (core) |`cmake -B build ... && cmake --build build` (from `sdk/runanywhere-commons/`) |`./build/tests/test_core --run-all` (13 tests, no models needed) | N/A | Must use `gcc`/`g++` via `CC=gcc CXX=g++` (clang lacks C++ stdlib headers). Pass `-DRAC_BUILD_PLATFORM=OFF` on Linux |
15
+
| C++ Commons (full backends) |`CC=gcc CXX=g++ bash scripts/build-linux.sh --shared`| Backend tests need downloaded models | N/A | Builds onnx+llamacpp. RAG backend has pre-existing zero-size array bug; use `-DRAC_BACKEND_RAG=OFF`. Sherpa-ONNX v1.12.23 URL changed: use `sherpa-onnx-v{VER}-linux-x64-shared.tar.bz2` (no `-cpu` suffix) |
16
+
| Linux Voice Assistant |`cmake -B build && cmake --build build` (from `Playground/linux-voice-assistant/`) |`./build/test-pipeline <audio.wav>` runs full VAD→STT→LLM→TTS pipeline | N/A | Requires: ALSA headers (`libasound2-dev`), built commons with backends, downloaded models (`./scripts/download-models.sh`). Audio capture needs real hardware; `test-pipeline` works headless |
15
17
| iOS/Swift SDK | Not buildable | Not buildable | Not available | Requires macOS + Xcode |
18
+
| Android emulator | Not runnable | Not runnable | N/A | No KVM support in cloud VM |
16
19
17
20
### Key Gotchas
18
21
@@ -23,6 +26,28 @@ This is a cross-platform SDK monorepo. On a Linux cloud VM, the buildable servic
23
26
-**`local.properties`**: Auto-created at root, `sdk/runanywhere-kotlin/`, and `examples/android/RunAnywhereAI/` with `sdk.dir=/opt/android-sdk`.
24
27
-**pre-commit hooks**: Installed via `pre-commit install`. Requires `git config --unset-all core.hooksPath` first if `core.hooksPath` is set.
0 commit comments