diff --git a/crates/goose-sdk/README.md b/crates/goose-sdk/README.md index 3dfb839e37..07a8eadadb 100644 --- a/crates/goose-sdk/README.md +++ b/crates/goose-sdk/README.md @@ -4,9 +4,9 @@ The bindings layer for Goose. It houses the shared types used for both ACP and SDK access, and exposes a cross-language version of the Goose API. With `--features uniffi` the crate compiles to native bindings for Python and -Kotlin (namespace `aaif_goose` / `aaif.goose`). The published surface is -currently a `ping` -> `pong` stub in `src/bindings.rs` — the scaffold for the -real implementation. +Kotlin (namespace `goose` / `io.aaif.goose`). The UniFFI surface currently lets +callers construct declarative providers from JSON and stream provider +completions. ```bash just python # build bindings + run examples/uniffi/ping.py diff --git a/crates/goose-sdk/examples/uniffi/Ping.kt b/crates/goose-sdk/examples/uniffi/Ping.kt index 0f043ee003..054e281375 100644 --- a/crates/goose-sdk/examples/uniffi/Ping.kt +++ b/crates/goose-sdk/examples/uniffi/Ping.kt @@ -1,6 +1,6 @@ package aaif.example -import aaif.goose.Client +import io.aaif.goose.Client fun main() { val client = Client() diff --git a/crates/goose-sdk/examples/uniffi/Provider.kt b/crates/goose-sdk/examples/uniffi/Provider.kt index 945fde71fc..6e23e2f044 100644 --- a/crates/goose-sdk/examples/uniffi/Provider.kt +++ b/crates/goose-sdk/examples/uniffi/Provider.kt @@ -1,9 +1,9 @@ package aaif.example -import aaif.goose.DeclarativeProvider -import aaif.goose.MessageRole -import aaif.goose.ProviderMessage -import aaif.goose.ProviderModelConfig +import io.aaif.goose.DeclarativeProvider +import io.aaif.goose.MessageRole +import io.aaif.goose.ProviderMessage +import io.aaif.goose.ProviderModelConfig import java.nio.file.Paths fun main() { diff --git a/crates/goose-sdk/examples/uniffi/README.md b/crates/goose-sdk/examples/uniffi/README.md index 2ade08176d..9b426e6a89 100644 --- a/crates/goose-sdk/examples/uniffi/README.md +++ b/crates/goose-sdk/examples/uniffi/README.md @@ -40,7 +40,7 @@ Compile and run: ```bash kotlinc -cp crates/goose-sdk/examples/uniffi/jna.jar -nowarn \ - crates/goose-sdk/generated/aaif/goose/aaif_goose.kt \ + crates/goose-sdk/generated/io/aaif/goose/goose.kt \ crates/goose-sdk/examples/uniffi/Provider.kt \ -include-runtime -d crates/goose-sdk/examples/uniffi/provider.jar diff --git a/crates/goose-sdk/examples/uniffi/ping.py b/crates/goose-sdk/examples/uniffi/ping.py index 9503b04808..07de552008 100644 --- a/crates/goose-sdk/examples/uniffi/ping.py +++ b/crates/goose-sdk/examples/uniffi/ping.py @@ -8,7 +8,7 @@ from pathlib import Path HERE = Path(__file__).resolve().parent sys.path.insert(0, str(HERE.parent.parent / "generated")) -from aaif_goose import Client # noqa: E402 +from goose import Client # noqa: E402 def main() -> None: diff --git a/crates/goose-sdk/examples/uniffi/provider.py b/crates/goose-sdk/examples/uniffi/provider.py index e603162c6f..0112f0b4bc 100755 --- a/crates/goose-sdk/examples/uniffi/provider.py +++ b/crates/goose-sdk/examples/uniffi/provider.py @@ -7,7 +7,7 @@ from pathlib import Path HERE = Path(__file__).resolve().parent sys.path.insert(0, str(HERE.parent.parent / "generated")) -from aaif_goose import ( # noqa: E402 +from goose import ( # noqa: E402 DeclarativeProvider, MessageRole, ProviderMessage, diff --git a/crates/goose-sdk/justfile b/crates/goose-sdk/justfile index 4d7acf0151..d451095a38 100644 --- a/crates/goose-sdk/justfile +++ b/crates/goose-sdk/justfile @@ -30,7 +30,7 @@ kotlin: (_generate "kotlin") https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar; \ fi kotlinc -cp {{examples_dir}}/jna.jar -nowarn \ - {{gen_dir}}/aaif/goose/aaif_goose.kt \ + {{gen_dir}}/io/aaif/goose/goose.kt \ {{examples_dir}}/Ping.kt \ -include-runtime -d {{examples_dir}}/ping.jar 2>/dev/null java -Djna.library.path={{lib_dir}} \ diff --git a/crates/goose-sdk/src/lib.rs b/crates/goose-sdk/src/lib.rs index 754eabe37f..4742ea2de8 100644 --- a/crates/goose-sdk/src/lib.rs +++ b/crates/goose-sdk/src/lib.rs @@ -13,7 +13,7 @@ pub use goose_sdk_types::{custom_notifications, custom_requests}; #[cfg(feature = "uniffi")] -uniffi::setup_scaffolding!("aaif_goose"); +uniffi::setup_scaffolding!("goose"); #[cfg(feature = "uniffi")] pub mod bindings; diff --git a/crates/goose-sdk/uniffi.toml b/crates/goose-sdk/uniffi.toml index 7c78ef7121..aef1f592c9 100644 --- a/crates/goose-sdk/uniffi.toml +++ b/crates/goose-sdk/uniffi.toml @@ -1,2 +1,2 @@ [bindings.kotlin] -package_name = "aaif.goose" +package_name = "io.aaif.goose"