@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.
@@ -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; absent means `legacy`. Optional so existing
9
- * `AthenaConfig` object literals keep compiling. */
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 'legacy' (the Iris `/api/chat`
57
- * assistant-transport stream). Pass 'statewire' to attach to the
58
- * deep-agent statewire sync host (`…/v2/threads`) instead the thread is
59
- * hosted server-side and replicated live, so history, reconnect, and run
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
- * The `agent` prop is legacy-only (the statewire host always runs the
64
- * Athena deep agent), and `model` defaults to the deep-agent default
65
- * model in this mode. */
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 'legacy'; pass 'statewire' to attach to
18
- * the deep-agent statewire sync host instead of the legacy chat stream. */
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'. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenaintel/react",
3
- "version": "0.12.4",
3
+ "version": "0.13.0",
4
4
  "description": "Athena React SDK \u2014 Build AI-powered chat applications with the Athena platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",