v0.8.0 — privacy policy, Private Cloud Compute, and usage on every result
Version 0.8.0 adds an app-wide privacy policy and Apple Private Cloud Compute. Every result now includes token usage. Off-device routing changes so that the runtime never sends a request off the device unless you allow it. This release has breaking changes. Read the upgrade notes before you update.
Breaking changes
- Cloud is no longer in the default provider priority. The runtime routes to
cloudonly when you setprovider: 'cloud'or afallbackother than'none'. See providers and routing. - Sessions honor
sensitive. A sensitive session binds to a third-party cloud only withfallback: 'cloud'or an explicitprovider: 'cloud'. See sessions. GenerateResult.usageis required and has asourcefield ('provider','estimated', or'unavailable'). The runtime never sets a missing count to zero. See token usage.- New
ExpoAIErrorcodes and adetailfield. If your code uses an exhaustiveswitchoncode, add cases for the new codes. See the error model. - Apple: results report provider usage, and the native module contract changed. Rebuild your development build after you update.
- React: the return value of
useObjectnow includesresult. SeeuseObject. - Evals:
@stewmore/expo-ai-cloudis now an optional peer dependency of the evals package, and the default fallback is'none'. See evals.
New features
Core
- App-wide privacy policy.
ExpoAI.setPrivacyPolicysets a hard limit on the privacy modes and providers that the app can use, including explicit providers. The policy also has asensitiveByDefaultoption. See app-wide privacy policy. - Private Cloud Compute gating. The router treats Apple Private Cloud Compute as an off-device provider. Sensitive prompts can still use it.
- Token usage on every result. See token usage.
- Structured output modes.
structuredOutputselects how the first attempt is generated. See choosing a strategy. ExpoAI.prewarmandsession.prewarm()warm up a provider before the first request. See prewarm.- Availability events.
ExpoAI.onAvailabilityChangetells you when a model becomes ready or the user enables Apple Intelligence. See reacting to changes. - Native cancellation. An
AbortSignalnow cancels the native task, not only the JavaScript wrapper.
Apple Foundation Models
- Provider-reported usage on iOS 27 and later, and the real context size when the app is built with the iOS 27 SDK. See token counting.
- Native guided generation for structured output, cancellation, prewarm, and locale support.
- A new Apple Private Cloud Compute adapter and a
privateCloudComputeconfig plugin option. See Private Cloud Compute.
Android AICore
- Availability change notifications when the app returns to the foreground and after a model download.
React
useObjectreturns theGenerateResultasresult.useCapabilitiesrefreshes when availability changes. SeeuseCapabilities.
Evals
- New
--providersand--fallbackflags. Cloud is optional, and the default fallback isnone. Cloud failures now report normalized error codes. See evals.
Fixes
- Core: a native
streamObjectfalls back correctly, usage counts include blank-seed attempts, and the adapter sets the provider on its own errors. - Apple:
podspecPathis now declared inexpo-module.config.json. Private Cloud Compute session errors name the Private Cloud Compute provider. The SDK requirements are clearer in the docs. - Evals: a warning shows when
ENDPOINTis set butcloudis not in--providers. - Release: improved CI concurrency, a gate that verifies the published packages, a no-network check, and API and package lint for the Apple package. Breaking changes on 0.x now cause a minor version bump.