@athenaintel/react 0.11.2 → 0.12.0

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/README.md CHANGED
@@ -56,19 +56,32 @@ If `config.appUrl` is omitted, the provider resolves it from the parent bridge o
56
56
 
57
57
  Use `trustedParentOrigins` when the SDK runs inside an iframe on a private-cloud or custom parent domain and you want to explicitly allow postMessage auth/config from that parent.
58
58
 
59
- ## Statewire Transport (opt-in)
59
+ ## Statewire Transport (default as of 0.12.0)
60
60
 
61
- The default chat transport is the legacy Iris `/api/chat` stream. Pass
62
- `transport: 'statewire'` to attach to the deep-agent statewire sync host
63
- instead the thread is hosted server-side and replicated live, so history,
64
- reconnect, and run scheduling come from the server snapshot:
61
+ Statewire is the default chat transport: the SDK attaches to the deep-agent
62
+ statewire sync host, so the thread is hosted server-side and replicated live —
63
+ history, reconnect, run scheduling, mid-run queueing, HITL approvals, and
64
+ client tools (for recognized SDK hosts, e.g. computer-asset `app_id`s) all
65
+ come from the server snapshot. Pass `transport: 'legacy'` to opt a deployment
66
+ back onto the legacy Iris `/api/chat` stream:
65
67
 
66
68
  ```tsx
67
- <AthenaProvider config={{ environment: 'staging', transport: 'statewire' }}>
69
+ <AthenaProvider config={{ environment: 'staging', transport: 'legacy' }}>
68
70
  <AthenaChat />
69
71
  </AthenaProvider>
70
72
  ```
71
73
 
74
+ **Migrating from ≤0.11.x (legacy default):**
75
+
76
+ - Threads are transport-scoped: conversations created on the legacy transport
77
+ are read-only from statewire (and vice versa). Users keep their history but
78
+ continue in new threads.
79
+ - The statewire runtime applies the deep-agent model default when no `model`
80
+ prop is set; pin `model` explicitly if you depended on the legacy default.
81
+ - The `agent` prop's legacy agent names are not honored on statewire; use
82
+ `collab_agent:<id>` refs (with `transport: 'statewire'` semantics) or the
83
+ default agent.
84
+
72
85
  The sync endpoint defaults to the effective `apiUrl` host + `/v2/threads`
73
86
  (e.g. staging resolves to `https://iris.stg.athenaintel.com/v2/threads`, the
74
87
  same statewire base the mobile app and Chrome extension ship); pass