@athenaintel/react 0.17.0 → 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.
Files changed (55) hide show
  1. package/README.md +73 -39
  2. package/dist/AthenaContext-B1QMhIP-.cjs.map +1 -1
  3. package/dist/AthenaContext-MOslgOmE.js.map +1 -1
  4. package/dist/chat/statewire-banners.d.ts +5 -9
  5. package/dist/chat-ui/index.d.ts +3 -0
  6. package/dist/chat-ui/mentions/suggestions/data/api-client.d.ts +24 -0
  7. package/dist/chat-ui/mentions/suggestions/data/sources/index.d.ts +5 -0
  8. package/dist/chat-ui/mentions/suggestions/data/use-mention-suggestions.d.ts +1 -1
  9. package/dist/chat-ui/messages/continue-pill.d.ts +13 -0
  10. package/dist/chat-ui/messages/message-components.d.ts +7 -2
  11. package/dist/chat-ui/messages/runtime-message.d.ts +22 -0
  12. package/dist/chat-ui/messages/statewire-continue-run.d.ts +41 -0
  13. package/dist/chat-ui/thread/chat-composer-dock.d.ts +1 -1
  14. package/dist/chat-ui.cjs +279 -56
  15. package/dist/chat-ui.cjs.map +1 -1
  16. package/dist/chat-ui.js +312 -89
  17. package/dist/chat-ui.js.map +1 -1
  18. package/dist/diagnostics/athena-diagnostics.d.ts +1 -1
  19. package/dist/diagnostics/errors.d.ts +0 -4
  20. package/dist/index.cjs +18834 -21869
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.ts +4 -8
  23. package/dist/index.js +18849 -21884
  24. package/dist/index.js.map +1 -1
  25. package/dist/lib/athena-urls.d.ts +0 -2
  26. package/dist/lib/posthog/wrap-posthog-client.d.ts +3 -1
  27. package/dist/provider/AthenaContext.d.ts +0 -7
  28. package/dist/provider/AthenaProvider.d.ts +25 -51
  29. package/dist/provider/config.d.ts +11 -14
  30. package/dist/provider/statewire-lifecycle-context.d.ts +3 -4
  31. package/dist/provider/types.d.ts +0 -1
  32. package/dist/runtime/statewire-lifecycle.d.ts +0 -1
  33. package/dist/runtime/statewire-run-config.d.ts +18 -5
  34. package/dist/runtime/useAthenaStatewireRuntime.d.ts +6 -11
  35. package/dist/styles.css +1 -1
  36. package/dist/threads/ThreadList.d.ts +6 -1
  37. package/dist/threads/statewire-thread-list.d.ts +6 -5
  38. package/dist/threads/thread-id-context.d.ts +9 -0
  39. package/dist/threads/use-statewire-conversation-history.d.ts +2 -0
  40. package/dist/threads/useAthenaThreadManager.d.ts +24 -12
  41. package/dist/{use-rest-conversation-history-DpEswBqQ.js → use-rest-conversation-history-Bs5qn5G3.js} +7500 -6959
  42. package/dist/use-rest-conversation-history-Bs5qn5G3.js.map +1 -0
  43. package/dist/{use-rest-conversation-history-BdnG8jEP.cjs → use-rest-conversation-history-Dm0rdQgT.cjs} +7311 -6770
  44. package/dist/use-rest-conversation-history-Dm0rdQgT.cjs.map +1 -0
  45. package/package.json +3 -3
  46. package/dist/runtime/converter.d.ts +0 -5
  47. package/dist/runtime/external-message-converter.d.ts +0 -21
  48. package/dist/runtime/schemas.d.ts +0 -24
  49. package/dist/runtime/transport.d.ts +0 -39
  50. package/dist/runtime/useAthenaRuntime.d.ts +0 -47
  51. package/dist/threads/adapter.d.ts +0 -42
  52. package/dist/threads/useActiveThreadStateHydration.d.ts +0 -12
  53. package/dist/threads/useThreadTitlePolling.d.ts +0 -14
  54. package/dist/use-rest-conversation-history-BdnG8jEP.cjs.map +0 -1
  55. package/dist/use-rest-conversation-history-DpEswBqQ.js.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, StatewireLegacyReadOnlyBanner, } from './chat/statewire-banners';
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, useAthenaThreadListAdapter, useAthenaThreadId, AthenaThreadIdContext } from './threads/adapter';
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';