@athenaintel/react 0.11.3 → 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 +19 -6
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime/transport.d.ts +5 -2
- package/package.json +1 -1
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 (
|
|
59
|
+
## Statewire Transport (default as of 0.12.0)
|
|
60
60
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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: '
|
|
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
|
package/dist/index.cjs
CHANGED
|
@@ -72,7 +72,7 @@ function _interopNamespaceDefault(e) {
|
|
|
72
72
|
}
|
|
73
73
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
74
74
|
const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
|
|
75
|
-
const version$1 = "0.
|
|
75
|
+
const version$1 = "0.12.0";
|
|
76
76
|
const packageJson = {
|
|
77
77
|
version: version$1
|
|
78
78
|
};
|
|
@@ -12564,7 +12564,7 @@ const ATHENA_TRANSPORTS = {
|
|
|
12564
12564
|
legacy: "legacy",
|
|
12565
12565
|
statewire: "statewire"
|
|
12566
12566
|
};
|
|
12567
|
-
const DEFAULT_ATHENA_TRANSPORT = ATHENA_TRANSPORTS.
|
|
12567
|
+
const DEFAULT_ATHENA_TRANSPORT = ATHENA_TRANSPORTS.statewire;
|
|
12568
12568
|
function resolveAthenaTransport({
|
|
12569
12569
|
transport
|
|
12570
12570
|
}) {
|