@graineai/inapp-react-native 0.26.0 → 0.26.1

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.
package/INTEGRATION.md CHANGED
@@ -824,6 +824,10 @@ fourth. The guarantees, so you do not have to think about them:
824
824
  unmounting the old screen after the new one mounted cannot erase it.
825
825
  - **Reconnect-safe.** The newest context is replayed whenever the media or the
826
826
  screen channel (re)connects.
827
+ - **Self-healing.** The newest screen is re-asserted every few seconds during
828
+ a call and when the app returns to the foreground, with its original
829
+ sequence number — so a frame lost in flight is repaired within seconds, not
830
+ at the next screen change; one that arrived is simply ignored.
827
831
  - **Applied every turn.** The runtime puts the last-reported screen on the
828
832
  prompt at every generation, so nothing that rewrites the prompt mid-call — a
829
833
  language switch, a summary — can make the agent forget where the customer is.
@@ -916,7 +920,7 @@ told to ignore).
916
920
 
917
921
  | Prop | Type | Notes |
918
922
  |---|---|---|
919
- | `publishableKey` | `string` | Required unless you pass `client`. |
923
+ | `publishableKey` | `string` | Required unless you pass `client`. Selects the agent — one key per agent; there is no `agentId` prop. |
920
924
  | `baseUrl` | `string` | Defaults to Graine's host. |
921
925
  | `client` | `GraineInAppClient` | Use **your** instance instead of building one. Pass this if your app has a module-level client. |
922
926
  | `navigationRef` | `ref` | The same ref you give `NavigationContainer`. Makes the agent screen-aware with no per-screen code. |
@@ -192,6 +192,7 @@ export function GraineVoiceLauncher({ webView: WebView, autoStart = false, trans
192
192
  clearTimeout(pending);
193
193
  pending = null;
194
194
  }
195
+ pushContext();
195
196
  return;
196
197
  }
197
198
  if (next === "background" && wasActive && !pending) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graineai/inapp-react-native",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "type": "module",
5
5
  "description": "Graine in-app agent for React Native — an agent that sees the screen your customer is on and can act on it.",
6
6
  "license": "MIT",