Something went wrong. Try again.
honestly just guess what it does. You're probably right.
Something went wrong. Try again.
AGENTS.md #
Conventions for working in this repository.
Version control #
- Use
jj, nevergit. - Run
jj util snapshot --quietafter every series of edits, and always before running anynixcommand — nix may not see unsnapshotted changes.
Environment #
- All tooling lives in the Nix devshell:
nix develop(Go 1.27, gomobile pinned inflake.nix, JDK 21, Gradle 8.14, Android SDK platform 26+35, NDK).ANDROID_HOME,ANDROID_NDK_HOME,JAVA_HOMEare set by the shell hook, which also installs the pinned gomobile into.tools/bin. - Verify the toolchain before building on it:
nix develop -c go version,nix develop -c gradle --version.
Language constraints #
- Android (non-Go) code is Kotlin + Jetpack Compose only.
- Go is allowed only in
tsbridge/(server + tsnet + gomobile surface). - The webapp is vanilla ESM JavaScript; no npm, no bundler, no build step.
It lives in the top-level
webapp/directory (independent of tsbridge, which serves any directory it is pointed at);buttplug.mjsis vendored underwebapp/vendor/. - No other languages (no Node, no Rust).
Gotchas #
- The gomobile-bound surface (
tsbridgepackage exports) must only use bindable types (strings, ints, errors). Anything else must stay unexported. compileSdk/targetSdk(35) must match the platform versions inflake.nix; AGP/Gradle compatibility notes live ingradle/libs.versions.tomlandtsbridge/README.md.