@athenaintel/react 0.12.4 → 0.13.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/dist/AthenaContext-B1QMhIP-.cjs.map +1 -1
- package/dist/AthenaContext-MOslgOmE.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/provider/AthenaContext.d.ts +5 -2
- package/dist/provider/AthenaProvider.d.ts +11 -9
- package/dist/provider/config.d.ts +3 -2
- package/package.json +1 -1
|
@@ -5,8 +5,11 @@ export interface AthenaConfig extends Pick<AthenaProviderConfig, 'apiKey' | 'tok
|
|
|
5
5
|
backendUrl: string;
|
|
6
6
|
appUrl: string;
|
|
7
7
|
enabledToolkits: string[];
|
|
8
|
-
/** Effective chat transport
|
|
9
|
-
*
|
|
8
|
+
/** Effective chat transport — the lane the provider actually mounted (the
|
|
9
|
+
* SDK defaults to 'statewire'; see `DEFAULT_ATHENA_TRANSPORT`). Optional
|
|
10
|
+
* only so hand-built `AthenaConfig` literals keep compiling; capability
|
|
11
|
+
* gates treat an absent value as the conservative legacy lane (e.g.
|
|
12
|
+
* `allowsMidRunSend(undefined)` is false). */
|
|
10
13
|
transport?: AthenaTransport;
|
|
11
14
|
linkClicks?: AthenaLinkClickOptions;
|
|
12
15
|
citationLinks?: AthenaCitationLinkOptions;
|
|
@@ -53,16 +53,18 @@ export interface AthenaProviderProps {
|
|
|
53
53
|
appUrl?: string;
|
|
54
54
|
/** @deprecated Prefer `config.environment`. Athena environment preset used when URLs are not explicitly provided. */
|
|
55
55
|
environment?: AthenaEnvironment;
|
|
56
|
-
/** Chat transport mode. Defaults to '
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* scheduling come from the server snapshot. Works with and without
|
|
61
|
-
* `enableThreadList`.
|
|
56
|
+
/** Chat transport mode. Defaults to 'statewire' (the deep-agent statewire
|
|
57
|
+
* sync host, `…/v2/threads`): the thread is hosted server-side and
|
|
58
|
+
* replicated live, so history, reconnect, and run scheduling come from the
|
|
59
|
+
* server snapshot. Works with and without `enableThreadList`.
|
|
62
60
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
61
|
+
* Pass 'legacy' to opt a deployment back onto the legacy Iris `/api/chat`
|
|
62
|
+
* assistant-transport stream. Threads are transport-scoped: conversations
|
|
63
|
+
* created on one transport are read-only from the other.
|
|
64
|
+
*
|
|
65
|
+
* On statewire the `agent` prop only accepts `collab_agent:<asset_id>`
|
|
66
|
+
* refs (the host always runs the Athena deep agent), and `model` defaults
|
|
67
|
+
* to the deep-agent default model. */
|
|
66
68
|
transport?: AthenaTransport;
|
|
67
69
|
/** Resolve the latest auth token immediately before a request (for
|
|
68
70
|
* expiring clients). Takes priority over `token` when it resolves.
|
|
@@ -14,8 +14,9 @@ export interface AthenaProviderConfig {
|
|
|
14
14
|
token?: string | null;
|
|
15
15
|
/** URL for the chat streaming endpoint. Defaults to the matching Athena environment. */
|
|
16
16
|
apiUrl?: string;
|
|
17
|
-
/** Chat transport mode. Defaults to '
|
|
18
|
-
*
|
|
17
|
+
/** Chat transport mode. Defaults to 'statewire' (the deep-agent statewire
|
|
18
|
+
* sync host); pass 'legacy' to opt back onto the legacy Iris chat stream.
|
|
19
|
+
* Threads created on one transport are read-only from the other. */
|
|
19
20
|
transport?: AthenaTransport;
|
|
20
21
|
/** Statewire sync base URL override (the `…/v2/threads` mount). Defaults to
|
|
21
22
|
* the `apiUrl` host + `/v2/threads`. Only used when transport is 'statewire'. */
|