@athenaintel/react 0.16.3 → 0.18.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 +89 -51
- package/dist/AthenaContext-B1QMhIP-.cjs.map +1 -1
- package/dist/AthenaContext-MOslgOmE.js.map +1 -1
- package/dist/chat/statewire-banners.d.ts +5 -9
- package/dist/chat-ui/index.d.ts +3 -0
- package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +24 -0
- package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +5 -0
- package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +1 -1
- package/dist/chat-ui/messages/continue-pill.d.ts +13 -0
- package/dist/chat-ui/messages/message-components.d.ts +7 -2
- package/dist/chat-ui/messages/runtime-message.d.ts +22 -0
- package/dist/chat-ui/messages/statewire-continue-run.d.ts +41 -0
- package/dist/chat-ui/thread/chat-composer-dock.d.ts +1 -1
- package/dist/chat-ui.cjs +279 -56
- package/dist/chat-ui.cjs.map +1 -1
- package/dist/chat-ui.js +312 -89
- package/dist/chat-ui.js.map +1 -1
- package/dist/diagnostics/athena-diagnostics.d.ts +1 -1
- package/dist/diagnostics/errors.d.ts +0 -4
- package/dist/index.cjs +18866 -21879
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -8
- package/dist/index.js +18884 -21897
- package/dist/index.js.map +1 -1
- package/dist/lib/athena-urls.d.ts +0 -2
- package/dist/lib/posthog/wrap-posthog-client.d.ts +3 -1
- package/dist/provider/AthenaContext.d.ts +0 -7
- package/dist/provider/AthenaProvider.d.ts +25 -51
- package/dist/provider/config.d.ts +13 -12
- package/dist/provider/statewire-lifecycle-context.d.ts +3 -4
- package/dist/provider/types.d.ts +0 -1
- package/dist/runtime/auth.d.ts +37 -4
- package/dist/runtime/statewire-lifecycle.d.ts +0 -1
- package/dist/runtime/statewire-run-config.d.ts +18 -5
- package/dist/runtime/useAthenaStatewireRuntime.d.ts +6 -11
- package/dist/styles.css +1 -1
- package/dist/threads/ThreadList.d.ts +6 -1
- package/dist/threads/statewire-thread-list.d.ts +6 -5
- package/dist/threads/thread-id-context.d.ts +9 -0
- package/dist/threads/use-statewire-conversation-history.d.ts +2 -0
- package/dist/threads/useAthenaThreadManager.d.ts +24 -12
- package/dist/{use-rest-conversation-history-BgG4VyZQ.js → use-rest-conversation-history-Bs5qn5G3.js} +7500 -6959
- package/dist/use-rest-conversation-history-Bs5qn5G3.js.map +1 -0
- package/dist/{use-rest-conversation-history-CMuTZmsp.cjs → use-rest-conversation-history-Dm0rdQgT.cjs} +7311 -6770
- package/dist/use-rest-conversation-history-Dm0rdQgT.cjs.map +1 -0
- package/package.json +3 -3
- package/dist/runtime/converter.d.ts +0 -5
- package/dist/runtime/external-message-converter.d.ts +0 -21
- package/dist/runtime/schemas.d.ts +0 -24
- package/dist/runtime/transport.d.ts +0 -37
- package/dist/runtime/useAthenaRuntime.d.ts +0 -47
- package/dist/threads/adapter.d.ts +0 -42
- package/dist/threads/useActiveThreadStateHydration.d.ts +0 -12
- package/dist/threads/useThreadTitlePolling.d.ts +0 -14
- package/dist/use-rest-conversation-history-BgG4VyZQ.js.map +0 -1
- package/dist/use-rest-conversation-history-CMuTZmsp.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type { AthenaDiagnosticEvent, AthenaDiagnosticEventName, AthenaDiagnostic
|
|
|
5
5
|
export { useAthenaDiagnostics } from './diagnostics/useAthenaDiagnostics';
|
|
6
6
|
export { ATHENA_SDK_ERROR_CODES, AthenaSdkError, isAthenaSdkError, readRejectionDetail, toAthenaSdkError, } from './diagnostics/errors';
|
|
7
7
|
export type { AthenaSdkErrorCode, AthenaSdkErrorOptions } from './diagnostics/errors';
|
|
8
|
-
export { COLLAB_AGENT_REF_PREFIX, parseCollabAgentRef, } from './runtime/statewire-run-config';
|
|
8
|
+
export { COLLAB_AGENT_REF_PREFIX, COLLAB_AGENT_REF_SHAPE, parseCollabAgentRef, resolveAgentProp, } from './runtime/statewire-run-config';
|
|
9
9
|
export { AthenaProvider } from './provider/AthenaProvider';
|
|
10
10
|
export type { AthenaProviderProps } from './provider/AthenaProvider';
|
|
11
11
|
export type { AthenaProviderConfig } from './provider/config';
|
|
@@ -19,7 +19,7 @@ export { AthenaChatErrorBoundary } from './chat/AthenaChatErrorBoundary';
|
|
|
19
19
|
export { StatewireApprovalCard } from './chat/StatewireApprovalCard';
|
|
20
20
|
export type { StatewireApprovalCardProps } from './chat/StatewireApprovalCard';
|
|
21
21
|
export { StatewireQueuedMessages } from './chat/StatewireQueuedMessages';
|
|
22
|
-
export { StatewireConnectionBanner, StatewireErrorBanner,
|
|
22
|
+
export { StatewireConnectionBanner, StatewireErrorBanner, } from './chat/statewire-banners';
|
|
23
23
|
export { StatewireClientToolBridge } from './chat/StatewireClientToolBridge';
|
|
24
24
|
export { collectStatewireClientTools, statewireClientToolWireEntries, } from './chat/statewire-client-tools';
|
|
25
25
|
export type { StatewireClientTool } from './chat/statewire-client-tools';
|
|
@@ -70,7 +70,8 @@ export { clearAutoOpenedAssets } from './tools/tool-fallback';
|
|
|
70
70
|
export { ThreadList } from './threads/ThreadList';
|
|
71
71
|
export type { ThreadListProps } from './threads/ThreadList';
|
|
72
72
|
export type { ThreadSummary } from './threads/api';
|
|
73
|
-
export { useRefreshThreadList
|
|
73
|
+
export { useRefreshThreadList } from './threads/statewire-thread-list';
|
|
74
|
+
export { useAthenaThreadId, AthenaThreadIdContext } from './threads/thread-id-context';
|
|
74
75
|
export { listThreads, archiveThread, getThreadState, createThread, setThreadReadState } from './threads/api';
|
|
75
76
|
export { conversationDisplayTitle, useRestConversationHistory, type RestConversationAuth, type UseRestConversationHistoryOptions, } from './threads/use-rest-conversation-history';
|
|
76
77
|
export { conversationSummaryFromIndexEntry, useStatewireConversationHistory, type UseStatewireConversationHistoryOptions, } from './threads/use-statewire-conversation-history';
|
|
@@ -92,17 +93,12 @@ export { useQuote } from './composer/QuoteContext';
|
|
|
92
93
|
export type { QuoteData } from './composer/QuoteContext';
|
|
93
94
|
export type { MentionTool } from './mentions/use-mention-suggestions';
|
|
94
95
|
export { useMentionSuggestions } from './mentions/use-mention-suggestions';
|
|
95
|
-
export { useAthenaRuntime, DEFAULT_BACKEND_URL, DEFAULT_API_URL } from './runtime/useAthenaRuntime';
|
|
96
|
-
export type { AthenaRuntimeConfig } from './runtime/useAthenaRuntime';
|
|
97
96
|
export { DEFAULT_STATEWIRE_MODEL, useAthenaStatewireRuntime, } from './runtime/useAthenaStatewireRuntime';
|
|
98
97
|
export type { AthenaStatewireRuntimeConfig } from './runtime/useAthenaStatewireRuntime';
|
|
99
98
|
export { buildStatewireRunConfig } from './runtime/statewire-run-config';
|
|
100
99
|
export type { StatewireRunConfigOptions } from './runtime/statewire-run-config';
|
|
101
|
-
export { allowsMidRunSend, ATHENA_TRANSPORTS, DEFAULT_ATHENA_TRANSPORT, resolveAthenaTransport, } from './runtime/transport';
|
|
102
|
-
export type { AthenaTransport, ResolvedAthenaTransport } from './runtime/transport';
|
|
103
100
|
export { useParentAuth, useParentBridge } from './runtime/auth';
|
|
104
101
|
export type { ParentBridgeState } from './runtime/auth';
|
|
105
|
-
export { autoCloseInFlightSubgraphMessages, convertLangChainToThreadMessages, PTC_SUBCALL_DID_NOT_COMPLETE_MESSAGE, } from './runtime/converter';
|
|
106
102
|
export { createAthenaSpacesUrl, DEFAULT_APP_URL, DEFAULT_STATEWIRE_SYNC_URL, deriveAthenaApiUrl, deriveAthenaAppUrl, deriveStatewireSyncUrl, resolveStatewireSyncUrl, } from './lib/athena-urls';
|
|
107
103
|
export type { AthenaEnvironment } from './lib/athena-urls';
|
|
108
104
|
export { Button, buttonVariants } from './ui/button';
|