@lota-sdk/ui 0.1.5 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lota-sdk/ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -40,7 +40,7 @@
40
40
  "registry": "https://registry.npmjs.org/"
41
41
  },
42
42
  "dependencies": {
43
- "@lota-sdk/shared": "0.1.0",
43
+ "@lota-sdk/shared": "file:../shared",
44
44
  "ai": "^6.0.116"
45
45
  },
46
46
  "peerDependencies": {
@@ -1,6 +1,7 @@
1
1
  export * from './active-thread-helpers'
2
2
  export * from './session-common'
3
3
  export * from './use-active-thread-session'
4
+ export * from './use-lota-chat'
4
5
  export * from './use-session-messages'
5
6
  export * from './use-thread-chat'
6
7
  export * from './use-thread-management'
@@ -0,0 +1,13 @@
1
+ import type { UIMessage } from 'ai'
2
+
3
+ import type { UseThreadChatOptions, UseThreadChatReturn } from './use-thread-chat'
4
+ import { useThreadChat } from './use-thread-chat'
5
+
6
+ export type UseLotaChatOptions<UI_MESSAGE extends UIMessage> = UseThreadChatOptions<UI_MESSAGE>
7
+ export type UseLotaChatReturn<UI_MESSAGE extends UIMessage> = UseThreadChatReturn<UI_MESSAGE>
8
+
9
+ export function useLotaChat<UI_MESSAGE extends UIMessage>(
10
+ options: UseLotaChatOptions<UI_MESSAGE>,
11
+ ): UseLotaChatReturn<UI_MESSAGE> {
12
+ return useThreadChat(options)
13
+ }